Program Rust
NEG_INFINITY
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
187 type Int = u16;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 unopAeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.NEG_INFINITY : Result F16 :=
core.f16.F16.NEG_INFINITYOperations used here
Source details
| Declaration | F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.NEG_INFINITY |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 190:4–190:50 |
| Program version | Preparation 1 |