code wiki / _hdl_build / nx_surrogate_gate.nx

nx_surrogate_gate.nx

buildroot/runtime/_hdl_build/nx_surrogate_gate.nx

6049 B76 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic surrogate
docsdependenciesstructsconstsfunctions

dependencies 6 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_media_signal.nx nx_surrogate.nx nx_gate_verdict.nx nx_surrogate_gate.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_media_signal.nxnx_surrogate.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 gw sys_write sg_new 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 ↻ sg_seed sg_addc sg_add sg_slen grow gw ↻ m_url sg_match sg_is_wild xt_find gsl sg_surrogate m_glob sg_match ↻ gsl ↻ m_sel sg_match ↻ gsl ↻ sg_action sg_origin sys_mmap ↻

structs

none

consts

none

functions

12func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
called by 1: main calls 1: gw
14func gsl(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main calls 2: sg_matchgsl
15func m_url(t: *i64, u: *u8) -> i64 { return sg_match(t, SM_URL, u, gsl(u)) }
calls 2: sg_matchgsl
16func m_pop(t: *i64, u: *u8) -> i64 { return sg_match(t, SM_POPUP, u, gsl(u)) }
called by 1: main calls 2: sg_matchgsl
17func m_glob(t: *i64, u: *u8) -> i64 { return sg_match(t, SM_GLOBAL, u, gsl(u)) }
called by 1: main calls 2: sg_matchgsl
18func m_sel(t: *i64, u: *u8) -> i64 { return sg_match(t, SM_SELECTOR, u, gsl(u)) }
20func main() -> i64