code wiki / _hdl_build / _andor_probe.nx

_andor_probe.nx

buildroot/runtime/_hdl_build/_andor_probe.nx

2391 B38 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

_andor_probe.nx -- LM-001: does the nx compiler support && / || short-circuit operators, or must we keep the nested-if WORKAROUND sprinkled everywhere? PROBE FIRST (the de-bolting discipline): if these parse+evaluate+short-circuit correctly, LM-001 is STALE -> retire the law + the nested-if patches; if the build fails on `&&`, the defect is REAL -> fix the root in the compiler. Tests: (1) parse, (2) value-correctness, (3) SHORT-CIRCUIT (RHS side effect must NOT fire when LHS already decides the result). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx _andor_probe.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 pr sys_write sys_mmap bump sys_exit

structs

none

consts

none

functions

9func pr(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
11func bump(cell: *i64) -> i64 { cell[0] = cell[0] + 1; return 1 }
called by 1: main
12func main() -> i64