code wiki / (root) / nx_compare_capture_integration_gate.nx

nx_compare_capture_integration_gate.nx

buildroot/runtime/nx_compare_capture_integration_gate.nx

13715 B246 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic 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_integration

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

functions

30func rig_len(p: *u8) -> i64 { var n: i64 = 0; while p[n] != (0 as u8) { n = n + 1 } return n }
31func rig_eq(a: *u8, b: *u8) -> i64
called by 2: cci_childmain
37func rig_num(p: *u8) -> i64
called by 2: cci_childmain calls 1: rig_len
51func rig_join(root: *u8, rel: *u8) -> *u8
58func rig_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
65func rig_parent(path: *u8) -> i64
86func rig_write(path: *u8, buf: *u8, n: i64) -> i64
101func 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
102func rig_dir(root: *u8, rel: *u8) -> i64
called by 1: main calls 2: rig_joinsys_mkdir
114func 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
117func cci_copy(root: *u8,rel: *u8,source: *u8) -> i64
125func cci_emit(p: *u8,n: i64) -> i64
called by 1: cci_child calls 1: sys_write
131func cci_child(argc: i64,argv: *i64) -> i64
153func cci_contains(buf: *u8,n: i64,s: *u8) -> i64 { return tr_contains(buf,n,s) }
called by 1: main calls 1: tr_contains
154func main(argc: i64,argv: *i64) -> i64