module Interval:sig..end
type t = {
|
mutable inf : |
|
mutable sup : |
}
APRON Intervals on scalars
val of_scalar : Scalar.t -> Scalar.t -> tBuild an interval from a lower and an upper bound
val of_infsup : Scalar.t -> Scalar.t -> tdepreciated
val of_mpq : Mpq.t -> Mpq.t -> t
val of_mpqf : Mpqf.t -> Mpqf.t -> t
val of_int : int -> int -> t
val of_frac : int -> int -> int -> int -> t
val of_float : float -> float -> t
val of_mpfr : Mpfr.t -> Mpfr.t -> tCreate an interval from resp. two
Mpq.t Mpqf.t x/y and z/wval is_top : t -> boolDoes the interval represent the universe ([-oo,+oo]) ?
val is_bottom : t -> boolDoes the interval contain no value ([a,b] with a>b) ?
val is_leq : t -> t -> boolInclusion test. is_leq x y returns true if x is included in y
val cmp : t -> t -> intNon Total Comparison: 0: equality -1: i1 included in i2 +1: i2 included in i1 -2: i1.inf less than or equal to i2.inf +2: i1.inf greater than i2.inf
val equal : t -> t -> boolEquality test
val is_zero : t -> boolIs the interval equal to 0,0 ?
val equal_int : t -> int -> boolIs the interval equal to i,i ?
val neg : t -> tNegation
val top : t
val bottom : tTop and bottom intervals (using DOUBLE coefficients)
val set_infsup : t -> Scalar.t -> Scalar.t -> unitFill the interval with the given lower and upper bouunds
val set_top : t -> unit
val set_bottom : t -> unitFill the interval with top (resp. bottom) value
val print : Stdlib.Format.formatter -> t -> unitPrint an interval, under the format [inf,sup]