code wiki / _hdl_build / _andor_probe.nx
_andor_probe.nx
buildroot/runtime/_hdl_build/_andor_probe.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func pr(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func bump(cell: *i64) -> i64 { cell[0] = cell[0] + 1; return 1 } called by 1: main |
| 12 | func main() -> i64 |