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.

143     // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and144     // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const145     // float arithmetic without changing either fast-path guard.146     const MAX_EXPONENT_FAST_PATH: i64 = 4;147     const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;148 149     fn pow10_fast_path(exponent: usize) -> Self {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.MAX_EXPONENT_FAST_PATH
  : Std.I64 :=
  4#i64
Source details
DeclarationF16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.MAX_EXPONENT_FAST_PATH
Filenum/imp/../../dec2flt/mod.rs
Lines146:4–146:42
Program versionPreparation 1