Frama-C API - ComputationState
The current computation state of the analysis, updated by force_compute and states updates.
include Frama_c_kernel.State_builder.S
val self : Frama_c_kernel.State.tThe kind of the registered state.
val mark_as_computed : ?project:Frama_c_kernel.Project.t -> unit -> unitIndicate that the registered state will not change again for the given project (default is current ()).
val is_computed : ?project:Frama_c_kernel.Project.t -> unit -> boolReturns true iff the registered state will not change again for the given project (default is current ()).
Exportation of some inputs (easier use of State_builder.Register).
module Datatype : Frama_c_kernel.Datatype.Sval add_hook_on_update : (Datatype.t -> unit) -> unitAdd an hook which is applied each time (just before) the project library changes the local value of the state.
val howto_marshal : (Datatype.t -> 'a) -> ('a -> Datatype.t) -> unithowto_marshal marshal unmarshal registers a custom couple of functions (marshal, unmarshal) to be used for serialization. Default functions are identities. In particular, this function must be used if Datatype.t is not marshallable and do_not_save is not called.
type data = computation_stateType of the referenced value.
val set : data -> unitChange the referenced value.
val get : unit -> dataGet the referenced value.
val add_hook_on_change : (data -> unit) -> unitAdd an hook which is applied each time (just after) the value of the state changes inside the current project.
