Source context

Rust library

EXPONENT_MASK

This is Rust standard-library source from the compiler version used in the run.

612     /// assert_eq!(get_exp(4.0), 2);613     /// ```614     #[unstable(feature = "float_masks", issue = "154064")]615     pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;616 617     /// The mask of the bits used to encode the mantissa of an [`f64`].618     ///

Aeneas declaration

Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.

@[rust_const "core::f64::{f64}::EXPONENT_MASK"]
axiom core.f64.F64.EXPONENT_MASK : Result Std.U64

Authored Lean model

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

Why this model is faithful

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64ExponentMask]
def ModelF64ExponentMask : Result Std.U64 :=
-- BODY
  Binary64ModelDefault.exponentMask
end dec2flt_model
Source details
Declarationcore.f64.F64.EXPONENT_MASK
File/rustc/library/core/src/num/f64.rs
Lines615:4–615:32
Program versionPreparation 2