Program Rust
MIN_EXPONENT_ROUND_TO_EVEN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
199 const EXP_MASK: Self::Int = Self::EXPONENT_MASK;200 const SIG_MASK: Self::Int = Self::MANTISSA_MASK;201 202 const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -22;203 const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 5;204 // Exact value of trunc(16 / log2(10)) from the upstream default.205 const LARGEST_POWER_OF_TEN: i32 = 4;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.MIN_EXPONENT_ROUND_TO_EVEN
: Std.I32 :=
(-22)#i32Source details
| Declaration | F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.MIN_EXPONENT_ROUND_TO_EVEN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 202:4–202:48 |
| Program version | Preparation 1 |