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

[Eva] API: exports [no_results].

parent 4bb20313
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,10 @@ let current_computation_state = Self.current_computation_state ...@@ -29,6 +29,10 @@ let current_computation_state = Self.current_computation_state
let register_computation_hook = Self.register_computation_hook let register_computation_hook = Self.register_computation_hook
let is_computed = Self.is_computed let is_computed = Self.is_computed
let save_results kf =
try Function_calls.save_results (Kernel_function.get_definition kf)
with Kernel_function.No_Definition -> false
module type Results = sig module type Results = sig
type state type state
type value type value
......
...@@ -144,6 +144,11 @@ val status: Cil_types.kernel_function -> status ...@@ -144,6 +144,11 @@ val status: Cil_types.kernel_function -> status
Please use {!Eva.Results.are_available} instead to known whether results Please use {!Eva.Results.are_available} instead to known whether results
are available for a given function. *) are available for a given function. *)
val use_spec_instead_of_definition: Cil_types.kernel_function -> bool val use_spec_instead_of_definition: Cil_types.kernel_function -> bool
(** Returns [true] if the user has requested that no results should be recorded
for the given function. Please use {!Eva.Results.are_available} instead
to known whether results are available for a given function. *)
val save_results: Cil_types.kernel_function -> bool
[@@@ api_end] [@@@ api_end]
val cvalue_initial_state: unit -> Cvalue.Model.t val cvalue_initial_state: unit -> Cvalue.Model.t
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
open Cil_types open Cil_types
(** True if the results should be saved for the given function. *)
val save_results: fundec -> bool
(** What is used for the analysis of a given function: (** What is used for the analysis of a given function:
- a Cvalue builtin (and other domains use the specification) - a Cvalue builtin (and other domains use the specification)
- the function specification - the function specification
......
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