← All docs
intdiv() — internals
Compiler internals for intdiv(): lowering path, type checks, and runtime helpers.
intdiv() — internals
Where it lives
- Signature:
src/builtins/math/intdiv.rs - Lowering:
src/codegen/lower_inst/builtins/math/binary.rs:22 (lower_intdiv) - Function symbol:
lower_intdiv()
Lowering notes
- Lowers
intdiv()for concrete integer-like numeric operands.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function intdiv(int $num1, int $num2): int
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/intdiv.rs(eval_builtin!) - Dispatch hooks:
direct,values