code wiki / _hdl_build / nx_ad_emitter_registry_gate.nx
nx_ad_emitter_registry_gate.nx
buildroot/runtime/_hdl_build/nx_ad_emitter_registry_gate.nx
about
nx_ad_emitter_registry_gate.nx -- GATE for the builder's learned emitter catalog. Hermetic (/tmp registry):
teach -> round-trip, idempotent re-teach (no dup), GROW (count increases), and the SAFETY invariant -- a
template carrying a <script or src= is REJECTED (the growing library stays 0-third-party-JS / 0-fetch by
construction; the detector is proven to FIRE so a pass means proven-safe). Sovereign. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_ad_emitter_registry.nxnx_syscalls.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const GT_PATH: *u8 = "/tmp/ad_emitters_gate.tsv" |
functions
| 11 | func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 12 | func g_i(v: i64) -> i64 { let t: *u8 = sys_mmap(24); var m: i64 = v; 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 } let o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0 { o[w]=t[q]; w=w+1; q=q-1 } sys_write(1,o,w); return 0 } |
| 14 | func main(argc: i64, argv: *i64) -> i64 |