code wiki / _hdl_build / nx_game_genre_census.nx

nx_game_genre_census.nx

buildroot/runtime/_hdl_build/nx_game_genre_census.nx

10248 B118 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind tooltopic game
docsdependenciesstructsconstsfunctions

about

nx_game_genre_census.nx -- SYNC: the universal Nishi-builder catalog + game runtime <-> the game ECOSYSTEM's ingest registry. Reads knowledge/store/nx_game_genres.reg (the 441-game, 17-genre catalog ingested by nx_game_ingest), and for EACH genre grades coverage from on-disk FACTS (never self-scored): EXCEEDS = a measured gate for that genre's emitter opens on disk; PRESENT = the emitter organ opens; ABSENT = no organ yet. The genre->organ map is carried IN-ORGAN (data-as-code, like nx_game_research_census). LIAR-KILL: a NEG-CTL fabricated-genre row mapped to a fabricated organ must NEVER grade PRESENT/EXCEEDS. Print-only, sovereign (no tsv/json written). This is the genre-coverage census the ecosystem's NEXT-RUNGS asked for, and it records the Platformer genre as newly covered (catalog -> nx_game_render runtime). license_tier: ORIGINAL expect_exit: 0 census-subject: product-surface INSTRUMENT-UPGRADED 2026-07-10: + UI/PRODUCT AXES -- genre coverage counts an EMITTER; product truth asks what the emitted genre PLAYS like vs the dated bars (pb_godot/luanti/veloren 2026-07-09, rh_ health 07-10).

dependencies 2 imports · 0 importers

nx_game_synth.nx nx_syscalls.nx nx_game_genre_census.nx

imports: nx_game_synth.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 w sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit gc_name gc_skip gs_has gc_map gs_has ↻ gc_grade gs_file_exists sys_openat_rd ↻ sys_close ↻ w ↻ gstr wn w ↻ sys_mmap ↻ sys_write ↻ wn ↻

structs

none

consts

none

functions

15func 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 3: wngc_grademain calls 1: sys_write
16func wn(v: i64) -> i64 { var m: i64=v; if m<0{w("-" as *u8);m=0-m} let t:*u8=sys_mmap(24); var k:i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i:i64=0; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 2: gc_grademain calls 3: wsys_mmapsys_write
17func gstr(g: i64) -> *u8 { if g==4 { return "EXCEEDS" as *u8 } if g==3 { return "PRESENT" as *u8 } return "ABSENT " }
called by 1: gc_grade
20func gc_name(line: *u8, ll: i64, out: *u8) -> i64
called by 1: main
26func gc_map(name: *u8, nl: i64, ob: *i64, eb: *i64) -> i64
called by 1: main calls 1: gs_has
50func gc_skip(name: *u8, nl: i64) -> i64
called by 1: main calls 1: gs_has
56func gc_grade(name: *u8, nl: i64, ob: *i64, eb: *i64, st: *i64, isneg: i64) -> i64
called by 1: main calls 4: gs_file_existswgstrwn
71func main(argc: i64, argv: *i64) -> i64