code wiki / (root) / nx_site_adapters_gate.nx

nx_site_adapters_gate.nx

buildroot/runtime/nx_site_adapters_gate.nx

5454 B111 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic site
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_registry.nx nx_site_adapters.nx nx_gate_verdict.nx nx_site_adapters_gate.nx

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

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 ↻ g_write_fixture sys_openat_wr sys_write ↻ sys_close gv_check gv_puts ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ↻ g_oracle sa_album_count reg_index ss_get sys_mmap ↻ ss_scan

structs

none

consts

11const G_CAP: i64 = 1048576
12const G_FIX_CONF: *u8 = "/tmp/sa_gate_fixture.conf"
14const 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"
15const G_FIX_ROWS: i64 = 3
16const G_FIX_VERIFIED: i64 = 7
17const G_FIX_MODE: i64 = 420

functions

19func 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
23func g_oracle(buf: *u8, n: i64, out_verified: *i64) -> i64
called by 1: main
50func g_write_fixture(path: *u8, content: *u8) -> i64
60func main() -> i64