Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
3672747f
Commit
3672747f
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Uses Results.are_available instead of should_memorize_function.
parent
0f2ab9a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/value/api/general_requests.ml
+1
-6
1 addition, 6 deletions
src/plugins/value/api/general_requests.ml
src/plugins/value/gui_files/gui_eval.ml
+3
-7
3 additions, 7 deletions
src/plugins/value/gui_files/gui_eval.ml
with
4 additions
and
13 deletions
src/plugins/value/api/general_requests.ml
+
1
−
6
View file @
3672747f
...
...
@@ -57,12 +57,7 @@ let _computation_signal =
~
add_hook
:
Analysis
.
register_computation_hook
()
let
is_computed
kf
=
Analysis
.
is_computed
()
&&
match
kf
with
|
{
fundec
=
Definition
(
fundec
,
_
)
}
->
Mark_noresults
.
should_memorize_function
fundec
|
{
fundec
=
Declaration
_
}
->
false
let
is_computed
kf
=
Analysis
.
is_computed
()
&&
Results
.
are_available
kf
module
CallSite
=
Data
.
Jpair
(
Kernel_ast
.
Kf
)
(
Kernel_ast
.
Stmt
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/gui_files/gui_eval.ml
+
3
−
7
View file @
3672747f
...
...
@@ -24,12 +24,8 @@ open Cil_types
open
Gui_types
open
Lattice_bounds
let
results_kf_computed
kf
=
Analysis
.
is_computed
()
&&
match
kf
with
|
{
fundec
=
Definition
(
fundec
,
_
)
}
->
Mark_noresults
.
should_memorize_function
fundec
|
{
fundec
=
Declaration
_
}
->
true
(* This value is not really used *)
let
results_kf_computed
kf
=
Analysis
.
is_computed
()
&&
Results
.
are_available
kf
let
kf_called
kf
=
Analysis
.
is_computed
()
&&
Results
.
is_called
kf
let
term_c_type
t
=
Logic_const
.
plain_or_set
...
...
@@ -386,7 +382,7 @@ module Make (X: Analysis.S) = struct
and correspond to the states before reduction by any precondition.
After states are not available. *)
let
callstacks_at_pre
kf
=
if
results_kf_comput
ed
kf
then
if
kf_call
ed
kf
then
let
states_before
=
X
.
get_initial_state_by_callstack
kf
in
{
states_before
;
states_after
=
`Top
}
else
top_states_by_callstacks
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment