code wiki / (root) / nx_bills_gate.nx

nx_bills_gate.nx

buildroot/runtime/nx_bills_gate.nx

3278 B62 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic bills
docsdependenciesstructsconstsfunctions

about

nx_bills_gate.nx -- R1 GATE: proves the bills register computes exact cadence-normalized monthly totals, per-category totals, due-soon, and overdue. Bills: mortgage $2000/mo, auto-insurance $1800/6mo, health- insurance $600/mo, HOA $300/quarter, electric $150/mo. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_bills.nx nx_bills_gate.nx

imports: nx_syscalls.nxnx_money.nxnx_bills.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 chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ bl_monthly mny_div_round mny_div_floor bl_monthly_total mny_add bl_monthly ↻ g_puts ↻ g_putn ↻ bl_category_monthly mny_add ↻ bl_monthly ↻ bl_due_soon bl_overdue

structs

none

consts

none

functions

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