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.

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 {223         // 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
Lines220:4–220:53
Program versionOriginal program