Source context

Program Rust

default

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

125     const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;126 127     /// Maximum mantissa for the fast-path (`1 << 53` for f64).128     const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;129 130     /// Gets a small power-of-ten for fast-path multiplication.131     fn pow10_fast_path(exponent: usize) -> Self;

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible, trait_default]
def num.imp.dec2flt.Lemire.MAX_MANTISSA_FAST_PATH.default {Self : Type}
  {Clause0_Clause0_Clause0_Int : Type} (LemireInst : num.imp.dec2flt.Lemire
  Self Clause0_Clause0_Clause0_Int) : Result Std.U64 := do
  let i ← LemireInst.traitsFloatExtInst.FloatInst.SIG_TOTAL_BITS
  1#u64 <<< i
Operations used here

Lemire · Program Rust

Source details
Declarationnum.imp.dec2flt.Lemire.MAX_MANTISSA_FAST_PATH.default
Filenum/imp/../../dec2flt/mod.rs
Lines128:4–128:66
Program versionOriginal program