Source context

Program Rust

zero_pow2

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

59 impl BiasedFp {60     /// Represent `0 ^ p`61     #[inline]62     pub const fn zero_pow2(p_biased: i32) -> Self {63         Self { m: 0, p_biased }64     }65 }

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

def num.imp.dec2flt.common.BiasedFp.zero_pow2
  (p_biased : Std.I32) : Result num.imp.dec2flt.common.BiasedFp := do
  ok { m := 0#u64, p_biased }
Operations used here

BiasedFp · Program Rust

Source details
Declarationnum.imp.dec2flt.common.BiasedFp.zero_pow2
Filenum/imp/../../dec2flt/common.rs
Lines62:4–64:5
Program versionPreparation 2