Source context

Program Rust

from_u64

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

165     // Charon extracts the cast, but Aeneas reports it unreachable; making only166     // this primitive boundary opaque preserves all guards and dispatcher logic.167     #[charon::opaque]168     fn from_u64(v: u64) -> Self {169         debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);170         v as _171     }172 }173 174 impl Lemire for f32 {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

axiom F16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.from_u64
  : Std.U64 → Result F16
Source details
DeclarationF16.Insts.Dec2flt_modelNumImpDec2fltLemireU16.from_u64
Filenum/imp/../../dec2flt/mod.rs
Lines168:4–171:5
Program versionPreparation 1