code wiki / _hdl_build / nx_xlate_gap_gate.nx

nx_xlate_gap_gate.nx

buildroot/runtime/_hdl_build/nx_xlate_gap_gate.nx

5582 B110 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic xlate
docsdependenciesstructsconstsfunctions

about

nx_xlate_gap_gate.nx -- regression gate for the NXASM-SYSCALL-XLATE-GAP class: every syscall once filed as untranslated (mkdirat-34, renameat2-276 via the 2026-06-06 table rows; fsync-74 and unlinkat-263 via the proven direct-x86 escape hatch) must BEHAVE at runtime under the CURRENT blessed toolchain. Each row is a discriminating pair where possible (valid input succeeds AND invalid input fails with the right errno), so a pass cannot be a silent no-op. Durable: XLATE-ROW + XLATE-GATE lines -> knowledge/status/xlate_gap_gate.log. Exit 0 iff all rows PASS. Owner: Engineer. Resolves sentinel key NXASM-XLATE-GAP. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_xlate_gap_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 _p sys_write sys_openat_append sys_exit xg_clean xg_unlink xg_rmdir sys_mkdir xg_row _p ↻ _fn sys_mmap _fs sys_write ↻ _fs ↻ sys_openat_wr sys_write ↻ sys_fsync sys_close sys_renameat sys_openat_rd xg_unlink ↻ xg_rmdir ↻ _fs ↻ _fn ↻

structs

none

consts

9const AT_FDCWD: i64 = 0 - 100

functions

10func _p(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: xg_rowmain calls 1: sys_write
11func _fs(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 3: _fnxg_rowmain calls 1: sys_write
12func _fn(fd: i64, v: i64) -> i64
called by 2: xg_rowmain calls 2: sys_mmap_fs
26func xg_rmdir(p: *u8) -> i64 { return __syscall(263, AT_FDCWD, p, 512, 0, 0, 0) } // unlinkat AT_REMOVEDIR(0x200)
called by 2: xg_cleanmain
29func xg_clean() -> i64
called by 1: main calls 2: xg_unlinkxg_rmdir
36func xg_row(lfd: i64, name: *u8, ok: i64, rc1: i64, rc2: i64) -> i64
called by 1: main calls 3: _p_fn_fs
44func main() -> i64