code wiki / (root) / nx_doc_catalog_gate.nx

nx_doc_catalog_gate.nx

buildroot/runtime/nx_doc_catalog_gate.nx

4734 B83 linesdepth 9pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_catalog_gate.nx -- R2 GATE for the doc-intelligence LIBRARIAN: proves documents are cataloged as content-addressed structured records, retrievable + decodable, deduped by content (same doc -> same CID), and additive (distinct docs coexist; re-catalog is idempotent). Hermetic /tmp prefix. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_asset_record.nx nx_doc_catalog.nx nx_doc_catalog_gate.nx

imports: nx_syscalls.nxnx_asset_record.nxnx_doc_catalog.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 sys_now_us sys_mmap ↻ sys_clock_gettime_mono chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ dc_catalog_doc sys_mmap ↻ ar_addf ar_present ar_encode canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ar_cid cid_of sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_final blk_set_byte ↻ sha256_compress ↻ cid_from_digest sys_munmap ↻ ss_begin

structs

none

consts

none

functions

9func g_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 2: chkmain calls 1: sys_write
10func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
19func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
25func main() -> i64