code wiki / _hdl_build / nx_ad_banner_gate.nx

nx_ad_banner_gate.nx

buildroot/runtime/_hdl_build/nx_ad_banner_gate.nx

7250 B113 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic ad
docsdependenciesstructsconstsfunctions

about

nx_ad_banner_gate.nx -- GATE for the banner generator. Proves the privacy/security invariants hold BY CONSTRUCTION, each with a negative control (no false green): clean static + clean dynamic, HTML-escaping neutralises an injected <script> sponsor, a javascript:/data: click URI is rejected to '#', the third-party-JS detector actually FIRES on a planted tag, and IAB size is data-driven. Also (re)emits the viewable preview samples to knowledge/staging/ad/ as evidence. Sovereign, no gcc/.sh. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_ad_banner.nx nx_ad_serve.nx nx_syscalls.nx nx_gate_verdict.nx nx_ad_banner_gate.nx

imports: nx_ad_banner.nxnx_ad_serve.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_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ab_emit_banner sys_mmap ↻ ab_suffix ab_safe_link ab_startswith as_append as_append_escaped as_append ↻ as_len ab_uitoa sys_mmap ↻ ab_initials ab_upper g_write_preview sys_mmap ↻ as_append ↻ sys_openat_wr sys_write ↻ sys_close as_has_thirdparty_js as_contains as_len ↻

structs

none

consts

none

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
14func g_write_preview(fname: *u8, frag: *u8, flen: i64) -> i64
26func main(argc: i64, argv: *i64) -> i64