code wiki / (root) / nx_coa_gate.nx

nx_coa_gate.nx

buildroot/runtime/nx_coa_gate.nx

7000 B156 linesdepth 9pulls 14 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_coa_gate.nx -- F982 INDEPENDENT GATE: chart of accounts + period close. Proves the sign convention actually inverts per account KIND, that the type->side map is genuinely data-driven (a NEW kind invented at runtime works with no code change), that unknown types FAIL CLOSED instead of guessing a side, and that a closed period refuses postings. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_coa_lib.nx nx_coa_gate.nx

imports: nx_coa_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_now_us sys_mmap sys_clock_gettime_mono cg_id mt_catcopy mt_catn cg_puts coa_type_put canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap reg_put reg_put_x sts_lock sts_mm sys_mmap ↻ sts_werr sys_exit ss_cat sys_openat_append sts_werr ↻ sys_flock reg_key reg_cat ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist reg_strlen reg_id_present sts_unlock sys_flock ↻ sys_close ss_next_segid

structs

none

consts

none

functions

9func cg_puts(s: *u8) -> i64
called by 2: cg_ckmain
15func cg_putn(v: i64) -> i64
called by 2: cg_ckmain
29func cg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: cg_putscg_putn
40func cg_id(tag: *u8, nonce: i64, out: *u8) -> i64
called by 1: main calls 2: mt_catcopymt_catn
47func main(argc: i64, argv: *i64) -> i64