AltErgoLib.Fpa_roundingWe reuse Dolmen's own representation of the rounding modes.
val compare_rounding_mode : rounding_mode -> rounding_mode -> intEqual to "fpa_rounding_mode", the Alt-Ergo native rounding mode type.
val fpa_rounding_mode : Ty.tThe rounding mode type.
val rounding_mode_of_smt : string -> rounding_modeTransforms the string corresponding to a RoundingMode element into the rounding_mode equivalent. Raises 'Failure' if the string does not correspond to a valid rounding mode.
val rounding_mode_of_ae : string -> rounding_modeSame, but for legacy's rounding_mode equivalent.
val string_of_rounding_mode : rounding_mode -> stringReturns the string representation of the rounding_mode (SMT2 standard)
val term_cst_of_rounding_mode : rounding_mode -> Dolmen.Std.Expr.term_cstReturns the Dolmen constructor associated with the rounding mode.
val integer_log_2 : Numbers.Q.t -> intInteger part of binary logarithm for NON-ZERO POSITIVE number *
val mult_x_by_2_pow_n : Numbers.Q.t -> int -> Numbers.Q.tmult_x_by_2_pow_n x n is x * 2^n.
val float_of_rational :
int ->
int ->
rounding_mode ->
Numbers.Q.t ->
Numbers.Q.t * Numbers.Z.t * intfloat_of_rational prec exp mode x float approx of a rational constant. The function also returns the mantissa and the exponent. i.e. if res, m, e = float_of_rational prec exp mode x, then res = m * 2^e *
val round : int -> int -> rounding_mode -> Numbers.Q.t -> Numbers.Q.tround prec exp mode x is the first component of float_of_rational prec exp mode x.
val succ : int -> int -> Numbers.Q.t -> Numbers.Q.tsucc prec exp x is the next float of the format after x, which must be a float of the format.
val pred : int -> int -> Numbers.Q.t -> Numbers.Q.tpred prec exp x is the float of the format before x, which must be a float of the format.
val round_to_integer : rounding_mode -> Numbers.Q.t -> Numbers.Q.tround_to_integer mode x rounds the rational x to an integer depending on the rounding mode mode