nx_caplab_sim_test.nx
buildroot/runtime/nx_caplab_sim_test.nx
about
nx_caplab_sim_test.nx -- gate for Capitalism Lab R3 (the tick-loop engine).
Proves: (1) one tick banks the right profit per firm, (2) cash accumulates
across many ticks, (3) production CAPACITY caps sales, (4) the sim is
DETERMINISTIC (same inputs -> byte-identical cash, replay-safe), (5) the AI
competitor undercuts but never prices below cost, (6) NEG-CONTROL: a firm
priced out of the market earns nothing, (7) the CAPITALISM_LAB game config.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_caplab_sim.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 14 | func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 26 | func mk2(a: nx_int, b: nx_int) -> *i64 |
| 33 | func main() -> nx_exit |