Source context

Program Rust

LARGEST_POWER_OF_TEN

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

309     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -4;310     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 23;311     // Exact value of trunc(1024 / log2(10)) from the upstream default.312     const LARGEST_POWER_OF_TEN: i32 = 308;313     const SMALLEST_POWER_OF_TEN: i32 = -342;314 315     fn to_bits(self) -> Self::Int {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.LARGEST_POWER_OF_TEN
  : Std.I32 :=
  308#i32
Source details
DeclarationF64.Insts.Dec2flt_modelNumImpTraitsFloatU64.LARGEST_POWER_OF_TEN
Filenum/imp/../../traits.rs
Lines312:4–312:42
Program versionPreparation 1