Source context

Program Rust

MAX_EXPONENT_FAST_PATH

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

208 209 impl Lemire for f64 {210     // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.211     const MAX_EXPONENT_FAST_PATH: i64 = 22;212     const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;213 214     fn pow10_fast_path(exponent: usize) -> Self {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.MAX_EXPONENT_FAST_PATH
  : Std.I64 :=
  22#i64
Source details
DeclarationF64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.MAX_EXPONENT_FAST_PATH
Filenum/imp/../../dec2flt/mod.rs
Lines211:4–211:43
Program versionPreparation 1