code wiki / (root) / nx_fin_portfolio_gate.nx

nx_fin_portfolio_gate.nx

buildroot/runtime/nx_fin_portfolio_gate.nx

2782 B51 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_portfolio_gate.nx -- GATE for portfolio construction: equal/score weighting with concentration caps, sector + total-exposure limits, and the Herfindahl diversification index, all hand-computed. Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_gate.nx nx_fin_portfolio.nx nx_fin_portfolio_gate.nx

imports: nx_gate.nxnx_fin_portfolio.nx

imported by: nobody (leaf or entry point)

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

main chk gw sys_write gn sys_write ↻ sys_mmap pf_equal_weight pf_score_weight pf_concentration_ok pf_sector_ok pf_total_exposure_ok pf_herfindahl gw ↻ gn ↻

structs

none

consts

none

functions

7func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
13func main() -> i64