code wiki / _hdl_build / nx_adnet_slot_gate.nx
nx_adnet_slot_gate.nx
buildroot/runtime/_hdl_build/nx_adnet_slot_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 13 | func 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 } |
| 14 | func g_tab(dst: *u8, off: i64) -> i64 { dst[off] = 9 as u8; return off + 1 } |
| 15 | func g_nl(dst: *u8, off: i64) -> i64 { dst[off] = 10 as u8; return off + 1 } |
| 18 | func g_has(hay: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 33 | func g_row6(dst: *u8, off: i64, f0: *u8, f1: *u8, f2: *u8, f3: *u8, f4: *u8, f5: *u8) -> i64 |
| 50 | func main() -> i64 |