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.

216 217 impl Lemire for f64 {218     // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.219     const MAX_EXPONENT_FAST_PATH: i64 = 22;220     const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;221 222     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
Lines219:4–219:43
Program versionOriginal program