Program Rust
closure
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
30 const POWERS: [u8; 19] =31 [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];32 33 let get_shift = |n| {34 if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }35 };36 37 let fp_zero = BiasedFp::zero_pow2(0);38 let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[reducible]
def num.imp.dec2flt.slow.parse_long_mantissa.closure (F : Type) (Clause0_Int :
Type) :=
UnitOther extracted objects at this span
num.imp.dec2flt.slow.parse_long_mantissa.closure.Insts.CoreOpsFunctionFnTupleUsizeUsize.call
num.imp.dec2flt.slow.parse_long_mantissa.closure.Insts.CoreOpsFunctionFnMutTupleUsizeUsize.call_mut
num.imp.dec2flt.slow.parse_long_mantissa.closure.Insts.CoreOpsFunctionFnOnceTupleUsizeUsize
num.imp.dec2flt.slow.parse_long_mantissa.closure.Insts.CoreOpsFunctionFnMutTupleUsizeUsize
num.imp.dec2flt.slow.parse_long_mantissa.closure.Insts.CoreOpsFunctionFnTupleUsizeUsize
Source details
| Declaration | num.imp.dec2flt.slow.parse_long_mantissa.closure |
|---|---|
| File | num/imp/../../dec2flt/slow.rs |
| Lines | 33:20–35:5 |
| Program version | Original program |