code wiki / _hdl_build / nx_galx_cid_verify.nx

nx_galx_cid_verify.nx

buildroot/runtime/_hdl_build/nx_galx_cid_verify.nx

3243 B54 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_cid_verify.nx -- verify the REAL built cid index resolves REAL cids to their exact TSV paths. Reads knowledge/index/galx_cid.{idx,blob} (the just-built sovereign index) + galx_cid_paths.tsv (the source of truth), looks up the first N cids, and checks each resolves byte-identically to its TSV path. Guards against a wrong-path lookup bug (which the gs_thumb fallback would NOT catch). GREEN iff all N match. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_galx_cid_index.nx nx_galx_cid_verify.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_galx_cid_index.nx

imported by: nobody (leaf or entry point)

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

main v_puts sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit cidx_rd64 gs_cidindex_lookup cidx_fnv1a cidx_rd64 ↻ v_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

9const K_MAGIC_2048: i64 = 2048

functions

11func v_puts(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 1: main calls 1: sys_write
16func v_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
18func main() -> i64