code wiki / (root) / nx_boundscheck_constidx.nx

nx_boundscheck_constidx.nx

buildroot/runtime/nx_boundscheck_constidx.nx

879 B20 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_boundscheck_constidx.nx -- STANDING WITNESS for the COMPILE-TIME leg of LN3 raw-pointer provenance (sibling of nx_boundscheck.nx; same family as nx_litprobe / nx_constidx_probe). buf[64] on a 64-byte allocation is a provable out-of-range access. Under the DEFAULT build this compiles clean and runs (reading one byte of neighboring memory -- the silent C-class behavior, kept as the hazard record). Under `--ptrprov` the compiler REFUSES it at parse time with the 5W+H provenance diagnostic -- nx_boundscheck_gate asserts both directions and that the refusal names the provenance rule, not some other error. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_boundscheck_constidx.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻

structs

none

consts

13const BCC_ALLOC: i64 = 64

functions

15func main() -> i64
calls 1: sys_mmap