module Bit_utils:sig..end
val sizeofchar : unit -> Integer.tsizeof(char) in bitsval sizeofpointer : unit -> intsizeof(char* ) in bitsval sizeof : Cil_types.typ -> Int_Base.tsizeof ty is the size of ty in bits. This function may return
Int_Base.top.val osizeof : Cil_types.typ -> Int_Base.tosizeof ty is the size of ty in bytes. This function may return
Int_Base.top.exception Neither_Int_Nor_Enum_Nor_Pointer
val is_signed_int_enum_pointer : Cil_types.typ -> booltrue means that the type is signed.Neither_Int_Nor_Enum_Nor_Pointer if the sign of the type is not
meaningful.val signof_typeof_lval : Cil_types.lval -> boollval. true means that the type is
signed.val sizeof_vid : Cil_types.varinfo -> Int_Base.tval sizeof_lval : Cil_types.lval -> Int_Base.tval sizeof_pointed : Cil_types.typ -> Int_Base.tval osizeof_pointed : Cil_types.typ -> Int_Base.tval sizeof_pointed_lval : Cil_types.lval -> Int_Base.tlval in
bits. Never call it on a non pointer type lval.val max_bit_address : unit -> Integer.tval max_bit_size : unit -> Integer.tval max_byte_address : unit -> Integer.tval max_byte_size : unit -> Integer.tval pretty_bits : Cil_types.typ ->
use_align:bool ->
align:Abstract_interp.Rel.t ->
rh_size:Integer.t ->
start:Integer.t ->
stop:Integer.t -> Format.formatter -> bool * Cil_types.typ optiontype offset_match =
| |
MatchType of |
(* |
Offset that has this type (modulo attributes)
| *) |
| |
MatchSize of |
(* |
Offset that has a type of this size
| *) |
| |
MatchFirst |
(* |
Return first symbolic offset that matches
| *) |
exception NoMatchingOffset
val find_offset : Cil_types.typ ->
offset:Integer.t ->
offset_match -> Cil_types.offset * Cil_types.typfind_offset typ ~offset ~size finds a subtype t of typ that describes
the type of the bits offset..offset+size-1 in typ. May return a subtype
of typ, or a type that is a sub-array of an array type in typ.
Also returns a Cil_types.offset off that corresponds to offset.
(But we do not have the guarantee that typeof(off) == typ, because of
sub-arrays.)NoMatchingOffset when no offset matches.