IntDomainAbstract domains for C integers.
module type Arith = IntDomain_intf.Arithmodule type ArithIkind = IntDomain_intf.ArithIkindmodule type B = IntDomain_intf.Bmodule type IkindUnawareS = IntDomain_intf.IkindUnawareSmodule type S = IntDomain_intf.Smodule type S2 = IntDomain_intf.S2module type SOverflow = IntDomain_intf.SOverflowmodule type Y = IntDomain_intf.Ymodule type Z = IntDomain_intf.Zmodule type Ikind = IntDomain_intf.Ikindmodule PtrDiffIkind : Ikindmodule IntDomTuple : sig ... endval of_const : (Z.t * GoblintCil.Cil.ikind * string option) -> IntDomTuple.tmodule Size : sig ... endmodule BISet : SetDomain.S with type elt = Z.tAn exception that can be raised when the result of a computation is unknown. * This is caught by lifted domains and will be replaced by top.
An exception that can be raised when an arithmetic error occurs. This is * caught by lifted domains and the evaluation will then be set to bot, which * signifies an error in computation
module Integers
(Ints_t : IntOps.IntOps) :
IkindUnawareS with type t = Ints_t.t and type int_t = Ints_t.tPredefined domains
module FlatPureIntegers :
IkindUnawareS
with type t = IntOps.Int64Ops.t
and type int_t = IntOps.Int64Ops.tThe integers with flattened orderings. Calling top and bot or joining or meeting inequal elements will raise exceptions.
module Flattened :
IkindUnawareS
with type t = [ `Top | `Lifted of IntOps.Int64Ops.t | `Bot ]
and type int_t = IntOps.Int64Ops.tThis is the typical flattened integer domain used in Kildall's constant * propagation.
module Lifted :
IkindUnawareS
with type t = [ `Top | `Lifted of int64 | `Bot ]
and type int_t = int64Artificially bounded integers in their natural ordering.
module IntervalFunctor
(Ints_t : IntOps.IntOps) :
SOverflow
with type int_t = Ints_t.t
and type t = (Ints_t.t * Ints_t.t) optionmodule BitfieldFunctor
(Ints_t : IntOps.IntOps) :
SOverflow with type int_t = Ints_t.t and type t = Ints_t.t * Ints_t.tmodule IntervalSetFunctor
(Ints_t : IntOps.IntOps) :
SOverflow with type int_t = Ints_t.t and type t = (Ints_t.t * Ints_t.t) listmodule IntervalSet : SOverflow with type int_t = Z.tmodule Congruence : S with type int_t = Z.tThe DefExc domain. The Flattened integer domain is topped by exclusion sets. * Good for analysing branches.
Domain constructors
module Flat
(Base : IkindUnawareS) :
IkindUnawareS
with type t = [ `Bot | `Lifted of Base.t | `Top ]
and type int_t = Base.int_tCreates 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 Lift
(Base : IkindUnawareS) :
IkindUnawareS
with type t = [ `Bot | `Lifted of Base.t | `Top ]
and type int_t = Base.int_tJust like Value.Flat except the order is preserved.
Interval domain with int64-s --- use with caution!