sig
type t = private
Set of Abstract_interp.Int.t array
| Float of Fval.t
| Top of Abstract_interp.Int.t option * Abstract_interp.Int.t option *
Abstract_interp.Int.t * Abstract_interp.Int.t
module Widen_Hints :
sig
type elt = Integer.t
type t
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val diff : t -> t -> t
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val choose : t -> elt
val split : elt -> t -> t * bool * t
val find : elt -> t -> elt
val of_list : elt list -> t
val min_elt : t -> elt
val max_elt : t -> elt
val nearest_elt_le : elt -> t -> elt
val nearest_elt_ge : elt -> t -> elt
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
val default_widen_hints : Ival.t
end
type size_widen_hint = Integer.t
type generic_widen_hint = Ival.Widen_Hints.t
module Set :
sig
type elt = t
type t
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val diff : t -> t -> t
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val choose : t -> elt
val split : elt -> t -> t * bool * t
val find : elt -> t -> elt
val of_list : elt list -> t
val min_elt : t -> elt
val max_elt : t -> elt
val nearest_elt_le : elt -> t -> elt
val nearest_elt_ge : elt -> t -> elt
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
end
module Map :
sig
type key = t
type +'a t
val empty : 'a t
val is_empty : 'a t -> bool
val mem : key -> 'a t -> bool
val add : key -> 'a -> 'a t -> 'a t
val singleton : key -> 'a -> 'a t
val remove : key -> 'a t -> 'a t
val merge :
(key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val for_all : (key -> 'a -> bool) -> 'a t -> bool
val exists : (key -> 'a -> bool) -> 'a t -> bool
val filter : (key -> 'a -> bool) -> 'a t -> 'a t
val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t
val cardinal : 'a t -> int
val bindings : 'a t -> (key * 'a) list
val min_binding : 'a t -> key * 'a
val max_binding : 'a t -> key * 'a
val choose : 'a t -> key * 'a
val split : key -> 'a t -> 'a t * 'a option * 'a t
val find : key -> 'a t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
module Key :
sig
type t = key
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
end
module Make :
functor (Data : Datatype.S) ->
sig
type t = Data.t t
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
end
end
module Hashtbl :
sig
type key = t
type 'a t
val create : int -> 'a t
val clear : 'a t -> unit
val reset : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val find : 'a t -> key -> 'a
val find_all : 'a t -> key -> 'a list
val replace : 'a t -> key -> 'a -> unit
val mem : 'a t -> key -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val length : 'a t -> int
val stats : 'a t -> Hashtbl.statistics
val iter_sorted :
?cmp:(key -> key -> int) -> (key -> 'a -> unit) -> 'a t -> unit
val fold_sorted :
?cmp:(key -> key -> int) ->
(key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val iter_sorted_by_entry :
cmp:(key * 'a -> key * 'a -> int) ->
(key -> 'a -> unit) -> 'a t -> unit
val fold_sorted_by_entry :
cmp:(key * 'a -> key * 'a -> int) ->
(key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val iter_sorted_by_value :
cmp:('a -> 'a -> int) -> (key -> 'a -> unit) -> 'a t -> unit
val fold_sorted_by_value :
cmp:('a -> 'a -> int) -> (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val structural_descr : Structural_descr.t -> Structural_descr.t
val make_type : 'a Type.t -> 'a t Type.t
val memo : 'a t -> key -> (key -> 'a) -> 'a
module Key :
sig
type t = key
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
end
module Make :
functor (Data : Datatype.S) ->
sig
type t = Data.t t
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code :
Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
end
end
val ty : t Type.t
val name : string
val descr : t Descr.t
val packed_descr : Structural_descr.pack
val reprs : t list
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
val pretty_code : Format.formatter -> t -> unit
val internal_pretty_code : Type.precedence -> Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val varname : t -> string
val mem_project : (Project_skeleton.t -> bool) -> t -> bool
val copy : t -> t
val join : t -> t -> t
val is_included : t -> t -> bool
val bottom : t
val top : t
type widen_hint = size_widen_hint * generic_widen_hint
val widen : widen_hint -> t -> t -> t
val narrow : t -> t -> t
val link : t -> t -> t
val meet : t -> t -> t
val intersects : t -> t -> bool
val diff : t -> t -> t
val diff_if_one : t -> t -> t
val is_bottom : Ival.t -> bool
val partially_overlaps : size:Integer.t -> Ival.t -> Ival.t -> bool
val add_int : Ival.t -> Ival.t -> Ival.t
val add_int_under : Ival.t -> Ival.t -> Ival.t
val add_singleton_int : Integer.t -> Ival.t -> Ival.t
val neg_int : Ival.t -> Ival.t
val sub_int : Ival.t -> Ival.t -> Ival.t
val sub_int_under : Ival.t -> Ival.t -> Ival.t
val min_int : Ival.t -> Integer.t option
val max_int : Ival.t -> Integer.t option
val min_max_r_mod :
Ival.t -> Integer.t option * Integer.t option * Integer.t * Integer.t
val min_and_max : Ival.t -> Integer.t option * Integer.t option
val bitwise_and : size:int -> signed:bool -> Ival.t -> Ival.t -> Ival.t
val bitwise_or : Ival.t -> Ival.t -> Ival.t
val bitwise_xor : Ival.t -> Ival.t -> Ival.t
val bitwise_not : Ival.t -> Ival.t
val bitwise_not_size : size:int -> signed:bool -> Ival.t -> Ival.t
val min_and_max_float : Ival.t -> Fval.F.t * Fval.F.t
val zero : Ival.t
val one : Ival.t
val minus_one : Ival.t
val zero_or_one : Ival.t
val positive_integers : Ival.t
val negative_integers : Ival.t
val float_zeros : Ival.t
val is_zero : Ival.t -> bool
val is_one : Ival.t -> bool
val contains_zero : Ival.t -> bool
val contains_non_zero : Ival.t -> bool
val top_float : Ival.t
val top_single_precision_float : Ival.t
exception Nan_or_infinite
val project_float : Ival.t -> Fval.t
val force_float : Cil_types.fkind -> Ival.t -> bool * Ival.t
val inject_singleton : Integer.t -> Ival.t
val inject_float : Fval.t -> Ival.t
val inject_float_interval : float -> float -> Ival.t
val inject_range : Integer.t option -> Integer.t option -> Ival.t
val inject_interval :
min:Integer.t option ->
max:Integer.t option -> rem:Integer.t -> modu:Integer.t -> Ival.t
val cardinal_zero_or_one : Ival.t -> bool
val is_singleton_int : Ival.t -> bool
exception Not_Singleton_Int
val project_int : Ival.t -> Integer.t
val cardinal : Ival.t -> Integer.t option
val cardinal_estimate : Ival.t -> Integer.t -> Integer.t
val cardinal_less_than : Ival.t -> int -> int
val cardinal_is_less_than : Ival.t -> int -> bool
val fold_int : (Integer.t -> 'a -> 'a) -> Ival.t -> 'a -> 'a
val fold_int_decrease : (Integer.t -> 'a -> 'a) -> Ival.t -> 'a -> 'a
val fold_enum : (Ival.t -> 'a -> 'a) -> Ival.t -> 'a -> 'a
val fold_int_bounds : (Ival.t -> 'a -> 'a) -> Ival.t -> 'a -> 'a
val apply_set :
(Integer.t -> Integer.t -> Integer.t) -> Ival.t -> Ival.t -> Ival.t
val apply_set_unary : (Integer.t -> Integer.t) -> Ival.t -> Ival.t
val subdiv_float_interval :
size:Fval.float_kind option -> Ival.t -> Ival.t * Ival.t
val subdiv_int : Ival.t -> Ival.t * Ival.t
val compare_min_float : Ival.t -> Ival.t -> int
val compare_max_float : Ival.t -> Ival.t -> int
val compare_min_int : Ival.t -> Ival.t -> int
val compare_max_int : Ival.t -> Ival.t -> int
val scale : Integer.t -> Ival.t -> Ival.t
val scale_div : pos:bool -> Integer.t -> Ival.t -> Ival.t
val scale_div_under : pos:bool -> Integer.t -> Ival.t -> Ival.t
val div : Ival.t -> Ival.t -> Ival.t
val scale_rem : pos:bool -> Integer.t -> Ival.t -> Ival.t
val c_rem : Ival.t -> Ival.t -> Ival.t
val mul : Ival.t -> Ival.t -> Ival.t
val shift_left : Ival.t -> Ival.t -> Ival.t
val shift_right : Ival.t -> Ival.t -> Ival.t
val interp_boolean : contains_zero:bool -> contains_non_zero:bool -> Ival.t
val extract_bits :
start:Integer.t -> stop:Integer.t -> size:Integer.t -> Ival.t -> Ival.t
val create_all_values_modu :
modu:Integer.t -> signed:bool -> size:int -> Ival.t
val create_all_values : signed:bool -> size:int -> Ival.t
val all_values : size:Integer.t -> Ival.t -> bool
val backward_mult_int_left :
right:Ival.t -> result:Ival.t -> Ival.t option Bottom.or_bottom
val backward_comp_int_left :
Abstract_interp.Comp.t -> Ival.t -> Ival.t -> Ival.t
val backward_comp_float_left :
Abstract_interp.Comp.t ->
bool -> Fval.float_kind -> Ival.t -> Ival.t -> Ival.t
val forward_comp_int :
Abstract_interp.Comp.t -> Ival.t -> Ival.t -> Abstract_interp.Comp.result
val compare_max_min : Integer.t option -> Integer.t option -> int
val compare_min_max : Integer.t option -> Integer.t option -> int
val scale_int_base : Int_Base.t -> Ival.t -> Ival.t
val cast_float_to_int :
signed:bool -> size:int -> Ival.t -> bool * (bool * bool) * Ival.t
val cast_float_to_int_inverse : single_precision:bool -> Ival.t -> Ival.t
val cast_int_to_float_inverse : single_precision:bool -> Ival.t -> Ival.t
val of_int : int -> Ival.t
val of_int64 : int64 -> Ival.t
val cast_int_to_float : Fval.rounding_mode -> Ival.t -> bool * Ival.t
val cast : size:Integer.t -> signed:bool -> value:Ival.t -> Ival.t
val cast_float :
rounding_mode:Fval.rounding_mode -> Ival.t -> bool * Ival.t
val cast_double : Ival.t -> bool * Ival.t
val pretty_debug : Format.formatter -> Ival.t -> unit
val get_small_cardinal : unit -> int
val set_small_cardinal : int -> unit
end