code wiki / _hdl_build / nx_gate_author_gate.nx

nx_gate_author_gate.nx

buildroot/runtime/_hdl_build/nx_gate_author_gate.nx

2947 B52 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic gate
docsdependenciesstructsconstsfunctions

about

nx_gate_author_gate.nx -- the X-AUT-GATE-001 close gate: proves the team authors GATE organs from DATA specs, hands-off (the gate/benchmark emitter shape, the rung after pe14 PERMIL_VERDICT). Evidence: pe16 gained a SPEC-INPUT mode (additive); two gate-specs (knowledge/specs/gate_nv1l.spec, gate_fc.spec) were authored into round-trip+tamper gates BY pe16 reading the spec -- zero hand-written gate logic per rider. This gate RUNS both spec-authored KATs (fork/exec nx_sov_build_run, which builds+runs each test and passes its exit through) and is GREEN iff both pass. Two riders FROM A DATA SPEC = pe16 EARNED (was BOOTSTRAP-PROVISIONAL). The no-false-green property is the gate template's tamper arm (proven on pe16's _rt_bad fixture -> RED). fork/exec, not import, dodges the double- nx_syscalls-import rc=6 landmine. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_gate_author_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 gag_run sys_fork sys_mmap sys_openat_wr sys_dup3 sys_execve sys_exit sys_wait4 gag_report gag_w sys_write gag_wn sys_mmap ↻ sys_write ↻ sys_openat_append sys_close sys_exit ↻

structs

none

consts

none

functions

13func gag_w(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: gag_report calls 1: sys_write
14func gag_wn(fd: i64, v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64=v; if m<0 {m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8 = sys_mmap(28); var k: i64=0; if m==0 {t[0]=48 as u8;k=1}; while m>0 {t[k]=(48+(m%10)) as u8; m=m/10; k=k+1}; var i: i64=0; while i<k {bb[i]=t[k-1-i]; i=i+1}; sys_write(fd, bb, k); return 0 }
called by 1: gag_report calls 2: sys_mmapsys_write
17func gag_run(name: *u8) -> i64
34func gag_report(fd: i64, rc1: i64, rc2: i64, ok: i64) -> i64
called by 1: main calls 2: gag_wgag_wn
41func main() -> i64