Source context

Rust library

from_bits

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

1286     #[must_use]1287     #[inline]1288     #[allow(unnecessary_transmutes)]1289     pub const fn from_bits(v: u32) -> Self {1290         // It turns out the safety issues with sNaN were overblown! Hooray!1291         // SAFETY: `u32` is a plain old datatype so we can always transmute from it.1292         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::f32::{f32}::from_bits"]
axiom core.f32.F32.from_bits : Std.U32 → Result F32
Source details
Declarationcore.f32.F32.from_bits
File/rustc/library/core/src/num/f32.rs
Lines1289:4–1289:42
Program versionPreparation 1