Program Rust
NEG_NAN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
246 const NAN: Self = f32::NAN;247 // Bit-identical to the upstream `-f32::NAN`, without the unsupported248 // compile-time float negation.249 const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);250 251 const BITS: u32 = 32;252 const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.NEG_NAN : Result F32 :=
core.f32.F32.from_bits 4290772992#u32Operations used here
Source details
| Declaration | F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.NEG_NAN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 249:4–249:54 |
| Program version | Preparation 1 |