nx_caplab_finance_test.nx
buildroot/runtime/nx_caplab_finance_test.nx
about
nx_caplab_finance_test.nx -- gate for Capitalism Lab R7 (finances).
Proves: (1) net worth = cash - debt, (2) a loan within the credit limit adds
liquidity, (3) a loan over the limit is denied, (4) a loan does NOT change net
worth (liquidity != wealth), (5) interest draws down cash, (6) repay reduces
both cash and debt, (7) bankruptcy is detected when underwater beyond credit,
(8) over-leverage drives a firm bankrupt as interest compounds the hole.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_caplab_finance.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 mk2(a: nx_int, b: nx_int) -> *i64 |
| 27 | func main() -> nx_exit |