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
Source details
| Declaration | num.imp.dec2flt.common.BiasedFp.zero_pow2 |
|---|---|
| File | num/imp/../../dec2flt/common.rs |
| Lines | 62:4–64:5 |
| Program version | Original program |