Source context

Rust library

from_bits

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

1093     #[must_use]1094     #[unstable(feature = "f16", issue = "116909")]1095     #[allow(unnecessary_transmutes)]1096     pub const fn from_bits(v: u16) -> Self {1097         // It turns out the safety issues with sNaN were overblown! Hooray!1098         // SAFETY: `u16` is a plain old datatype so we can always transmute from it.1099         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::f16::{f16}::from_bits"]
axiom core.f16.F16.from_bits : Std.U16 → Result F16
Source details
Declarationcore.f16.F16.from_bits
File/rustc/library/core/src/num/f16.rs
Lines1096:4–1096:42
Program versionPreparation 1