Program Rust
NAN
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
188 189 const INFINITY: Self = Self::INFINITY;190 const NEG_INFINITY: Self = Self::NEG_INFINITY;191 const NAN: Self = Self::NAN;192 // `from_bits` produces exactly the bit pattern obtained by negating the193 // upstream canonical NaN. This avoids Aeneas's unsupported float unop194 // while preserving the constant, including its sign and payload bits.Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.NAN : Result F16 :=
core.f16.F16.NANOperations used here
Source details
| Declaration | F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.NAN |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 191:4–191:32 |
| Program version | Preparation 1 |