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

6067 B85 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic ad
docsdependenciesstructsconstsfunctions

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

nx_ad_emitter_registry.nx nx_syscalls.nx nx_gate_verdict.nx nx_ad_emitter_registry_gate.nx

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

main g_p sys_write sys_openat_wr sys_close er_register er_present sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ er_field er_streq sys_mmap ↻ sys_openat_append sys_write ↻ sys_close ↻ sys_mmap ↻ er_get sys_mmap ↻ sys_read_file ↻ er_field ↻ er_streq ↻ er_count sys_mmap ↻ sys_read_file ↻ er_field ↻ er_streq ↻ er_present ↻ er_streq ↻ er_template_safe

structs

none

consts

9const GT_PATH: *u8 = "/tmp/ad_emitters_gate.tsv"

functions

11func 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 }
called by 1: main calls 1: sys_write
12func 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 }
14func main(argc: i64, argv: *i64) -> i64