module Coeff:sig..end
type union_5 =
| |
Scalar of |
| |
Interval of |
typet =union_5
APRON Coefficients (either scalars or intervals)
val s_of_mpq : Mpq.t -> t
val s_of_mpqf : Mpqf.t -> t
val s_of_int : int -> t
val s_of_frac : int -> int -> tCreate a scalar coefficient of type Mpqf.t from resp.
Mpq.t Mpqf.t x/yval s_of_float : float -> tCreate an interval coefficient of type Float with the given value
val s_of_mpfr : Mpfr.t -> tCreate an interval coefficient of type Mpfr with the given value
val i_of_scalar : Scalar.t -> Scalar.t -> tBuild an interval from a lower and an upper bound
val i_of_mpq : Mpq.t -> Mpq.t -> t
val i_of_mpqf : Mpqf.t -> Mpqf.t -> t
val i_of_int : int -> int -> t
val i_of_frac : int -> int -> int -> int -> t
val i_of_float : float -> float -> t
val i_of_mpfr : Mpfr.t -> Mpfr.t -> tCreate an interval coefficient from resp. two
Mpq.t Mpqf.t x/y and z/wval is_scalar : t -> bool
val is_interval : t -> bool
val cmp : t -> t -> intNon Total Comparison:
val equal : t -> t -> boolEquality test
val is_zero : t -> boolIs the coefficient equal to scalar 0 or interval 0,0 ?
val equal_int : t -> int -> boolIs the coefficient equal to scalar b or interval b,b ?
val neg : t -> tNegation
val reduce : t -> tConvert interval to scalar if possible
val print : Stdlib.Format.formatter -> t -> unitPrinting