code wiki / (root) / nx_xbrl_gate.nx

nx_xbrl_gate.nx

buildroot/runtime/nx_xbrl_gate.nx

5198 B92 linesdepth 9pulls 14 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_xbrl_gate.nx -- F987 INDEPENDENT GATE: XBRL fact parse + accounting-identity validation. Proves namespace/attribute-boundary-aware extraction (never mis-matches a longer concept), integer fact parsing, the balance-identity check, that a MIS-TAGGED filing (does not balance) is flagged, and fail-closed on a missing fact. XBRL uses attributes so tags carry contextRef etc. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_xbrl_lib.nx nx_xbrl_gate.nx

imports: nx_xbrl_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 iso_len xg_ck xg_puts ↻ xg_putn xbrl_fact_int xbrl_fact iso_find xb_atoi xbrl_check_balance xbrl_fact_int ↻ xg_putn ↻

structs

none

consts

none

functions

9func 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 2: xg_ckmain
10func xg_putn(v: i64) -> i64
called by 2: xg_ckmain
24func xg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: xg_putsxg_putn
36func main(argc: i64, argv: *i64) -> i64