code wiki / (root) / nx_spatial_probe.nx

nx_spatial_probe.nx

buildroot/runtime/nx_spatial_probe.nx

2537 B57 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_spatial_probe.nx -- STANDING WITNESS for the spatial-safety gap (CWE-787/125). Measures, does not assert. Three cells, each printed with its OWN control: CELL A: [N]T indexed by a COMPILE-TIME CONSTANT -- already compile-time checked (a negative control lives in nx_spatial_negctl_const.nx: it must FAIL TO COMPILE). CELL B: [N]T indexed by a RUNTIME VARIABLE -- the GAP under test. CELL C: *T (raw pointer) indexed out of range -- no length is carried; C-class by construction. A cell prints UNCHECKED when the out-of-range access completed and the program kept running. When the bounds-check rung lands, cell B must instead ABORT -- which this probe cannot print, so the gate asserts on the EXIT CODE, not on this text.

dependencies 1 imports · 0 importers

nx_fmt.nx nx_spatial_probe.nx

imports: nx_fmt.nx

imported by: nobody (leaf or entry point)

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

main fmt_puts fmt_puts_fd sys_write fmt_putn fmt_putn_fd sys_write ↻

structs

none

consts

none

functions

12func main() -> i64