code wiki / (root) / nx_fin_rules_gate.nx

nx_fin_rules_gate.nx

buildroot/runtime/nx_fin_rules_gate.nx

6811 B133 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_rules_gate.nx -- R6 GATE: proves the audit rule packs round-trip through the sovereign seg-store and that the audit runs off LOADED packs (not gate-supplied constants) = the data-driven, robust-for- anyone invariant. Stores NCCI-bundle / MUE / Medicare-benchmark packs for jurisdiction "US-2025", loads them, runs the R5 audit on the cancer bill off the loaded packs (same findings as R5), then stores a second "STRICT" jurisdiction pack (MUE max 1) and shows the audit result CHANGES with the pack. Negative control: an absent pack returns -1. Hermetic (/tmp prefix). Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_fin_audit.nx nx_fin_rules.nx nx_fin_rules_gate.nx

imports: nx_syscalls.nxnx_money.nxnx_fin_audit.nxnx_fin_rules.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 sys_now_us sys_mmap ↻ sys_clock_gettime_mono seti chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ rp_put sys_mmap ↻ rp_key rp_w64 ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile

structs

none

consts

none

functions

12func 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
13func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
22func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
27func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 }
called by 1: main
29func main() -> i64