code wiki / (root) / nx_taxlot_gate.nx

nx_taxlot_gate.nx

buildroot/runtime/nx_taxlot_gate.nx

6463 B132 linesdepth 7pulls 13 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_taxlot_gate.nx -- CAPITAL-GAINS TAX-LOT + WASH-SALE GATE. Proves realized gain/loss sign, holding-period classification (incl. the exactly-one-year boundary), the IRC 1091 wash-sale disallowance across full / partial / outside-window / symmetric-window cases, the allowed+disallowed==original conservation invariant, the basis deferral, FIFO lot consumption, and the fail-closed overdraw guard. Hand-verified integer values. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_taxlot_lib.nx nx_matter_lib.nx nx_taxlot_gate.nx

imports: nx_taxlot_lib.nxnx_matter_lib.nx

imported by: nobody (leaf or entry point)

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

main xg_puts xg_ck xg_puts ↻ xg_putn tl_realized_gain tl_holding_class xg_ckstr mt_streq xg_puts ↻ tl_class_str tl_wash_disallowed tl_allowed_loss tl_wash_disallowed ↻ tl_adjusted_replacement_ba tl_sell_fifo xg_putn ↻

structs

none

consts

none

functions

10func xg_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 3: xg_ckxg_ckstrmain
11func xg_putn(v: i64) -> i64
called by 2: xg_ckmain
25func xg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: xg_putsxg_putn
36func xg_ckstr(cnt: *i64, name: *u8, got: *u8, want: *u8) -> i64
called by 1: main calls 2: mt_streqxg_puts
47func main(argc: i64, argv: *i64) -> i64