Program Rust
NAN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
268 // u64 values corresponding to relevant cases269 const INF_3: u64 = 0x464E49; // "INF"270 const INF_8: u64 = 0x5954494E49464E49; // "INFINITY"271 const NAN: u64 = 0x4E414E; // "NAN"272 273 // Match register value to constant to parse string.274 // Also match on the string length to catch edge casesAeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def num.imp.dec2flt.parse.parse_inf_nan.NAN : Std.U64 := 5128526#u64Source details
| Declaration | num.imp.dec2flt.parse.parse_inf_nan.NAN |
|---|---|
| File | num/imp/../../dec2flt/parse.rs |
| Lines | 271:4–271:30 |
| Program version | Preparation 2 |