nx_site_adapters_gate.nx
buildroot/runtime/nx_site_adapters_gate.nx
about
nx_site_adapters_gate.nx -- GATE for nx_site_adapters (/compare/mediaingest R8, sa_count). Proves the count is
DERIVED from data, never hardcoded: the source-organ count follows the conf line by line (a planted fixture conf
with a known shape), comments and blanks do NOT count, and the verified-sites total sums the third column. The
album-plane leg is exercised against the REAL plane only to confirm it returns a non-negative row count and the
index-byte signal -- it asserts nothing about the current number, which is not the subject. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_registry.nxnx_site_adapters.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 G_CAP: i64 = 1048576 |
| 12 | const G_FIX_CONF: *u8 = "/tmp/sa_gate_fixture.conf" |
| 14 | const G_FIX: *u8 = "# a comment line that must NOT count\norgan_a|site a|1\n\norgan_b|site b|2\norgan_c|site c|4\n" |
| 15 | const G_FIX_ROWS: i64 = 3 |
| 16 | const G_FIX_VERIFIED: i64 = 7 |
| 17 | const G_FIX_MODE: i64 = 420 |
functions
| 19 | func gw(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} sys_write(1,s,k); return 0 } calls 1: sys_write |
| 23 | func g_oracle(buf: *u8, n: i64, out_verified: *i64) -> i64 called by 1: main |
| 50 | func g_write_fixture(path: *u8, content: *u8) -> i64 |
| 60 | func main() -> i64 |