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.

144     // 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 {150         // Each integer is the exact IEEE encoding of the corresponding

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def
  F16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.MAX_EXPONENT_DISGUISED_FAST_PATH
  : Std.I64 :=
  7#i64
Source details
DeclarationF16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.MAX_EXPONENT_DISGUISED_FAST_PATH
Filenum/imp/../../dec2flt/mod.rs
Lines147:4–147:52
Program versionPreparation 1