Source context

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 generic

Aeneas 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 v
Operations used here

from_bits · Rust library

Source details
DeclarationF64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64.from_u64_bits
Filenum/imp/../../traits.rs
Lines326:4–328:5
Program versionPreparation 1