Program Rust
INFINITY
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
294 impl Float for f64 {295 type Int = u64;296 297 const INFINITY: Self = Self::INFINITY;298 const NEG_INFINITY: Self = Self::NEG_INFINITY;299 const NAN: Self = Self::NAN;300 // Bit-identical to the upstream `-f64::NAN`, without the unsupportedAeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.INFINITY : Result F64 :=
core.f64.F64.INFINITYOperations used here
Source details
| Declaration | F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.INFINITY |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 297:4–297:42 |
| Program version | Preparation 1 |