Library
Module
Module type
Parameter
Class
Class type
and t = union_5
APRON Coefficients (either scalars or intervals)
val s_of_int : int -> t
val s_of_frac : int -> int -> t
Create a scalar coefficient of type Mpqf.t
from resp.
Mpq.t
Mpqf.t
x/y
val s_of_float : float -> t
Create an interval coefficient of type Float
with the given value
val i_of_scalar : Apron.Scalar.t -> Apron.Scalar.t -> t
Build an interval from a lower and an upper bound
val i_of_int : int -> int -> t
val i_of_frac : int -> int -> int -> int -> t
val i_of_float : float -> float -> t
Create an interval coefficient from resp. two
Mpq.t
Mpqf.t
x/y
and z/w
val is_scalar : t -> bool
val is_interval : t -> bool
Non Total Comparison:
val is_zero : t -> bool
Is the coefficient equal to scalar 0 or interval 0,0
?
val equal_int : t -> int -> bool
Is the coefficient equal to scalar b or interval b,b
?
val print : Format.formatter -> t -> unit
Printing
val one : t
the constant 1
val minus_one : t
the constant -1
val to_float : t -> float
to_float x
converts x to a float. Raises Invalid_arg if x is a scalar
val to_int : t -> int
to_float x
converts x to an integer. Raises Invalid_arg if x is a scalar