← All docs
ptr_is_null() — internals
Compiler internals for ptr_is_null(): lowering path, type checks, and runtime helpers.
ptr_is_null() — internals
Where it lives
- Signature:
src/builtins/pointers/ptr_is_null.rs - Lowering:
src/codegen/lower_inst/builtins/pointers.rs:51 (lower_ptr_is_null) - Function symbol:
lower_ptr_is_null()
Lowering notes
- Lowers
ptr_is_null(pointer)by comparing the raw pointer address to zero.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function ptr_is_null(pointer $pointer): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/raw_memory/ptr_is_null.rs(eval_builtin!) - Dispatch hooks:
direct,values