nx_swcompare_compauto.nx
buildroot/runtime/nx_swcompare_compauto.nx
about
nx_swcompare_compauto.nx -- researcher-SUGGESTED competitor cells for a Nishi Compare matrix. For <domain> it reads
<domain>.matrix (axes + @cols) and <domain>.compdocs (one banked-doc slug per column, @cols order), then for each
axis derives keyword terms from the label and tests them against each competitor's OWN banked doc (lowercased
substring): a hit SUGGESTS Yes(Y), a miss No(n), a thin/absent doc Unknown(?). It prints SUGGESTED vs the CURATED
codes and flags disagreements -- a cross-check / enrichment aid for hand-curation, NOT ground truth (a README
mentioning a term is a weak proxy for the capability). Honest by construction: it never rewrites the matrix.
NOTE: no '#'/'!' in string literals (nx_cc trap). license_tier: ORIGINAL expect_exit: 0
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
| 9 | const K_MAGIC_262144: i64 = 262144 |
| 10 | const K_MAGIC_4096: i64 = 4096 |
| 11 | const K_MAGIC_131072: i64 = 131072 |
functions
| 13 | func w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 14 | func wn(fd: i64, v: i64) -> i64 |
| 20 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 26 | func c_has(buf: *u8, n: i64, needle: *u8) -> i64 |
| 33 | func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64 called by 1: main |
| 38 | func scopy(dst: *u8, doff: i64, src: *u8) -> i64 { var i: i64 = 0; while src[i] != (0 as u8) { dst[doff+i] = src[i]; i = i + 1 } return doff + i } called by 1: main |
| 39 | func atoi(s: *u8) -> i64 { var v: i64 = 0; var i: i64 = 0; while s[i] != (0 as u8) { let c: i64 = s[i] as i64; if c < 48 { break } if c > 57 { break } v = v * 10 + (c - 48); i = i + 1 } return v } called by 1: main |
| 40 | func is_alpha(c: u8) -> i64 { let x: i64 = c as i64; if x >= 65 { if x <= 90 { return 1 } } if x >= 97 { if x <= 122 { return 1 } } return 0 } called by 1: main |
| 41 | func lc_byte(c: u8) -> u8 { let x: i64 = c as i64; if x >= 65 { if x <= 90 { return (x + 32) as u8 } } return c } |
| 42 | func lower_buf(buf: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { buf[i] = lc_byte(buf[i]); i = i + 1 } return 0 } |
| 44 | func is_skip(t: *u8) -> i64 |
| 53 | func main(argc: i64, argv: *i64) -> i64 |