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.

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 {215         // These bit patterns are exactly the source table's rounded binary64

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def
  F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.MAX_EXPONENT_DISGUISED_FAST_PATH
  : Std.I64 :=
  37#i64
Source details
DeclarationF64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.MAX_EXPONENT_DISGUISED_FAST_PATH
Filenum/imp/../../dec2flt/mod.rs
Lines212:4–212:53
Program versionPreparation 1