Source context

Program Rust

MIN_EXPONENT_ROUND_TO_EVEN

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

321     const EXP_MASK: Self::Int = Self::EXPONENT_MASK;322     const SIG_MASK: Self::Int = Self::MANTISSA_MASK;323 324     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -4;325     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 23;326     // Exact value of trunc(1024 / log2(10)) from the upstream default.327     const LARGEST_POWER_OF_TEN: i32 = 308;

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.MIN_EXPONENT_ROUND_TO_EVEN
  : Std.I32 :=
  (-4)#i32
Source details
DeclarationF64.Insts.Dec2flt_modelNumImpTraitsFloatU64.MIN_EXPONENT_ROUND_TO_EVEN
Filenum/imp/../../traits.rs
Lines324:4–324:47
Program versionOriginal program