Skip to content
Snippets Groups Projects
Commit aec4b8cb authored by David Bühler's avatar David Bühler Committed by Andre Maroneze
Browse files

[Eva] Removes some debug messages.

parent b93f6dcf
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
open Cil_types open Cil_types
open Eval open Eval
let dkey = Self.register_category "callbacks"
(* Clear Eva's various caches. Some operations of Eva depend on parameters, (* Clear Eva's various caches. Some operations of Eva depend on parameters,
such as -ilevel or -plevel, so clearing those caches ensures that those such as -ilevel or -plevel, so clearing those caches ensures that those
options have the expected effect. options have the expected effect.
...@@ -216,12 +214,9 @@ module Make (Abstract: Abstractions.S_with_evaluation) = struct ...@@ -216,12 +214,9 @@ module Make (Abstract: Abstractions.S_with_evaluation) = struct
let ab = Logic.create init_state call.kf in let ab = Logic.create init_state call.kf in
ignore (Logic.check_fct_preconditions kinstr call.kf ab init_state); ignore (Logic.check_fct_preconditions kinstr call.kf ab init_state);
end; end;
if Parameters.ValShowProgress.get () then begin if Parameters.ValShowProgress.get () then
Self.feedback ~current:true Self.feedback ~current:true
"Reusing old results for call to %a" Kernel_function.pretty call.kf; "Reusing old results for call to %a" Kernel_function.pretty call.kf;
Self.debug ~dkey
"calling Record_Value_New callbacks on saved previous result";
end;
apply_call_results_hooks call init_state (`Reuse i); apply_call_results_hooks call init_state (`Reuse i);
(* call can be cached since it was cached once *) (* call can be cached since it was cached once *)
Transfer.{ states; cacheable = Cacheable; } Transfer.{ states; cacheable = Cacheable; }
......
...@@ -146,16 +146,10 @@ module Make (Abstract: Abstractions.S_with_evaluation) = struct ...@@ -146,16 +146,10 @@ module Make (Abstract: Abstractions.S_with_evaluation) = struct
a bug." a bug."
fmt fmt
let report_unreachability state (result, alarms) fmt = let report_unreachability _state (result, alarms) fmt =
if result = `Bottom && Alarmset.is_empty alarms if result = `Bottom && Alarmset.is_empty alarms
then begin then notify_unreachability fmt
Self.debug ~current:true ~once:true ~level:1 else Format.ifprintf Format.std_formatter fmt
~dkey:Self.dkey_incompatible_states
"State without concretization: %a" Domain.pretty state;
notify_unreachability fmt
end
else
Format.ifprintf Format.std_formatter fmt
(* The three functions below call evaluation functions and notify the user (* The three functions below call evaluation functions and notify the user
if they lead to bottom without alarms. *) if they lead to bottom without alarms. *)
......
...@@ -80,9 +80,7 @@ let dkey_final_states = register_category "final-states" ...@@ -80,9 +80,7 @@ let dkey_final_states = register_category "final-states"
let dkey_summary = register_category "summary" let dkey_summary = register_category "summary"
let dkey_pointer_comparison = register_category "pointer-comparison" let dkey_pointer_comparison = register_category "pointer-comparison"
let dkey_cvalue_domain = register_category "d-cvalue" let dkey_cvalue_domain = register_category "d-cvalue"
let dkey_incompatible_states = register_category "incompatible-states"
let dkey_iterator = register_category "iterator" let dkey_iterator = register_category "iterator"
let dkey_callbacks = register_category "callbacks"
let dkey_widening = register_category "widening" let dkey_widening = register_category "widening"
let dkey_recursion = register_category "recursion" let dkey_recursion = register_category "recursion"
......
...@@ -49,9 +49,7 @@ val dkey_summary : category ...@@ -49,9 +49,7 @@ val dkey_summary : category
val dkey_pointer_comparison: category val dkey_pointer_comparison: category
val dkey_cvalue_domain: category val dkey_cvalue_domain: category
val dkey_incompatible_states: category
val dkey_iterator : category val dkey_iterator : category
val dkey_callbacks : category
val dkey_widening : category val dkey_widening : category
val dkey_recursion : category val dkey_recursion : category
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
open Cil_types open Cil_types
let dkey = Self.dkey_callbacks
type state = Cvalue.Model.t type state = Cvalue.Model.t
type analysis_kind = [ `Builtin | `Spec | `Body | `Reuse ] type analysis_kind = [ `Builtin | `Spec | `Body | `Reuse ]
...@@ -65,8 +63,6 @@ let register_call_results_hook f = ...@@ -65,8 +63,6 @@ let register_call_results_hook f =
(fun (callstack, kf, state, results) -> f callstack kf state results) (fun (callstack, kf, state, results) -> f callstack kf state results)
let apply_call_results_hooks callstack kf state call_results = let apply_call_results_hooks callstack kf state call_results =
if Parameters.ValShowProgress.get () && not (Call_Results.is_empty ())
then Self.debug ~dkey "now calling Call_Results callbacks";
Call_Results.apply (callstack, kf, state, call_results) Call_Results.apply (callstack, kf, state, call_results)
......
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