Source context

Program Rust

default

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

113     const INFINITE_POWER: i32 = Self::EXP_SAT as i32;114 115     /// The exponent bias value. This is also the maximum value of the exponent.116     const EXP_BIAS: u32 = Self::EXP_SAT >> 1;117 118     /// Minimum exponent value of normal values.119     const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible, trait_default]
def num.imp.traits.Float.EXP_BIAS.default {Self : Type} {Clause0_Int : Type}
  (FloatInst : num.imp.traits.Float Self Clause0_Int) : Result Std.U32 := do
  let i ← FloatInst.EXP_SAT
  i >>> 1#i32
Operations used here

Float · Program Rust

Source details
Declarationnum.imp.traits.Float.EXP_BIAS.default
Filenum/imp/../../traits.rs
Lines116:4–116:45
Program versionOriginal program