Source context

Program Rust

NAN

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

271     // u64 values corresponding to relevant cases272     const INF_3: u64 = 0x464E49; // "INF"273     const INF_8: u64 = 0x5954494E49464E49; // "INFINITY"274     const NAN: u64 = 0x4E414E; // "NAN"275 276     // Match register value to constant to parse string.277     // Also match on the string length to catch edge cases

Aeneas 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#u64
Source details
Declarationnum.imp.dec2flt.parse.parse_inf_nan.NAN
Filenum/imp/../../dec2flt/parse.rs
Lines274:4–274:30
Program versionRevised program