Program Rust
from_u64_bits
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
338 339 impl FloatExt for f64 {340 #[inline]341 fn from_u64_bits(v: u64) -> Self {342 f64::from_bits(v)343 }344 345 // This is the upstream default after substituting `Self::Int = u64`;346 // it preserves every decoded field while avoiding unsupported genericAeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
def F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64.from_u64_bits
(v : Std.U64) : Result F64 := do
core.f64.F64.from_bits vOperations used here
Source details
| Declaration | F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64.from_u64_bits |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 341:4–343:5 |
| Program version | Original program |