code wiki / _hdl_build / nx_docprose_gate.nx
nx_docprose_gate.nx
buildroot/runtime/_hdl_build/nx_docprose_gate.nx
about
nx_docprose_gate.nx -- GATE for nx_docprose (where does a stored document's real content begin?).
THE FIXTURES ARE THE PRODUCTION DEFECT: the two titles below were served by nishifamily.com/search on
2026-08-25 -- an HTTP status line and a raw markup tag, rendered as document titles because the stored
evidence-mirror captures carry their wire bytes intact and the renderer faithfully took "the first
non-empty line". Every acceptance tooth is paired with a neg-control that must NOT fire, because a
front-matter skipper that skips too much is the same defect pointing the other way.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_docprose.nxnx_gate_verdict.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
| 11 | const DG_CAP: i64 = 72 // the live renderer's title cap -- the cap under which the defect was seen |
| 12 | const DG_BIGCAP: i64 = 4096 |
| 13 | const DG_CH_LT: i64 = 60 // '<' |
| 14 | const DG_CH_BANG: i64 = 33 // '!' |
functions
| 16 | func dg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 17 | func dg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 } called by 1: main |
| 18 | func dg_gt(a: i64, b: i64) -> i64 { if a > b { return 1 } return 0 } called by 1: main |
| 19 | func dg_not(v: i64) -> i64 { if v == 0 { return 1 } return 0 } called by 1: main |
| 20 | func dg_show(label: *u8, v: i64) -> i64 { gv_puts(label); gv_num(v); gv_puts("\n" as *u8); return 0 } |
| 22 | func dg_spaneq(txt: *u8, off: i64, len: i64, exp: *u8) -> i64 called by 1: main |
| 29 | func main(argc: i64, argv: *i64) -> i64 |