code wiki / _hdl_build / nx_corpus_ingest_gate.nx

nx_corpus_ingest_gate.nx

buildroot/runtime/_hdl_build/nx_corpus_ingest_gate.nx

8553 B161 linesdepth 5pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic corpus
docsdependenciesstructsconstsfunctions

about

nx_corpus_ingest_gate.nx -- GATE for the corpus-ingest front door (dir -> searchable sovereign shard). Builds a real test dir (/tmp) with: a raw .txt, an .html (tags/script/entities exercise nx_html_to_text), a .bak (must be skipped), and TWO ~600KB files (forces the 1MB writer to batch across >=2 segments). Assertions are RUN-INDEPENDENT (content-addressed skip-if-present makes re-runs clean): search truths + the persisted manifest segment count, never per-run counters alone. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_corpus_ingest.nx nx_g_puts_lib.nx nx_corpus_ingest_gate.nx

imports: nx_corpus_ingest.nxnx_g_puts_lib.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write sys_mkdir g_write sys_openat_wr g_len ci_run dss_prefix ss_manifest_file sys_mmap ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ↻ ss_readall ↻ sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻

structs

none

consts

none

functions

9func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: g_containsmain
10func g_num(v: i64) -> i64
called by 1: main
19func g_contains(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main calls 1: g_len
32func g_write(path: *u8, data: *u8, n: i64) -> i64
called by 1: main calls 1: sys_openat_wr
37func g_check(name: *u8, cond: i64, pass: *i64, total: *i64) -> i64
called by 1: main calls 1: g_puts
44func main() -> i64