Program Rust
NEG_INFINITY
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
242 type Int = u32;243 244 const INFINITY: Self = f32::INFINITY;245 const NEG_INFINITY: Self = f32::NEG_INFINITY;246 const NAN: Self = f32::NAN;247 // Bit-identical to the upstream `-f32::NAN`, without the unsupported248 // compile-time float negation.Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.NEG_INFINITY : Result F32 :=
core.f32.F32.NEG_INFINITYOperations used here
Source details
| Declaration | F32.Insts.Dec2flt_modelNumImpTraitsFloatU32.NEG_INFINITY |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 245:4–245:49 |
| Program version | Preparation 1 |