Rust library
to_bits
This is Rust standard-library source from the compiler version used in the run.
1220 #[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]1221 #[allow(unnecessary_transmutes)]1222 #[inline]1223 pub const fn to_bits(self) -> u64 {1224 // SAFETY: `u64` is a plain old datatype so we can always transmute to it.1225 unsafe { mem::transmute(self) }1226 }Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::f64::{f64}::to_bits"]
axiom core.f64.F64.to_bits : F64 → Result Std.U64Authored Lean model
Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.
import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64ToBits]
def ModelF64ToBits : F64 -> Result Std.U64 :=
-- BODY
Binary64ModelDefault.toBits
end dec2flt_model
Source details
| Declaration | core.f64.F64.to_bits |
|---|---|
| File | /rustc/library/core/src/num/f64.rs |
| Lines | 1223:4–1223:37 |
| Program version | Preparation 2 |