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

[Eva] Results: exports [are_available].

parent 7a5ec248
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
open Lattice_bounds open Lattice_bounds
let are_available kf =
match Analysis.status kf with
| Analyzed (Complete | Partial) -> true
| SpecUsed | Builtin _ | Unreachable | Analyzed NoResults -> false
module Callstack = Value_types.Callstack module Callstack = Value_types.Callstack
type callstack = Callstack.t type callstack = Callstack.t
......
...@@ -54,6 +54,16 @@ ...@@ -54,6 +54,16 @@
default O (as_int (eval_var vi (in_callstack cs (before stmt)))) default O (as_int (eval_var vi (in_callstack cs (before stmt))))
*) *)
(** Are results available for a given function? True if the function body has
been has been analyzed and the results have been saved.
False if:
- the function has not been reached by the analysis: all requests in the
function will lead to a Bottom error.
- a specification or a builtin has been used instead of analyzing the
function body: all requests in the function will lead to a Top error.
- results have not been saved, due to the [-eva-no-results] parameter:
all requests in the function will lead to a Top error. *)
val are_available: Cil_types.kernel_function -> bool
type callstack = (Cil_types.kernel_function * Cil_types.kinstr) list type callstack = (Cil_types.kernel_function * Cil_types.kinstr) list
......
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