Program Rust
NEG_NAN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
299 const NAN: Self = Self::NAN;300 // Bit-identical to the upstream `-f64::NAN`, without the unsupported301 // compile-time float negation.302 const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);303 304 const BITS: u32 = 64;305 const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.NEG_NAN : Result F64 :=
core.f64.F64.from_bits 18444492273895866368#u64Operations used here
Source details
| Declaration | F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.NEG_NAN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 302:4–302:64 |
| Program version | Preparation 1 |