Source context

Program Rust

SIG_TOTAL_BITS

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

249     const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);250 251     const BITS: u32 = 32;252     const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;253     const EXP_MASK: Self::Int = Self::EXPONENT_MASK;254     const SIG_MASK: Self::Int = Self::MANTISSA_MASK;255 

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.SIG_TOTAL_BITS
  : Result Std.U32 :=
  core.f32.F32.MANTISSA_DIGITS
Operations used here

MANTISSA_DIGITS · Rust library

Source details
DeclarationF32.Insts.Dec2flt_modelNumImpTraitsFloatU32.SIG_TOTAL_BITS
Filenum/imp/../../traits.rs
Lines252:4–252:54
Program versionPreparation 1