code wiki / (root) / nx_compare_capture_real_gate_20260907.nx

nx_compare_capture_real_gate_20260907.nx

buildroot/runtime/nx_compare_capture_real_gate_20260907.nx

18725 B321 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic compare
docsdependenciesstructsconstsfunctions

about

Source-only reusable Compare capture integration. Actual wrapper, finite native witness. All authority files and executable copies are confined to a fresh private fixture tree.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_tool_run.nx nx_build_canon_input_lib.nx nx_rank_refresh_lib.nx nx_compare_capture_real_gate_2

imports: nx_syscalls.nxnx_gate_verdict.nxnx_tool_run.nxnx_build_canon_input_lib.nxnx_rank_refresh_lib.nx

imported by: nobody (leaf or entry point)

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

main cci_child rig_guard rrf_file_equal 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 nxa_dump_sizes sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close sys_free_file sys_munmap ↻ rig_len rig_eq sys_mmap ↻ gv_cat rig_write sys_openat_wr sys_write ↻ sys_close ↻ rrf_file_equal ↻ sys_read_file ↻ rig_num rig_len ↻ cci_emit sys_write ↻

structs

none

consts

8const CCI_MATRIX_READ_CAP: i64 = 262144
9const CCI_ENOENT: i64 = 0 - 2
10const MODE_0755: i64 = 493
11const RIG_PATH: i64 = 4096
12const RIG_PTR: i64 = 8
13const RIG_FILE_MODE: i64 = 384
14const RIG_DIR_MODE: i64 = 448
15const RIG_EINVAL: i64 = 0 - 22
16const RIG_SETUP: i64 = 90
17const RIG_GUARD: *u8 = "NISHI-COMPARE-CAPTURE-FIXTURE\n"
18const CRG_EXCLUSIVE: i64 = 2
19const CRG_UNLOCK: i64 = 8
20const CRG_ROLES: i64 = 4
21const CRG_SLOW: i64 = 0
22const CRG_ESSENTIAL: i64 = 1
23const CRG_ORDINARY: i64 = 2
24const CRG_WINDOW: i64 = 3
25const CRG_START: i64 = 1
26const CRG_END: i64 = 0
27const CRG_MS_PER_SEC: i64 = 1000
28const CRG_MIN_COMPLETIONS: i64 = 2
29const CRG_FAULT_ROLE: i64 = 4
30const CRG_FAULT_POINT: i64 = 2
31const CRG_TEST_ECHILD: i64 = 0 - 10

functions

32func rig_len(p: *u8) -> i64 { var n: i64 = 0; while p[n] != (0 as u8) { n = n + 1 } return n }
33func rig_eq(a: *u8, b: *u8) -> i64
called by 2: cci_childmain
39func rig_num(p: *u8) -> i64
called by 2: cci_childmain calls 1: rig_len
53func rig_join(root: *u8, rel: *u8) -> *u8
60func rig_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
67func rig_parent(path: *u8) -> i64
88func rig_write(path: *u8, buf: *u8, n: i64) -> i64
103func rig_file(root: *u8, rel: *u8, val: *u8) -> i64 { return rig_write(rig_join(root,rel),val,rig_len(val)) }
called by 1: main calls 3: rig_writerig_joinrig_len
104func rig_dir(root: *u8, rel: *u8) -> i64
called by 1: main calls 2: rig_joinsys_mkdir
116func rig_guard() -> i64 { return rrf_file_equal("fixture-root.guard" as *u8,RIG_GUARD,rig_len(RIG_GUARD)) }
called by 1: cci_child calls 2: rrf_file_equalrig_len
119func cci_copy(root: *u8,rel: *u8,source: *u8) -> i64
127func cci_emit(p: *u8,n: i64) -> i64
called by 1: cci_child calls 1: sys_write
133func cci_child(argc: i64,argv: *i64) -> i64
155func cci_contains(buf: *u8,n: i64,s: *u8) -> i64 { return tr_contains(buf,n,s) }
called by 1: main calls 1: tr_contains
157func cci_hex(p: *u8) -> i64
called by 1: main calls 1: rig_len
167func cci_absent(path: *u8) -> i64
called by 1: cci_no_aux calls 2: sys_openat_rdsys_close
172func cci_no_aux(root: *u8) -> i64
called by 1: main calls 2: cci_absentrig_join
179func main(argc: i64,argv: *i64) -> i64