code wiki / _hdl_build / nx_uiq_contrast_gate.nx

nx_uiq_contrast_gate.nx

buildroot/runtime/_hdl_build/nx_uiq_contrast_gate.nx

1017 B18 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic uiq
docsdependenciesstructsconstsfunctions

about

nx_uiq_contrast_gate.nx -- KAT gate for the computed WCAG contrast auditor. Proves (before any page is judged): the WCAG math matches the W3C reference (21.00 / 4.54), the CSS color parser handles rgb()/hex, the audit is NON-VACUOUS (catches a real #999-on-#fff = 2.85:1 fail), and it does NOT false-positive on a page with no color tokens. Deterministic sovereign gate (nx_cc->nxasm). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_uiq_color.nx nx_uiq_contrast_gate.nx

imports: nx_uiq_color.nx

imported by: nobody (leaf or entry point)

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

main uiq_w sys_write uiq_selftest sys_mmap uiq_ratio100 uiq_lum nx_f64_mul nx_f64_classify nx_f64_exp_field nx_f64_mant_field nx_f64_sign nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack uiq_f64c nx_f64_div nx_f64_classify ↻ nx_f64_sign ↻ nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack ↻ nx_i64_to_f64 _f64_round_pack ↻ uiq_srgb_lin uiq_f64c ↻ nx_f64_div ↻ nx_f64_add nx_f64_classify ↻ nx_f64_sign ↻ nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack ↻ nx_f64_pow _pw_ycls sys_mmap ↻ _pw_log2m nx_f64_add ↻ nx_f64_mul ↻ nx_f64_sub

structs

none

consts

none

functions

8func main() -> i64