Program Rust
eq
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
48 // Debug output is not an accepted public or trace observation. Removing only49 // that implementation preserves the fields, computational derives, and every50 // algorithm operation independently of GOAL truth.51 #[derive(Copy, Clone, PartialEq, Eq, Default)]52 pub struct BiasedFp {53 /// The significant digits.54 pub m: u64,Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
def num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq
(self : num.imp.dec2flt.common.BiasedFp)
(other : num.imp.dec2flt.common.BiasedFp) :
Result Bool
:= do
if self.m = other.m
then ok (self.p_biased = other.p_biased)
else ok falseOperations used here
Other extracted objects at this span
num.imp.dec2flt.common.BiasedFp.Insts.CoreMarkerStructuralPartialEq
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp
Source details
| Declaration | num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq |
|---|---|
| File | num/imp/../../dec2flt/common.rs |
| Lines | 51:22–51:31 |
| Program version | Original program |