Rust library
from_bits
This is Rust standard-library source from the compiler version used in the run.
1266 #[must_use]1267 #[inline]1268 #[allow(unnecessary_transmutes)]1269 pub const fn from_bits(v: u64) -> Self {1270 // It turns out the safety issues with sNaN were overblown! Hooray!1271 // SAFETY: `u64` is a plain old datatype so we can always transmute from it.1272 unsafe { mem::transmute(v) }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}::from_bits"]
axiom core.f64.F64.from_bits : Std.U64 → Result F64Authored 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: ModelF64FromBits]
def ModelF64FromBits : Std.U64 -> Result F64 :=
-- BODY
Binary64ModelDefault.fromBits
end dec2flt_model
Source details
| Declaration | core.f64.F64.from_bits |
|---|---|
| File | /rustc/library/core/src/num/f64.rs |
| Lines | 1269:4–1269:42 |
| Program version | Original program |