code wiki / (root) / nx_memindex_emit_gate.nx

nx_memindex_emit_gate.nx

buildroot/runtime/nx_memindex_emit_gate.nx

7605 B141 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic memindex
docsdependenciesstructsconstsfunctions

about

nx_memindex_emit_gate.nx -- liar-killed GATE for the MEMORY.md coindex splice organ. Forks the REAL built elf (_build/nx_memindex_emit.sov.elf) against fixtures and proves: derived entries land between the markers with last-write-wins (superseded entry ABSENT -- neg-control); everything OUTSIDE the markers is preserved BYTE-IDENTICAL (curation never harmed); a file WITHOUT markers is left byte-identical (fail-closed, the second neg-control); the splice is IDEMPOTENT (second run byte-identical). usage: nx_memindex_emit_gate [emit_elf] Exit 0 only on 6/6. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_crashresume_census_core.nx nx_gate_verdict.nx nx_memindex_emit_gate.nx

imports: nx_syscalls.nxnx_crashresume_census_core.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 g_exists 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 ↻ ccz_read sys_openat_rd sys_read sys_close sys_munmap gv_ctr sys_mmap ↻ gv_head gv_puts sys_write ↻ gv_need gv_puts ↻ g_puts sys_write ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻

structs

none

consts

none

functions

18func 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: g_boolmain calls 1: sys_write
19func g_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: g_bool
20func g_bool(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 3: gv_checkg_putsg_putn
27func g_write(path: *u8, s: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 420); if fd < 0 { return 0 - 1 } sys_write(fd, s, ccz_slen(s)); sys_close(fd); return 0 }
28func g_has(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main calls 1: ccz_slen
42func g_run(elf: *u8, a1: *u8, a2: *u8) -> i64
67func g_exists(p: *u8) -> i64
called by 1: main calls 3: sys_mmapccz_readsys_munmap
74func g_same(p: *u8, q: *u8, qn: i64) -> i64
called by 1: main calls 2: sys_mmapccz_read
83func main(argc: i64, argv: *i64) -> i64