nx_swcompare_heading_matrix_20260907.nx
buildroot/runtime/nx_swcompare_heading_matrix_20260907.nx
about
nx_swcompare_matrix.nx -- GENERIC, data-driven, liar-killed SoftwareCompare MATRIX generator. Reads
knowledge/compare/<domain>.matrix (label|organ|symbol|exceed|ONE CELL PER @cols ENTRY|note + @title/@sub/@cols directives),
MEASURES each Nishi cell by requiring the implementing symbol to EXIST in the real organ source on disk (no
self-grading), and emits a head-to-head SoftwareCompare page (Nishi + N named competitors, N = the @cols count, bounded only by SWC_ROW_STRIDE). Retires the
per-domain bespoke nx_swcompare_<domain> matrix organs: a new comparison = one .matrix data file, ZERO code.
Two modes: no html arg = console census + liar-kill gate (exit 0/1); "html" = emit the page to stdout.
NOTE: no '#' or '!' in string literals (nx_cc lexer trap) -> rgb() colors + DOCTYPE '!' emitted as a byte.
license_tier: ORIGINAL expect_exit: 0
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_tool_run.nxnx_comparetree_lib.nxnx_swcompare_heading_lib_20260907.nxnx_catalog_lib.nxnx_swcompare_heading_sota_20260907.nxnx_evprofile_lib.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
| 36 | const K_MAGIC_5381: i64 = 5381 |
| 42 | const GAL_PROBE_CAP: i64 = 16384 // a probe's stdout reserve (kkfacts decode measures ~1.5KB); brim announces |
| 43 | const GAL_PROBE_AV: i64 = 6 // elf + up to 3 spec tokens + artifact path + NUL |
| 44 | const K_MAGIC_262144: i64 = 262144 |
| 45 | const K_MAGIC_20480: i64 = 20480 |
| 46 | const K_MAGIC_20479: i64 = 20479 |
| 53 | const SWC_ROW_STRIDE: i64 = 16 |
| 54 | const SWC_ROW_FIXED: i64 = 5 |
| 74 | const MXH_MAX: i64 = 64 // distinct class tokens; the ladder has 10 verdicts plus GATE: variants, and an overflow is COUNTED, never silent |
| 254 | const RP_HDR: *u8 = "<h3 id='refs'>References</h3>\n<div class='meth'><b>Beyond a link list.</b> Every reference below resolves twice — the publisher's copy and, where banked, the estate's own <b>non-rottable library mirror</b> with a <b>content pin</b> — and carries its <b>evidence class</b> plus the exact claim on this page it grounds. Keyed marks like <span class='cite'>[key]</span> in the matrix notes jump here. A dash means honestly absent, never assumed.</div>\n<ol class='refs'>\n" as *u8 |
| 313 | const GAL_KIND_IMG: i64 = 1 |
| 314 | const GAL_KIND_VIDEO: i64 = 2 |
| 315 | const GAL_KIND_AUDIO: i64 = 3 |
| 316 | const GAL_KIND_TEXT: i64 = 4 |
| 317 | const GAL_TEXT_PREVIEW: i64 = 2048 // bytes of a text artifact shown inline; the whole file stays one click away |
| 318 | const GAL_NSFW_PREFIX: *u8 = "nsfw:" as *u8 |
| 365 | const GAL_IMG_EXTRA: *u8 = "loading='lazy'" as *u8 |
| 621 | const RANK_READ_CAP: i64 = 65536 |
| 709 | const EVB_PATH_CAP: i64 = 512 |
| 710 | const EVB_SECS_PER_DAY: i64 = 86400 |
| 711 | const EVB_SECS_PER_HOUR: i64 = 3600 |
| 713 | const EVB_SCROLL_OPEN: *u8 = "<div style='overflow-x:auto'>" |
functions
| 75 | func mx_tokclass_len(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { if s[i] == (32 as u8) { return i } i = i + 1 } return i } |
| 76 | func mx_tokclass_eq(a: *u8, b: *u8) -> i64 |
| 86 | func atoi(s: *u8) -> i64 |
| 103 | func swc_src_hash(b: *u8, n: i64) -> i64 called by 1: main |
| 114 | func mark(fd: i64, code: i64) -> i64 |
| 125 | func mark_td(fd: i64, name: *u8, code: i64, nishi: i64) -> i64 |
| 141 | func pc_pts(code: i64) -> i64 { if code == 2 { return 3 } if code == 1 { return 2 } if code == 3 { return 1 } return 0 } called by 1: pc_strip |
| 142 | func pc_strip(fd: i64, nishi: i64, exceed: i64, iswatch: i64, adopt: i64, rem: *u8, cf: *i64, ncol: i64, rf: *i64, rr: i64) -> i64 |
| 202 | func dstate_REMOVED_SEE_LIB(fd: i64, id: *u8, ds: *u8, dn: i64) -> i64 |
| 261 | func gp_probe(dom: *u8, file: *u8) -> i64 |
| 273 | func wesc(fd: i64, b: *u8, n: i64) -> i64 |
| 284 | func gal_probe_run(probe: *u8, dom: *u8, file: *u8, pbuf: *u8, plen: *i64) -> i64 |
| 319 | func gal_kind_code(k: *u8) -> i64 |
| 327 | func gal_kind_name(c: i64) -> *u8 |
| 336 | func gal_attr(fd: i64, s: *u8) -> i64 |
| 348 | func gal_text_preview(fd: i64, dom: *u8, file: *u8) -> i64 |
| 371 | func gal_text(fd: i64, s: *u8) -> i64 |
| 380 | func gal_html(fld: *i64, count: i64, dom: *u8, probe: *u8, kind: i64, gated: i64) -> i64 { return gal_html_heading(fld, count, dom, probe, kind, gated, 2) } calls 1: gal_html_heading |
| 381 | func gal_html_heading(fld: *i64, count: i64, dom: *u8, probe: *u8, kind: i64, gated: i64, heading_level: i64) -> i64 called by 2: gal_htmlgal_pass_heading calls 19: sc_heading_openwsc_heading_closegal_textgp_probesys_mmap+13 |
| 445 | func gal_json(fld: *i64, count: i64, dom: *u8, probe: *u8, kind: i64, gated: i64) -> i64 |
| 468 | func gal_pass(path: *u8, buf: *u8, cap: i64, mode: i64, dom: *u8) -> i64 { return gal_pass_heading(path, buf, cap, mode, dom, 2) } |
| 469 | func gal_pass_heading(path: *u8, buf: *u8, cap: i64, mode: i64, dom: *u8, heading_level: i64) -> i64 |
| 513 | func plan_pass_PRELIFT_UNREACHABLE(path: *u8, buf: *u8, cap: i64, phase: i64) -> i64 |
| 603 | func con_row(label: *u8, ns: i64) -> i64 |
| 625 | func rank_pass(dom: *u8, cap: i64) -> i64 { return rank_pass_heading(dom, cap, 2) } |
| 626 | func rank_pass_heading(dom: *u8, cap: i64, heading_level: i64) -> i64 |
| 717 | func evb_remedy(fired: i64, name: *u8, remedy: *u8) -> i64 |
| 724 | func evb_pair(label: *u8, a: i64, b: i64) -> i64 |
| 729 | func evb_one(label: *u8, a: i64) -> i64 |
| 737 | func evb_word(label: *u8, word: *u8) -> i64 |
| 755 | func evb_bite(f: *i64) -> i64 |
| 773 | func ev_pass(dom: *u8) -> i64 { return ev_pass_heading(dom, 2) } |
| 774 | func ev_pass_heading(dom: *u8, heading_level: i64) -> i64 |
| 898 | func main(argc: i64, argv: *i64) -> i64 |