Source context

Program Rust

from_u64

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

200     // boundary is required because Aeneas rejects the primitive cast itself;201     // its input guard and every caller remain transparent.202     #[charon::opaque]203     fn from_u64(v: u64) -> Self {204         debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);205         v as _206     }207 }208 209 impl Lemire for f64 {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

axiom F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.from_u64
  : Std.U64 → Result F32
Source details
DeclarationF32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.from_u64
Filenum/imp/../../dec2flt/mod.rs
Lines203:4–206:5
Program versionPreparation 1