code wiki / _hdl_build / nx_proxy_route_gate.nx

nx_proxy_route_gate.nx

buildroot/runtime/_hdl_build/nx_proxy_route_gate.nx

5109 B100 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_proxy_route_gate.nx -- sovereign gate for the data-driven proxy route table (nx_proxy_route.nx). Negative-control-armed: proves the boundary guard (/gen != /generated), longest-prefix wins, exact-host beats '*', wildcard fallback, mode parsing, and that unknown host/path return MISS (0). No fabricated greens: each NEG case asserts a 0/absent result. expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_proxy_route.nx nx_proxy_route_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_proxy_route.nx

imported by: nobody (leaf or entry point)

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

main g_len sys_mmap pr_lookup pr_ieq pr_lower pr_path_pref pr_parse_u pr_mode pr_word pr_strlen g_check_eq g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ g_puts ↻ g_putn ↻

structs

none

consts

none

functions

9func g_putn(v: i64) -> i64
called by 2: g_check_eqmain calls 2: sys_writesys_mmap
24func g_check_eq(label: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: g_putsg_putn
38func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
39func main() -> i64