code wiki / (root) / nx_finhealth_gate.nx

nx_finhealth_gate.nx

buildroot/runtime/nx_finhealth_gate.nx

6414 B119 linesdepth 9pulls 15 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_finhealth_gate.nx -- COMPOSITE FINANCIAL HEALTH GATE. Proves the whole finance pipeline composes into one verdict: it computes a REAL Altman Z (via az_zscore) and a REAL Piotroski F-score (via pio_fscore) and judges them together, and it proves the two fail-closed gates -- INCOMPLETE dominates on a missing fact, FLAGGED dominates when the books do not balance no matter how good the scores are. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_finhealth_lib.nx nx_finhealth_gate.nx

imports: nx_finhealth_lib.nx

imported by: nobody (leaf or entry point)

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

main hg_puts az_zscore hg_ck hg_puts ↻ hg_putn az_zone hg_fill pio_fscore fh_analyze az_zscore ↻ az_zone ↻ fh_grade hg_ckstr hg_puts ↻ fh_verdict_str hg_putn ↻

structs

none

consts

none

functions

10func hg_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: hg_ckhg_ckstrmain
11func hg_putn(v: i64) -> i64
called by 2: hg_ckmain
25func hg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: hg_putshg_putn
36func hg_ckstr(cnt: *i64, name: *u8, got: *u8, want: *u8) -> i64
called by 1: main calls 1: hg_puts
47func hg_fill(m: *i64, ni: i64, roa: i64, roap: i64, cfo: i64, ltd: i64, ltdp: i64, cur: i64, curp: i64, sh: i64, shp: i64, gm: i64, gmp: i64, at: i64, atp: i64) -> i64
called by 1: main
53func main(argc: i64, argv: *i64) -> i64