code wiki / (root) / nx_climbout_real_gate.nx

nx_climbout_real_gate.nx

buildroot/runtime/nx_climbout_real_gate.nx

8794 B148 linesdepth 6pulls 14 transitivereach 0 importersview sourcekind gate/prooftopic climbout
docsdependenciesstructsconstsfunctions

about

nx_climbout_real_gate.nx -- R5b GATE: proves the climb-out plan is built from REAL engine outputs. Drives nx_fin_audit (overcharges), nx_fin_finance (rate savings), nx_debt (avalanche savings), nx_bills (overdue) on the operator's scenario, feeds the figures to cor_build -> co_plan, and asserts the plan reflects the computed numbers + only includes applicable actions. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 9 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_fin_audit.nx nx_fin_finance.nx nx_debt_payoff.nx nx_bills.nx nx_bills_store.nx nx_climbout.nx nx_climbout_real.nx nx_climbout_real_gate.nx

imports: nx_syscalls.nxnx_money.nxnx_fin_audit.nxnx_fin_finance.nxnx_debt_payoff.nxnx_bills.nxnx_bills_store.nxnx_climbout.nxnx_climbout_real.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 seti aud_duplicates mny_add aud_unbundle mny_add ↻ aud_mue aud_lookup mny_div_round mny_div_floor mny_add ↻ mny_add ↻ chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ mny_rate_from_pct mny_div_round ↻ fe_total_cost sys_mmap ↻ dbt_payoff_months mny_rate_monthly mny_div_round ↻ mny_apply_rate mny_div_round ↻ mny_add ↻ mny_add ↻ fe_rank_best sys_mmap ↻ fe_risk fe_is_safe fe_total_cost ↻ dbt_strategy sys_mmap ↻ mny_rate_monthly ↻ mny_add ↻ mny_apply_rate ↻

structs

none

consts

none

functions

15func g_puts(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
16func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
25func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
30func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 }
called by 1: main
32func main() -> i64