code wiki / (root) / nx_money_gate.nx

nx_money_gate.nx

buildroot/runtime/nx_money_gate.nx

3433 B69 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic money
docsdependenciesstructsconstsfunctions

about

nx_money_gate.nx -- R1 GATE: proves nx_money is exact + no-float. Asserts add/sub/neg, rounding (floor / half-up / banker's half-even on positive, negative, and .5 ties), scaled-rate interest, APR->monthly, the percent constructor, and [-]D.CC formatting against hand-computed vectors. Exits 0 iff ALL pass (RED otherwise). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_money_gate.nx

imports: nx_syscalls.nxnx_money.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 chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ mny_add mny_sub mny_neg mny_div_round mny_div_floor mny_rate_from_pct mny_div_round ↻ mny_apply_rate mny_div_round ↻ mny_rate_monthly mny_div_round ↻ mny_format mny_wdec sys_mmap ↻ g_puts ↻ g_putn ↻

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
19func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
25func main() -> i64