Program Rust
MASK
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
16 /// This is based off the algorithm described in "Fast numeric string to17 /// int", available here: <https://johnnylee-sde.github.io/Fast-numeric-string-to-int/>.18 fn parse_8digits(mut v: u64) -> u64 {19 const MASK: u64 = 0x0000_00FF_0000_00FF;20 const MUL1: u64 = 0x000F_4240_0000_0064;21 const MUL2: u64 = 0x0000_2710_0000_0001;22 v -= 0x3030_3030_3030_3030;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def num.imp.dec2flt.parse.parse_8digits.MASK : Std.U64 := 1095216660735#u64Source details
| Declaration | num.imp.dec2flt.parse.parse_8digits.MASK |
|---|---|
| File | num/imp/../../dec2flt/parse.rs |
| Lines | 19:4–19:44 |
| Program version | Original program |