code wiki / (root) / nx_rw_callarg.nx

nx_rw_callarg.nx

buildroot/runtime/nx_rw_callarg.nx

707 B22 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic rw
docsdependenciesstructsconstsfunctions

about

nx_rw_callarg.nx -- TRAP WITNESS (pack-rules vet). Tactics under test: (a) a call nested inside another call's argument g(h(z)); (b) a call inside an array-store RHS buf[i] = f(x) * 2. The pack forbids both (hoist-first rule). Exit 0 iff BOTH compile and compute correctly. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_rw_callarg.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 rw_double rw_inc sys_mmap sys_exit

structs

none

consts

none

functions

7func rw_inc(x: i64) -> i64 { return x + 1 }
called by 1: main
9func rw_double(x: i64) -> i64 { return x * 2 }
called by 1: main
11func main(argc: i64, argv: *i64) -> i64