Source context

Program Rust

eq

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

52 // Debug output is not a scoped public or trace observation. Removing only53 // that implementation preserves the fields, computational derives, and every54 // algorithm operation independently of GOAL truth.55 #[derive(Copy, Clone, PartialEq, Eq, Default)]56 pub struct BiasedFp {57     /// The significant digits.58     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 false
Operations used here

BiasedFp · Program Rust

Other extracted objects at this span

num.imp.dec2flt.common.BiasedFp.Insts.CoreMarkerStructuralPartialEq

num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp

Source details
Declarationnum.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq
Filenum/imp/../../dec2flt/common.rs
Lines55:22–55:31
Program versionRevised program