nx_caplab_supply_test.nx
buildroot/runtime/nx_caplab_supply_test.nx
about
nx_caplab_supply_test.nx -- gate for Capitalism Lab R2 (production/supply).
Proves: (1) unit-cost rollup for 1 and 2 inputs, (2) multi-stage chain
rollup (raw -> intermediate -> finished), (3) throughput from stock,
(4) the bottleneck input caps throughput, (5) NEG-CONTROL: zero stock of
any input -> 0 output, (6) INTEGRATION: a supply-derived unit cost feeds
the R0 market profit, and pricier inputs earn less (no magic numbers).
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_caplab_supply.nxnx_caplab_market.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
| 15 | func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 26 | func nx_assert_gt(label: *u8, got: nx_int, floor: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 37 | func main() -> nx_exit |