Skip to content
Snippets Groups Projects
Commit 3672747f authored by David Bühler's avatar David Bühler
Browse files

[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
...@@ -57,12 +57,7 @@ let _computation_signal = ...@@ -57,12 +57,7 @@ let _computation_signal =
~add_hook:Analysis.register_computation_hook ~add_hook:Analysis.register_computation_hook
() ()
let is_computed kf = let is_computed kf = Analysis.is_computed () && Results.are_available kf
Analysis.is_computed () &&
match kf with
| { fundec = Definition (fundec, _) } ->
Mark_noresults.should_memorize_function fundec
| { fundec = Declaration _ } -> false
module CallSite = Data.Jpair (Kernel_ast.Kf) (Kernel_ast.Stmt) module CallSite = Data.Jpair (Kernel_ast.Kf) (Kernel_ast.Stmt)
......
...@@ -24,12 +24,8 @@ open Cil_types ...@@ -24,12 +24,8 @@ open Cil_types
open Gui_types open Gui_types
open Lattice_bounds open Lattice_bounds
let results_kf_computed kf = let results_kf_computed kf = Analysis.is_computed () && Results.are_available kf
Analysis.is_computed () && let kf_called kf = Analysis.is_computed () && Results.is_called kf
match kf with
| { fundec = Definition (fundec, _) } ->
Mark_noresults.should_memorize_function fundec
| { fundec = Declaration _ } -> true (* This value is not really used *)
let term_c_type t = let term_c_type t =
Logic_const.plain_or_set Logic_const.plain_or_set
...@@ -386,7 +382,7 @@ module Make (X: Analysis.S) = struct ...@@ -386,7 +382,7 @@ module Make (X: Analysis.S) = struct
and correspond to the states before reduction by any precondition. and correspond to the states before reduction by any precondition.
After states are not available. *) After states are not available. *)
let callstacks_at_pre kf = let callstacks_at_pre kf =
if results_kf_computed kf then if kf_called kf then
let states_before = X.get_initial_state_by_callstack kf in let states_before = X.get_initial_state_by_callstack kf in
{ states_before; states_after = `Top } { states_before; states_after = `Top }
else top_states_by_callstacks else top_states_by_callstacks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment