Program Rust
NAN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
311 312 const INFINITY: Self = Self::INFINITY;313 const NEG_INFINITY: Self = Self::NEG_INFINITY;314 const NAN: Self = Self::NAN;315 // Bit-identical to the upstream `-f64::NAN`, without the unsupported316 // compile-time float negation.317 const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.NAN : Result F64 :=
core.f64.F64.NANOperations used here
Source details
| Declaration | F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.NAN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 314:4–314:32 |
| Program version | Preparation 2 |