← All docs
is_nan() — internals
Compiler internals for is_nan(): lowering path, type checks, and runtime helpers.
is_nan() — internals
Where it lives
- Signature:
src/builtins/types/is_nan.rs - Lowering:
src/codegen/lower_inst/builtins/math.rs:113 (lower_is_nan) - Function symbol:
lower_is_nan()
Lowering notes
- Lowers
is_nan()by checking whether the normalized float is unordered with itself.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function is_nan(float $num): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/types/is_nan.rs(eval_builtin!) - Dispatch hooks:
direct,values