code wiki / _hdl_build / nx_docprose_gate.nx

nx_docprose_gate.nx

buildroot/runtime/_hdl_build/nx_docprose_gate.nx

9037 B131 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_docprose.nx nx_gate_verdict.nx nx_docprose_gate.nx

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

main gv_head gv_puts sys_write gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ dg_len gv_check gv_puts ↻ dpr_is_header_line dpr_is_namech tc_is_wordch dpr_line_end dpr_http_body dpr_load_conf dpr_conf_one lc_geti sys_mmap ↻ lc_read sys_openat_rd sys_read sys_close lc_slen dpr_find_ci dpr_lc dg_show

structs

none

consts

11const DG_CAP: i64 = 72 // the live renderer's title cap -- the cap under which the defect was seen
12const DG_BIGCAP: i64 = 4096
13const DG_CH_LT: i64 = 60 // '<'
14const DG_CH_BANG: i64 = 33 // '!'

functions

16func dg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
17func dg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
18func dg_gt(a: i64, b: i64) -> i64 { if a > b { return 1 } return 0 }
called by 1: main
19func dg_not(v: i64) -> i64 { if v == 0 { return 1 } return 0 }
called by 1: main
20func dg_show(label: *u8, v: i64) -> i64 { gv_puts(label); gv_num(v); gv_puts("\n" as *u8); return 0 }
called by 1: main calls 2: gv_putsgv_num
22func dg_spaneq(txt: *u8, off: i64, len: i64, exp: *u8) -> i64
called by 1: main
29func main(argc: i64, argv: *i64) -> i64