code wiki / _hdl_build / nx_brand_tokens_gate.nx

nx_brand_tokens_gate.nx

buildroot/runtime/_hdl_build/nx_brand_tokens_gate.nx

5463 B97 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic brand
docsdependenciesstructsconstsfunctions

dependencies 4 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_brand_tokens.nx nx_brand_tokens_gate.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_brand_tokens.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap gw sys_write bt_default_emit bt_default_brand bt_emit_root_buf bt_app sys_mmap ↻ bt_slice_eq bt_ident_safe bt_value_safe bt_find bt_app_n bt_len g_has bt_find ↻ bt_len ↻ t_row gw ↻ bt_emit_root_buf ↻ bt_len ↻ g_count

structs

none

consts

none

functions

10func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
14func g_has(s: *u8, n: i64, lit: *u8) -> i64 { if bt_find(s, n, lit, bt_len(lit)) >= 0 { return 1 } return 0 }
16func g_count(s: *u8, n: i64, ch: i64) -> i64 { var c: i64=0; var i: i64=0; while i<n { if s[i]==(ch as u8){c=c+1} i=i+1 } return c }
18func g_eq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
20func t_row(name: *u8, ok: i64, tot: *i64) -> i64
25func main() -> i64