code wiki / (root) / nx_econ_game_test.nx

nx_econ_game_test.nx

buildroot/runtime/nx_econ_game_test.nx

3063 B58 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_econ_game_test.nx -- KAT gate for the build-and-play tycoon emitter. Verifies the economy machinery (produce/sell/upkeep/win/bankrupt/affordability) + the board; saves /tmp/econ_game.html. expect_exit: 0.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_econ_game.nx nx_econ_game_test.nx

imports: nx_syscalls.nxnx_econ_game.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 w sys_write nx_econ_game_page sys_mmap ↻ eg_app wn sys_mmap ↻ sys_write ↻ chk w ↻ contains nx_econ_game_save sys_mmap ↻ nx_econ_game_page ↻ sys_openat_wr sys_write ↻ sys_close

structs

none

consts

none

functions

8func 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: chkmain calls 1: sys_write
9func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
18func contains(hay: *u8, hn: i64, ndl: *u8) -> i64
called by 1: main
25func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
31func main() -> i64