Frama-C API - WpContext
Model Registration
type hypotheses = MemoryContext.partition -> MemoryContext.partitionval register : id:string -> ?descr:string -> configure:(unit -> rollback) -> ?hypotheses:hypotheses -> unit -> modelModel registration. The model is identified by id and described by descr (that defaults to id). The configure function is called on WpContext.on_context call, it must prepare and set the different Context.values related to the model. It must return the function that allows to rollback on the original state. The hypotheses function must return the hypotheses made by the model.
val get_descr : model -> stringval get_emitter : model -> Frama_c_kernel.Emitter.tval compute_hypotheses : model -> Frama_c_kernel.Kernel_function.t -> MemoryContext.partitiontype t = contextmodule S : sig ... endmodule MODEL : sig ... endmodule SCOPE : sig ... endmodule MINDEX : Frama_c_kernel.Hashtbl.S with type key = modelval on_context : context -> ('a -> 'b) -> 'a -> 'bval get_model : unit -> modelval get_scope : unit -> scopeval get_context : unit -> contextval directory : unit -> Frama_c_kernel.Filepath.tCurrent model in "-wp-out" directory
module type Entries = sig ... endmodule type Registry = sig ... endprojectified, depend on the model, not serialized
projectified, independent from the model, not serialized
module type Key = sig ... endmodule type Data = sig ... endmodule type IData = sig ... endmodule type Generator = sig ... endmodule Generator (K : Key) (D : Data with type key = K.t) : Generator with type key = D.key and type data = D.dataprojectified, depend on the model, not serialized
module StaticGenerator (K : Key) (D : Data with type key = K.t) : Generator with type key = D.key and type data = D.dataprojectified, independent from the model, not serialized
