Rust library
NAN
This is Rust standard-library source from the compiler version used in the run.
506 #[rustc_diagnostic_item = "f64_nan"]507 #[stable(feature = "assoc_int_consts", since = "1.43.0")]508 #[allow(clippy::eq_op)]509 pub const NAN: f64 = 0.0_f64 / 0.0_f64;510 /// Infinity (∞).511 #[stable(feature = "assoc_int_consts", since = "1.43.0")]512 pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;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}::NAN"] axiom core.f64.F64.NAN : 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: ModelF64Nan]
def ModelF64Nan : Result F64 :=
-- BODY
Binary64ModelDefault.nan
end dec2flt_model
Source details
| Declaration | core.f64.F64.NAN |
|---|---|
| File | /rustc/library/core/src/num/f64.rs |
| Lines | 509:4–509:22 |
| Program version | Original program |