IntDomain.FlatCreates a flat value domain, where all ordering is lost. Arithmetic * operations are lifted such that only lifted values can be evaluated * otherwise the top/bot is simply propagated with bot taking precedence over * top.
module Base : IkindUnawareSinclude IntDomain_intf.B
with type t = [ `Bot | `Lifted of Base.t | `Top ]
with type int_t = Base.int_tinclude Lattice.PO with type t = [ `Bot | `Lifted of Base.t | `Top ]widen x y assumes leq x y. Solvers guarantee this by calling widen old (join old new).
type int_t = Base.int_tAccessing values of the ADT
val bot_of : GoblintCil.Cil.ikind -> tval top_of : ?bitfield:int -> GoblintCil.Cil.ikind -> tReturn a single integer value if the value is a known constant, otherwise * don't return anything.
val to_bool : t -> bool optionGive a boolean interpretation of an abstract value if possible, otherwise * don't return anything.
Gives a list representation of the excluded values from included range of bits if possible.
Creates an exclusion set from a given list of integers.
val is_excl_list : t -> boolChecks if the element is an exclusion set.
Gives a list representation of the included values if possible.
Cast
include IntDomain_intf.Arith with type t := tComparison operators
Bitwise logical operators
Logical operators
val of_bool : bool -> tTransform a known boolean value to the default internal representation. It * should follow C: of_bool true = of_int 1 and of_bool false = of_int 0.
val arbitrary : unit -> t QCheck.arbitraryval invariant : GoblintCil.Cil.exp -> t -> Invariant.t