code wiki / (root) / nx_card_rewards_gate.nx

nx_card_rewards_gate.nx

buildroot/runtime/nx_card_rewards_gate.nx

5065 B90 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic card
docsdependenciesstructsconstsfunctions

about

nx_card_rewards_gate.nx -- proves the rewards-vs-interest engine on REAL, hand-computed scenarios. The headline it verifies: the SAME $480/yr cashback card ($95 fee) EARNS a payer $385 but COSTS a $3,000 revolver $364.70 -- because 24.99% interest on the carried balance dwarfs the rewards. Every number is integer-exact and hand-checked; a negative-control liar-kill proves the engine cannot fake value. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_card_rewards.nx nx_card_rewards_gate.nx

imports: nx_card_rewards.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts cr_rewards_annual mny_div_round mny_div_floor chk g_puts ↻ g_n cr_interest_annual mny_rate_from_pct mny_div_round ↻ mny_apply_rate mny_div_round ↻ cr_net_annual cr_verdict cr_breakeven_balance mny_rate_from_pct ↻ mny_div_round ↻ cr_signup_value cr_point_bps mny_div_round ↻ cr_pick g_n ↻

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
9func g_n(v: i64) -> i64
called by 2: chkmain
18func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_n
25func main() -> i64