code wiki / _hdl_build / nx_symdrop_gate.nx
nx_symdrop_gate.nx
buildroot/runtime/_hdl_build/nx_symdrop_gate.nx
about
nx_symdrop_gate.nx -- proves the symbol-drop guard actually DETECTS a drop, and does not cry wolf.
The tooth that matters is T5: a baseline symbol that is GONE from the current file must be reported.
A guard that never fires is indistinguishable from no guard at all, and this one exists precisely
because the failure it watches for (a stale whole-file write-back erasing a landed fix) leaves every
other signal GREEN. So the fixtures below feed it a real removal and demand the alarm.
The mirror teeth matter as much: additions and reorderings must NOT fire, or the sweep row goes RED
on every normal edit and gets muted -- a muted alarm is worse than none.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_symdrop.nxnx_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
| 13 | const SG_BUF: i64 = 65536 |
| 14 | const SG_OUT: i64 = 1 |
functions
| 16 | func sg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: sg_puts |
| 17 | func sg_puts(s: *u8) -> i64 { sys_write(SG_OUT, s, sg_slen(s)); return 0 } |
| 18 | func sg_putn(v: i64) -> i64 |
| 29 | func sg_bite(bad: i64, id: *u8, why: *u8) -> i64 |
| 34 | func sg_cpy(dst: *u8, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[i] = s[i]; i = i + 1 } dst[i] = 0 as u8; return i } called by 1: main |
| 36 | func main(argc: i64, argv: *i64) -> i64 |