Program Rust
Dec2FltAssemblyTrace
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
326 }327 328 /// Full observation record for the dispatcher path that performs final assembly.329 pub struct Dec2FltAssemblyTrace<'a, F> {330 pub body: &'a [u8],331 pub negative: bool,332 pub parse_number_result: Option<decimal::Decimal>,333 pub fast_path_input: decimal::Decimal,334 pub fast_path_result: Option<F>,335 pub first_compute_exponent: i64,336 pub first_compute_mantissa: u64,337 pub first_compute_result: BiasedFp,338 pub second_compute_guard: bool,339 pub second_compute_exponent: Option<i64>,340 pub second_compute_mantissa: Option<u64>,341 pub second_compute_result: Option<BiasedFp>,342 pub second_equals_first: Option<bool>,343 pub forced_deferral: bool,344 pub post_comparison_pair: BiasedFp,345 pub slow_path_guard: bool,346 pub slow_path_result: Option<BiasedFp>,347 pub selected_pair: BiasedFp,348 pub assembled_word: u64,349 pub assembly_result: F,350 pub lexical_sign_applied: bool,351 pub result: F,352 }353 354 /// Run the actual dispatcher while retaining its approved internal observations.355 pub fn dec2flt_with_trace<Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
structure num.imp.dec2flt.Dec2FltAssemblyTrace (F : Type) where
body : Slice Std.U8
negative : Bool
parse_number_result : Option num.imp.dec2flt.decimal.Decimal
fast_path_input : num.imp.dec2flt.decimal.Decimal
fast_path_result : Option F
first_compute_exponent : Std.I64
first_compute_mantissa : Std.U64
first_compute_result : num.imp.dec2flt.common.BiasedFp
second_compute_guard : Bool
second_compute_exponent : Option Std.I64
second_compute_mantissa : Option Std.U64
second_compute_result : Option num.imp.dec2flt.common.BiasedFp
second_equals_first : Option Bool
forced_deferral : Bool
post_comparison_pair : num.imp.dec2flt.common.BiasedFp
slow_path_guard : Bool
slow_path_result : Option num.imp.dec2flt.common.BiasedFp
selected_pair : num.imp.dec2flt.common.BiasedFp
assembled_word : Std.U64
assembly_result : F
lexical_sign_applied : Bool
result : FSource details
| Declaration | num.imp.dec2flt.Dec2FltAssemblyTrace |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 329:0–352:1 |
| Program version | Original program |