Source context

Program Rust

MAX_EXPONENT_DISGUISED_FAST_PATH

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

174 impl Lemire for f32 {175     // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.176     const MAX_EXPONENT_FAST_PATH: i64 = 10;177     const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;178 179     fn pow10_fast_path(exponent: usize) -> Self {180         // Bit constructors preserve the exact table values and masked lookup,

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def
  F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_DISGUISED_FAST_PATH
  : Std.I64 :=
  17#i64
Source details
DeclarationF32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_DISGUISED_FAST_PATH
Filenum/imp/../../dec2flt/mod.rs
Lines177:4–177:53
Program versionPreparation 1