Source context

Program Rust

SMALLEST_POWER_OF_TEN

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

257     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 10;258     // Exact value of trunc(128 / log2(10)) from the upstream default.259     const LARGEST_POWER_OF_TEN: i32 = 38;260     const SMALLEST_POWER_OF_TEN: i32 = -65;261 262     fn to_bits(self) -> Self::Int {263         self.to_bits()

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.SMALLEST_POWER_OF_TEN
  : Std.I32 :=
  (-65)#i32
Source details
DeclarationF32.Insts.Dec2flt_modelNumImpTraitsFloatU32.SMALLEST_POWER_OF_TEN
Filenum/imp/../../traits.rs
Lines260:4–260:43
Program versionPreparation 1