module V: sig
.. end
Values.
include Location_Bytes
Values are essentially bytes-indexed locations, the NULL base
representing basic integers or float. Operations that are not related to
locations (ie that are not present in Location_Bytes
) are defined
below.
include Offsetmap_lattice_with_isotropy
exception Not_based_on_null
val project_ival : t -> Ival.t
Raises Not_based_on_null
if the value may be a pointer.
val min_and_max_float : t -> Ival.F.t * Ival.F.t
val is_imprecise : t -> bool
val is_topint : t -> bool
val is_bottom : t -> bool
val is_isotropic : t -> bool
val contains_zero : t -> bool
val contains_non_zero : t -> bool
val of_char : char -> t
val of_int64 : int64 -> t
val subdiv_float_interval : size:int -> t -> t * t
val compare_min_float : t -> t -> int
val compare_max_float : t -> t -> int
val compare_min_int : t -> t -> int
val compare_max_int : t -> t -> int
val filter_le : t -> cond_expr:t -> t
val filter_ge : t -> cond_expr:t -> t
val filter_lt : t -> cond_expr:t -> t
val filter_gt : t -> cond_expr:t -> t
val filter_le_float : bool -> typ_loc:Cil_types.typ -> t -> cond_expr:t -> t
val filter_ge_float : bool -> typ_loc:Cil_types.typ -> t -> cond_expr:t -> t
val filter_lt_float : bool -> typ_loc:Cil_types.typ -> t -> cond_expr:t -> t
val filter_gt_float : bool -> typ_loc:Cil_types.typ -> t -> cond_expr:t -> t
val eval_comp : signed:bool -> Cil_types.binop -> t -> t -> t
Can only be called on the 6 comparison operators
val inject_int : Abstract_interp.Int.t -> t
val interp_boolean : contains_zero:bool -> contains_non_zero:bool -> t
val cast : size:Abstract_interp.Int.t -> signed:bool -> t -> t * bool
val cast_float : rounding_mode:Ival.Float_abstract.rounding_mode -> t -> bool * bool * t
val cast_double : t -> bool * bool * t
val cast_float_to_int : signed:bool -> size:int -> t -> bool * bool * bool * t
val cast_float_to_int_inverse : single_precision:bool -> t -> t
val cast_int_to_float : Ival.Float_abstract.rounding_mode -> t -> t * bool
val add_untyped : Int_Base.t -> t -> t -> t
val sub_untyped_pointwise : t -> t -> Ival.t * bool
Substracts two pointers (assumed to have type char*
) and returns the
difference of their offsets. The two pointers are supposed to be pointing
to the same base; the returned boolean indicates that this assumption
might be incorrect.
val mul : with_alarms:CilE.warn_mode -> t -> t -> t
val div : with_alarms:CilE.warn_mode -> t -> t -> t
val c_rem : with_alarms:CilE.warn_mode -> t -> t -> t
val shift_right : with_alarms:CilE.warn_mode -> size:(bool * int) option -> t -> t -> t
val shift_left : with_alarms:CilE.warn_mode -> size:(bool * int) option -> t -> t -> t
val bitwise_and : signed:bool -> size:int -> t -> t -> t
val bitwise_xor : with_alarms:CilE.warn_mode -> t -> t -> t
val bitwise_or : with_alarms:CilE.warn_mode -> t -> t -> t
val all_values : size:Abstract_interp.Int.t -> t -> bool
val create_all_values : modu:Abstract_interp.Int.t -> signed:bool -> size:int -> t