code wiki / _hdl_build / nx_estate_gate.nx

nx_estate_gate.nx

buildroot/runtime/_hdl_build/nx_estate_gate.nx

7319 B115 linesdepth 6pulls 14 transitivereach 0 importersview sourcekind gate/prooftopic estate
docsdependenciesstructsconstsfunctions

about

nx_estate_gate.nx -- GATE: R-ESTATE. Renders a will's Schedule of Assets from the inventory's `estate` domain and proves: T1 every catalogued asset appears, T2 net worth exact, T3 per-beneficiary bequests + residuary, T4 CONSERVATION (every asset accounted to a distribution group -> subtotals sum to the total), T5 sovereign + boundary-escaped, T6 SHIPPED via the publisher. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_estate.nx nx_inventory.nx nx_publisher.nx nx_syscalls.nx nx_estate_gate.nx

imports: nx_estate.nxnx_inventory.nxnx_publisher.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_p sys_write iv_add sys_mmap as_append iv_num sys_mmap ↻ iv_item_key as_append ↻ iv_streq_store sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_scan_seglist ss_len sys_mmap ↻ ss_cat ss_readall ss_r32 iv_ids_key as_append ↻ ss_get ↻ iv_id_in_list as_len ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ↻ iv_seg_next sys_mmap ↻ ss_manifest ss_manifest_file

structs

none

consts

10const EG_INV: *u8 = "knowledge/store/inv-"
11const EG_DOM: *u8 = "estate"
12const EG_Q: *u8 = "knowledge/publish/estate-queue.tsv"
13const EG_LED: *u8 = "knowledge/publish/estate-ledger.tsv"
14const EG_STG: *u8 = "knowledge/publish/estate-stage"
15const EG_LIVE: *u8 = "knowledge/publish/estate-live"
16const EG_STAGE_FILE: *u8 = "knowledge/staging/estate/schedule.html"
17const EG_LIVE_FILE: *u8 = "knowledge/publish/estate-live/estate-schedule.html"

functions

19func g_p(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 1: main calls 1: sys_write
20func g_i(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func g_money(cents: i64) -> i64 { let b: *u8 = sys_mmap(32); let o: i64 = iv_money(b, 0, cents); sys_write(1, b, o); return 0 }
called by 1: main calls 3: sys_mmapiv_moneysys_write
29func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
31func main() -> i64