code wiki / _hdl_build / nx_adnet_slot_gate.nx

nx_adnet_slot_gate.nx

buildroot/runtime/_hdl_build/nx_adnet_slot_gate.nx

10525 B197 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic adnet
docsdependenciesstructsconstsfunctions

about

nx_adnet_slot_gate.nx -- GATE for the universal ad slot lib (nx_adnet_slot). Proves: section derive, FAIL-CLOSED host directive, rotation pick, honest labeled render, ESCAPE + first-party-only validation (planted <script advertiser stays escaped; third-party img and javascript: click rows are DROPPED), any-section fallback, first-party click 302 (unknown/invalid id -> /), and that the forbidden-byte detectors FIRE on planted vectors (anti-false-green). Zero visitor identity anywhere. expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_g_puts_lib.nx nx_adnet_slot.nx nx_adnet_slot_gate.nx

imports: nx_syscalls.nxnx_g_puts_lib.nxnx_adnet_slot.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap g_cat g_tab g_nl g_row6 g_cat ↻ g_tab ↻ g_nl ↻ aslot_section_of aslot_lc aslot_host_ok sys_mmap ↻ ad_eol aslot_field_b ad_tab ad_streq aslot_html sys_mmap ↻ aslot_section_of ↻ aslot_pick_b aslot_count sys_mmap ↻ ad_eol ↻ aslot_field_b ↻ ad_streq ↻ sys_mmap ↻ ad_eol ↻ aslot_field_b ↻ ad_streq ↻ ad_slen aslot_field_b ↻ aslot_id_ok aslot_img_ok aslot_url_chars_ok aslot_click_ok aslot_starts aslot_url_chars_ok ↻

structs

none

consts

none

functions

11func g_putn(v: i64) -> i64 { var m: i64 = v; if m < 0 { g_puts("-" as *u8); m = 0 - m } let t: *u8 = sys_mmap(24); 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 i: i64 = 0; while i < k { o[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, o, k); return 0 }
13func g_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o }
called by 2: g_row6main
14func g_tab(dst: *u8, off: i64) -> i64 { dst[off] = 9 as u8; return off + 1 }
called by 2: g_row6main
15func g_nl(dst: *u8, off: i64) -> i64 { dst[off] = 10 as u8; return off + 1 }
called by 2: g_row6main
18func g_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
33func g_row6(dst: *u8, off: i64, f0: *u8, f1: *u8, f2: *u8, f3: *u8, f4: *u8, f5: *u8) -> i64
called by 1: main calls 3: g_catg_tabg_nl
50func main() -> i64