Frama-C API - Set
Sets of equalities.
include Frama_c_kernel.Datatype.S
include Frama_c_kernel.Datatype.S_no_copy
val datatype_descr : t Frama_c_kernel.Descr.tDatatype descriptor.
val packed_descr : Frama_c_kernel.Structural_descr.packPacked version of the descriptor.
val reprs : t listList of representants of the descriptor.
val hash : t -> intHash function: same spec than Hashtbl.hash.
val pretty : Stdlib.Format.formatter -> t -> unitPretty print each value in an user-friendly way.
val mem_project : (Frama_c_kernel.Project_skeleton.t -> bool) -> t -> boolmem_project f x must return true iff there is a value p of type Project.t in x such that f p returns true.
The set operators are redefined so that equalities involving a same term are joined: ∀ e₁, e₂ ∈ Set, e₁ ≠ e₂ ⇔ e₁ ∩ e₂ = ∅
val empty : tval is_empty : t -> boolval remove : Hcexprs.kill_type -> Eva_ast.lval -> t -> tremove lval set remove any expression e such that lval belongs to syntactic_lval e from the set of equalities set.
val unite : (elt * Hcexprs.lvalues) -> (elt * Hcexprs.lvalues) -> t -> tunite (a, a_set) (b, b_set) map unites a and b in map. a_set must be equal to syntactic_lval a, and b_set to syntactic_lval b.
find elt set return the (single) equality involving elt that belongs to set, or raise Not_found if no such equality exists.
val cardinal : t -> int