Program Rust
NUM_POWERS
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
26 /// available here: <https://arxiv.org/pdf/2101.11408.pdf#section.11>.27 pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {28 const MAX_SHIFT: usize = 60;29 const NUM_POWERS: usize = 19;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 Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def num.imp.dec2flt.slow.parse_long_mantissa.NUM_POWERS : Std.Usize := 19#usizeSource details
| Declaration | num.imp.dec2flt.slow.parse_long_mantissa.NUM_POWERS |
|---|---|
| File | num/imp/../../dec2flt/slow.rs |
| Lines | 29:4–29:33 |
| Program version | Original program |