code wiki / _hdl_build / nx_ad_emitter_apply_gate.nx

nx_ad_emitter_apply_gate.nx

buildroot/runtime/_hdl_build/nx_ad_emitter_apply_gate.nx

4662 B61 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic ad
docsdependenciesstructsconstsfunctions

about

nx_ad_emitter_apply_gate.nx -- GATE proving the builder CONSUMES grown emitters: teach a temp catalog the grown ocean/star/slide/leaderboard emitters, render a banner FROM the catalog by id, and assert each grown piece actually appears (size, theme colors, star path, slide keyframe) AND the invariants still hold (0 third-party JS / 0 external fetch). This closes the loop: grow -> registry -> usable banner. Emits a preview to knowledge/staging/ad/banner_from_registry.html as evidence. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_ad_emitter_apply.nx nx_ad_emitter_registry.nx nx_ad_serve.nx nx_syscalls.nx nx_ad_emitter_apply_gate.nx

imports: nx_ad_emitter_apply.nxnx_ad_emitter_registry.nxnx_ad_serve.nxnx_syscalls.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 ↻ ab_emit_from_registry sys_mmap ↻ er_lookup sys_mmap ↻ sys_read_file ↻ er_field ↻ er_streq ↻ ap_wh ap_split4 ab_emit_banner_c sys_mmap ↻ ab_suffix ab_initials ab_upper ab_safe_link ab_startswith as_append as_append_escaped as_append ↻

structs

none

consts

11const AG_PATH: *u8 = "/tmp/ad_emitters_apply_gate.tsv"

functions

13func 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 2: g_chkmain calls 1: sys_write
14func 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 }
15func g_chk(name: *u8, hay: *u8, n: i64, needle: *u8, want: i64, pass: *i64, tot: *i64) -> i64
calls 2: as_containsg_p
21func g_write(fname: *u8, frag: *u8, flen: i64) -> i64
30func main(argc: i64, argv: *i64) -> i64