code wiki / _hdl_build / nx_galx_sortindex_gate.nx

nx_galx_sortindex_gate.nx

buildroot/runtime/_hdl_build/nx_galx_sortindex_gate.nx

3967 B72 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_sortindex_gate.nx -- fixture gate for the sort-index builder. Proves: correct ASCENDING order, STABLE on equal keys (preserves id order), accurate count, freshness stamp = size of the fresh file, and idempotent rebuild. Pure-local fixtures in /tmp -> no NAS / no live gallery needed (the daemon's :18090 backend is gateway-walled, so the builder is verified here as a standalone unit). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_galx_sortindex.nx nx_galx_sortindex_gate.nx

imports: nx_syscalls.nxnx_galx_sortindex.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap g_writefile sys_openat_wr sys_write g_strlen sys_close si_build_index sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ si_first_int si_msort si_fsize sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ si_wb64 sys_openat_wr ↻ sys_write ↻ sys_close ↻ g_eq g_p sys_write ↻ g_n sys_mmap ↻ sys_write ↻ sys_read_file ↻ si_rb64 g_p ↻ g_n ↻ sys_exit

structs

none

consts

none

functions

8func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: g_eqmain calls 1: sys_write
9func g_n(v: i64) -> i64
called by 2: g_eqmain calls 2: sys_mmapsys_write
15func g_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: g_writefile
16func g_writefile(path: *u8, data: *u8) -> i64
20func g_eq(label: *u8, got: i64, want: i64, pass: *i64, fail: *i64) -> i64
called by 1: main calls 2: g_pg_n
26func main(argc: i64, argv: *i64) -> i64