Program Rust
MIN_EXPONENT_ROUND_TO_EVEN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
253 const EXP_MASK: Self::Int = Self::EXPONENT_MASK;254 const SIG_MASK: Self::Int = Self::MANTISSA_MASK;255 256 const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -17;257 const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 10;258 // Exact value of trunc(128 / log2(10)) from the upstream default.259 const LARGEST_POWER_OF_TEN: i32 = 38;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.MIN_EXPONENT_ROUND_TO_EVEN
: Std.I32 :=
(-17)#i32Source details
| Declaration | F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.MIN_EXPONENT_ROUND_TO_EVEN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 256:4–256:48 |
| Program version | Preparation 1 |