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.

202     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -22;203     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 5;204     // Exact value of trunc(16 / log2(10)) from the upstream default.205     const LARGEST_POWER_OF_TEN: i32 = 4;206     const SMALLEST_POWER_OF_TEN: i32 = -27;207 208     fn to_bits(self) -> Self::Int {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.LARGEST_POWER_OF_TEN
  : Std.I32 :=
  4#i32
Source details
DeclarationF16.Insts.Dec2flt_modelNumImpTraitsFloatU16.LARGEST_POWER_OF_TEN
Filenum/imp/../../traits.rs
Lines205:4–205:40
Program versionPreparation 1