Frama-C API - Full_AI_Lattice_with_cardinality
Most complete lattices: all operations plus widening, notion of cardinal (including enumeration) and difference.
include AI_Lattice_with_cardinal_one
include Join_Semi_Lattice
datatype of element of the lattice
include Datatype.S
include Datatype.S_no_copy
val packed_descr : Structural_descr.pack
Packed version of the descriptor.
val reprs : t list
List of representants of the descriptor.
val hash : t -> int
Hash function: same spec than Hashtbl.hash
.
val pretty : Stdlib.Format.formatter -> t -> unit
Pretty print each value in an user-friendly way.
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
mem_project f x
must return true
iff there is a value p
of type Project.t
in x
such that f p
returns true
.
include With_Cardinal_One with type t := t
val cardinal_zero_or_one : t -> bool
include With_Narrow with type t := t
val narrow : t -> t -> t Lattice_bounds.or_bottom
over-approximation of intersection
include With_Under_Approximation with type t := t
val meet : t -> t -> t Lattice_bounds.or_bottom
under-approximation of intersection
include With_Intersects with type t := t
include With_Diff_One with type t := t
val diff_if_one : t -> t -> t Lattice_bounds.or_bottom
diff_if_one t1 t2
is an over-approximation of t1-t2
.
include With_Enumeration with type t := t
Fold on the elements of the value one by one if possible. Raises Abstract_interp.Not_less_than
when there is an infinite number of elements to enumerate.
val cardinal_less_than : t -> int -> int
Raises Abstract_interp.Not_less_than
whenever the cardinal of the given lattice is strictly higher than the given integer.