nx_caplab_cities_test.nx
buildroot/runtime/nx_caplab_cities_test.nx
about
nx_caplab_cities_test.nx -- gate for Capitalism Lab R6 (cities + the map).
Proves: (1) a city's market scales with population, (2) per-city competition
splits that city's demand, (3) a firm's total = sum across cities, (4)
PRESENCE matters -- a firm absent from a city sells 0 there and a present
rival takes that demand, (5) expanding to a city raises your total reach,
(6) bigger city = more demand.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_caplab_cities.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) |
| 20 | func nx_assert_gt(label: *u8, got: nx_int, floor: 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 |