code wiki / _hdl_build / nx_game_companion_gate.nx

nx_game_companion_gate.nx

buildroot/runtime/_hdl_build/nx_game_companion_gate.nx

6103 B128 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic game
docsdependenciesstructsconstsfunctions

about

nx_game_companion_gate.nx -- certifies the OWNERSHIP core (nx_game_companion): the measurable prerequisites of the endowment effect (beat-Veloren target, gamebench round 14). Each tooth is a structural FACT, not a taste judgment, and the flagship is RED-TEAMED: a soulless generic-loot roster (every companion identical) MUST fail the uniqueness property, proving the gate measures real ownership substrate and can't be passed by mass-produced sameness. T1 UNIQUE · T2 RED-TEAM (soulless generic fails) · T3 PERSISTENT (gamesave bit-exact) · T4 INVESTMENT-DIVERGES (IKEA effect) · T5 DETERMINISM · T6 ANTI-VACUITY. (Name is game-domain to avoid the pre-existing permaculture nx_companion_gate.) license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_game_companion.nx nx_game_companion_gate.nx

imports: nx_syscalls.nxnx_game_companion.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 en_words comp_new_roster en_init en_o_gen en_o_alive en_cap en_o_dense en_cap ↻ en_o_pos en_cap ↻ en_o_free en_cap ↻ en_spawn en_freelen en_o_free ↻ en_o_free ↻ en_cap ↻ en_o_alive ↻ en_ncomp en_o_comp en_cap ↻ en_o_dense ↻ en_o_pos ↻ en_make_handle en_o_gen ↻ comp_rng en_set en_valid en_handle_idx en_cap ↻ en_o_alive ↻ en_o_gen ↻ en_handle_gen en_ncomp ↻ en_o_comp ↻ en_cap ↻ en_handle_idx ↻ ww

structs

none

consts

12const CAP: i64 = 64
13const N: i64 = 50

functions

15func ww(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 1: main calls 1: sys_write
16func wn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
26func main() -> i64