code wiki / _hdl_build / nx_route_table_gate.nx

nx_route_table_gate.nx

buildroot/runtime/_hdl_build/nx_route_table_gate.nx

5289 B70 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic route
docsdependenciesstructsconstsfunctions

about

nx_route_table_gate.nx -- PURE gate for the data-driven route matcher. Proves the SOTA semantics the hardcoded cascade lacked: the GALLERY route is just a DATA ROW (no recompile to add/fix a route), exact-host beats '*', LONGEST path-prefix wins, and BOUNDARY-SAFETY (/gen never matches /generated). GREEN iff T1..T10. Sovereign: nx_route_table + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_route_table.nx nx_syscalls.nx nx_route_table_gate.nx

imports: nx_route_table.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write g_len g_row g_w ↻ g_match sys_mmap rt_match sys_mmap ↻ rt_eol rt_split rt_tok_eq rt_slen rt_slice_eq rt_prefix_boundary rt_slice_atoi rt_mode_code rt_tok_eq ↻ g_len ↻ sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

8func g_w(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 2: g_rowmain calls 1: sys_write
9func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: g_matchmain
10func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
17func g_match(rt: *u8, n: i64, host: *u8, path: *u8, want_match: i64, want_port: i64, want_mode: i64) -> i64
called by 1: main calls 3: sys_mmaprt_matchg_len
30func main() -> i64