code wiki / _hdl_build / nx_axis_discover.nx

nx_axis_discover.nx

buildroot/runtime/_hdl_build/nx_axis_discover.nx

16303 B370 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_axis_discover.nx -- instrument roadmap R2: AXIS DISCOVERY from banked product bars. Census axes must come FROM THE FIELD, not from what we happened to build (the backend-bias root-kill). Method: tokenize the banked bar corpora of >=3 products in a domain (readme + release notes); a term is an AXIS CANDIDATE only with CROSS-PRODUCT CORROBORATION (present in >=2 of 3 products -- kills one product's private vocabulary, e.g. 'voxygen' is veloren-only and must NOT surface). Emits knowledge/compare/axes/games.discovered.axes for the census-v2 generator. VALIDATION: must rediscover the known game axes (physics/multiplayer/editor/rendering/ audio/network) AND surface axes the generic digital.axes taxonomy MISSED (the tell discovery adds value). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_axis_discover.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main ad_w sys_write sys_mmap ad_read sys_openat_rd sys_read sys_close ad_ingest sys_mmap ↻ ad_insert ad_stem ad_stop sys_mmap ↻ ad_hash ad_bm ad_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap ad_pop sys_openat_wr sys_write ↻ sys_close ↻ ad_tooth ad_w ↻ ad_look sys_mmap ↻ ad_stem ↻ ad_look2 ad_hash ↻ ad_pop ↻

structs

none

consts

11const K_MAGIC_5381: i64 = 5381
12const K_MAGIC_1073741824: i64 = 1073741824
13const K_MAGIC_16383: i64 = 16383
14const K_MAGIC_16384: i64 = 16384
15const K_MAGIC_1048576: i64 = 1048576
16const K_MAGIC_2097152: i64 = 2097152
17const K_MAGIC_262144: i64 = 262144
18const K_MAGIC_65536: i64 = 65536

functions

20func ad_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: ad_toothmain calls 1: sys_write
25func ad_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
26func ad_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
40func ad_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: ad_w
51func ad_hash(s: *u8, len: i64) -> i64
called by 2: ad_insertad_look2
60func ad_stop(s: *u8, len: i64) -> i64
called by 1: ad_insert calls 1: sys_mmap
88func ad_bm(pbit: i64) -> i64
called by 1: ad_insert
95func ad_stem(tok: *u8, len: i64) -> i64
called by 2: ad_insertad_look
106func ad_insert(tb: *i64, tok: *u8, len0: i64, pbit: i64) -> i64
150func ad_ingest(tb: *i64, buf: *u8, n: i64, pbit: i64) -> i64
called by 1: main calls 2: sys_mmapad_insert
170func ad_pop(bm: i64) -> i64
called by 2: ad_look2main
178func ad_look2(tb: *i64, s: *u8, len: i64) -> i64
called by 1: ad_look calls 2: ad_hashad_pop
199func ad_look(tb: *i64, s: *u8) -> i64
called by 1: main calls 3: sys_mmapad_stemad_look2
209func main() -> i64