Offset.MakePrintable
Make Printable
offset from printable indices.
module Idx : Index.Printable
type idx = Idx.t
Type of indices in offset.
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_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.