module Locations:sig..end
Memory locations.
module Location_Bytes:sig..end
Association between bases and offsets in byte.
module Location_Bits: module type of Location_BytesAssociation between bases and offsets in bits.
module Zone:sig..end
Association between bases and ranges of bits.
type location = private {
|
loc : |
|
size : |
A Location_Bits.t and a size in bits.
module Location:Datatype.Swith type t = location
val loc_bottom : location
val is_bottom_loc : location -> bool
val make_loc : Location_Bits.t -> Int_Base.t -> location
val loc_equal : location -> location -> bool
val loc_size : location -> Int_Base.t
val is_valid : for_writing:bool -> location -> boolIs the given location entirely valid, as the destination of a write
operation if for_writing is true, as the destination of a read
otherwise.
val valid_part : for_writing:bool ->
?bitfield:bool -> location -> locationOverapproximation of the valid part of the given location. Beware that
is_valid (valid_part loc) does not necessarily hold, as garbled mix
may not be reduced by valid_part.
bitfield indicates whether the location may be the one of a bitfield, and
is true by default. If it is set to false, the location is assumed to be
byte aligned, and its offset (expressed in bits) is reduced to be congruent
to 0 modulo 8.
val invalid_part : location -> locationOverapproximation of the invalid part of a location
val cardinal_zero_or_one : location -> boolIs the location bottom or a singleton?
val valid_cardinal_zero_or_one : for_writing:bool -> location -> boolIs the valid part of the location bottom or a singleton?
val filter_base : (Base.t -> bool) -> location -> location
val pretty : Format.formatter -> location -> unit
val pretty_english : prefix:bool -> Format.formatter -> location -> unitval loc_to_loc_without_size : location -> Location_Bytes.t
val loc_bytes_to_loc_bits : Location_Bytes.t -> Location_Bits.t
val loc_bits_to_loc_bytes : Location_Bits.t -> Location_Bytes.t
val loc_bits_to_loc_bytes_under : Location_Bits.t -> Location_Bytes.t
val enumerate_bits : location -> Zone.t
val enumerate_bits_under : location -> Zone.t
val enumerate_valid_bits : for_writing:bool -> location -> Zone.tval enumerate_valid_bits_under : for_writing:bool -> location -> Zone.t
val zone_of_varinfo : Cil_types.varinfo -> Zone.tval loc_of_varinfo : Cil_types.varinfo -> location
val loc_of_base : Base.t -> location
val loc_of_typoffset : Base.t -> Cil_types.typ -> Cil_types.offset -> location