Program Rust
from_u64_bits
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
323 324 impl FloatExt for f64 {325 #[inline]326 fn from_u64_bits(v: u64) -> Self {327 f64::from_bits(v)328 }329 330 // This is the upstream default after substituting `Self::Int = u64`;331 // 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 | 326:4–328:5 |
| Program version | Preparation 1 |