code wiki / _hdl_build / _xorc_parts_gate.nx

_xorc_parts_gate.nx

buildroot/runtime/_hdl_build/_xorc_parts_gate.nx

4161 B77 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

_xorc_parts_gate.nx -- self-validating gate for the X-ORC role-parts chain. X-ORC-006 (owner parts, live): knowledge/parts/<owner>.txt exist + non-empty. X-ORC-008 (section parts, rung2): knowledge/parts/section_<name>.txt exist and are LEAD-FIRST (the FIRST "owner=" line in a section file == that section's lead per sections.tsv). NEG/tamper: a bogus section file must NOT exist (proves the existence checks discriminate). GREEN per rung iff its checks pass; writes machine-matchable verdicts to xorc_parts_gate.log.

dependencies 1 imports · 0 importers

nx_syscalls.nx _xorc_parts_gate.nx

imports: nx_syscalls.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 g_read sys_openat_rd sys_read sys_close g_first_owner_is g_exists sys_openat_rd ↻ sys_close ↻ g_puts sys_write g_putn sys_mmap ↻ sys_write ↻ sys_openat_append sys_close ↻ sys_exit

structs

none

consts

none

functions

9func g_puts(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
10func g_putn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
16func g_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
28func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd >= 0 { sys_close(fd); return 1 } return 0 }
called by 1: main calls 2: sys_openat_rdsys_close
30func g_first_owner_is(buf: *u8, n: i64, name: *u8) -> i64
called by 1: main
44func main(argc: i64, argv: *i64) -> i64