code wiki / _hdl_build / nx_ad_banner_exceed.nx
nx_ad_banner_exceed.nx
buildroot/runtime/_hdl_build/nx_ad_banner_exceed.nx
about
nx_ad_banner_exceed.nx -- LIB: MEASURED S-class exceed primitives for the banner builder. Organ-graded from
LIVE EVIDENCE (measures real emitted bytes), never self-scored. Ladder ABSENT<STUB<BUILT<GATED<MEASURED<
EXCEEDS. An axis reaches EXCEEDS only when our MEASURED value is strictly better than a CITED incumbent
lower-bound (liar-kill in ex_grade_fewer: equal/worse can NEVER be EXCEEDS).
CITED incumbent lower-bound (mainstream display-ad creative, e.g. Google Publisher Tag / DoubleClick):
loads the ad-tag library = >=1 THIRD-PARTY SCRIPT; pulls creative + impression/viewability beacons =
>=1 EXTERNAL FETCH and >=1 TRACKER (MRC viewability / IAB measurement REQUIRE a measurement script ->
tracking implies third-party JS). So incumbent third_party_js>=1, external_fetch>=1, tracker>=1.
These are architecture lower-bounds (not fabricated counts); our 0s are MEASURED on the real bytes.
Composes nx_ad_serve (as_len). license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_ad_serve.nxnx_syscalls.nx
imported by: nx_ad_banner_exceed_gate.nx
structs
| none |
consts
| 15 | const LV_ABSENT: i64 = 0 |
| 16 | const LV_STUB: i64 = 1 |
| 17 | const LV_BUILT: i64 = 2 |
| 18 | const LV_GATED: i64 = 3 |
| 19 | const LV_MEASURED: i64 = 4 |
| 20 | const LV_EXCEEDS: i64 = 5 |
functions
| 23 | func ex_count(hay: *u8, n: i64, needle: *u8) -> i64 |
| 35 | func ex_external_fetch(b: *u8, n: i64) -> i64 { return ex_count(b, n, "src=" as *u8) + ex_count(b, n, "url(http" as *u8) } |
| 37 | func ex_tracker(b: *u8, n: i64) -> i64 |
| 48 | func ex_grade_fewer(nishi: i64, incumbent: i64) -> i64 called by 1: main |