Source context

Program Rust

default

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

111     const INFINITE_POWER: i32 = Self::EXP_SAT as i32;112 113     /// The exponent bias value. This is also the maximum value of the exponent.114     const EXP_BIAS: u32 = Self::EXP_SAT >> 1;115 116     /// Minimum exponent value of normal values.117     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
Lines114:4–114:45
Program versionPreparation 1