Frama-C API - Stmt_set_ref
Parameters
module _ : State_builder.Info
Signature
include State_builder.Ref
include State_builder.S
val self : State.t
The kind of the registered state.
val mark_as_computed : ?project:Project.t -> unit -> unit
Indicate that the registered state will not change again for the given project (default is current ()
).
val is_computed : ?project:Project.t -> unit -> bool
Returns 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 : Datatype.S
val add_hook_on_update : (Datatype.t -> unit) -> unit
Add 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) -> unit
howto_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.
val set : data -> unit
Change the referenced value.
val get : unit -> data
Get the referenced value.
val add_hook_on_change : (data -> unit) -> unit
Add an hook which is applied each time (just after) the value of the state changes inside the current project.
type elt = Cil_types.stmt
val add : elt -> unit
val remove : elt -> unit
val mem : elt -> bool
val fold : (elt -> 'a -> 'a) -> 'a -> 'a
val iter : (elt -> unit) -> unit