Program Rust
Dec2FltAssemblyTrace
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
315 }316 317 /// Full observation record for the dispatcher path that performs final assembly.318 pub struct Dec2FltAssemblyTrace<'a, F> {319 pub body: &'a [u8],320 pub negative: bool,321 pub parse_number_result: Option<decimal::Decimal>,322 pub fast_path_input: decimal::Decimal,323 pub fast_path_result: Option<F>,324 pub first_compute_exponent: i64,325 pub first_compute_mantissa: u64,326 pub first_compute_result: BiasedFp,327 pub second_compute_guard: bool,328 pub second_compute_exponent: Option<i64>,329 pub second_compute_mantissa: Option<u64>,330 pub second_compute_result: Option<BiasedFp>,331 pub second_equals_first: Option<bool>,332 pub forced_deferral: bool,333 pub post_comparison_pair: BiasedFp,334 pub slow_path_guard: bool,335 pub slow_path_result: Option<BiasedFp>,336 pub selected_pair: BiasedFp,337 pub assembled_word: u64,338 pub assembly_result: F,339 pub lexical_sign_applied: bool,340 pub result: F,341 }342 343 /// Run the actual dispatcher while retaining its approved internal observations.344 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 | 318:0–341:1 |
| Program version | Preparation 1 |