package goblint
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b729c94adb383a39aea32eb005c988dfd44b92af22ee6a4eedf4239542ac6c26
sha512=643b98770e5fe5644324c95c9ae3a9f698f25c8b11b298f0751d524e0b20af368b2a465fc8200b75a73d48fc9a053fd90f5e8920d4db070927f93188bb8687e0
doc/goblint.lib/Goblint_lib/Mval/MakeLattice/argument-1-Offs/index.html
Parameter MakeLattice.Offs
include Printable.S with type t = idx Goblint_lib__.Offset_intf.t
type t = [
| `NoOffset
(*No offset. Marks the end of offset list.
*)| `Field of CilType.Fieldinfo.t * idx Goblint_lib__.Offset_intf.t
(*Offset starting with a struct field.
*)| `Index of idx * idx Goblint_lib__.Offset_intf.t
(*Offset starting with an array index.
*)
]
val is_definite : t -> bool
Whether offset has only definite integer indexing (and fields).
val contains_index : t -> bool
Whether offset contains any indexing.
val to_cil : t -> GoblintCil.offset
Convert to CIL offset.
val to_exp : t -> GoblintCil.exp Goblint_lib__.Offset_intf.t
Convert to Goblint offset with GoblintCil.exp
indices.
val to_cil_offset : t -> GoblintCil.offset
Version of to_cil
which drops indices for ArrayDomain
.
val cmp_zero_offset : t -> [ `MustZero | `MustNonzero | `MayZero ]
Compare offset to zero offset.
Zero indices and first fields of a struct are in the same physical memory location as the outer object.
val type_of : base:GoblintCil.typ -> t -> GoblintCil.typ
Type of the offset on the base
type.
include Lattice.S with type t := t
include Lattice.PO with type t := t
include Printable.S with type t := t
val hash : t -> int
val show : t -> string
val pretty : unit -> t -> Printable.Pretty.doc
val printXml : 'a BatInnerIO.output -> t -> unit
val to_yojson : t -> Yojson.Safe.t
val tag : t -> int
Unique ID, given by HConsed, for context identification in witness
val arbitrary : unit -> t QCheck.arbitrary
widen x y
assumes leq x y
. Solvers guarantee this by calling widen old (join old new)
.
val pretty_diff : unit -> (t * t) -> Lattice.Pretty.doc
If leq x y = false
, then pretty_diff () (x, y)
should explain why.
val bot : unit -> t
val is_bot : t -> bool
val top : unit -> t
val is_top : t -> bool
val of_exp : GoblintCil.exp Goblint_lib__.Offset_intf.t -> t
Convert from Goblint offset with GoblintCil.exp
indices.
Physical memory offset in bytes of the entire offset. Used for semantic_equal
.