code wiki / (root) / nx_goalmap_record_gate.nx

nx_goalmap_record_gate.nx

buildroot/runtime/nx_goalmap_record_gate.nx

12124 B154 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic goalmap
docsdependenciesstructsconstsfunctions

about

nx_goalmap_record_gate.nx -- EC38 RECORD GAPS proven on a PLANTED compare tree: two boards, one invoked-tool document, one queue callout. The boarded set (matrix organ + symbol, plan rung symbol, gates organ) is DERIVED, ORGAN candidates come from the invoked set, DIRECTIVE candidates from the queue row only (a lesson row's prose is never a directive), the partition sums, the plane is rewritten whole (a second run yields the same rows), a boarded organ is never filed (neg-control) and removing it from its board makes it appear (bite). Drives the LIB in-process on a /tmp fixture; the production conf, plane and journal are never touched. exit: 0 GREEN . 1 RED . 3 SKIP license_tier: ORIGINAL No hw writes.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_goalmap_lib.nx nx_gauge_lib.nx nx_goalmap_record_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_goalmap_lib.nxnx_gauge_lib.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mkdir sys_unlinkat rg_plant sys_mkdir ↻ rg_put_in sys_mmap ↻ rg_path rg_put sys_unlinkat ↻ sys_openat_wr sys_write ↻ rg_slen sys_close rg_put_in ↻ rg_put ↻ rg_conf sys_mmap ↻ rg_put ↻ sys_mmap ↻ gm_record_gaps

structs

none

consts

13const RG_SPAN: i64 = 16
14const RG_CADENCE: i64 = 86400 // the fixture conf declares no cadence row, so the lib's default is what its stamp carries
15const RG_EXP_TOTAL: i64 = 3
16const RG_EXP_FEED_LINES: i64 = 4 // one header line + three rows
17const RG_ROWS: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf.rows"
18const RG_STAMP: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf.stamp"
19const RG_ROOT: *u8 = "/tmp/nx_goalmap_record_gate"
20const RG_STORE: *u8 = "/tmp/nx_goalmap_record_gate/store"
21const RG_PLANS: *u8 = "/tmp/nx_goalmap_record_gate/plans/"
22const RG_PLANS2: *u8 = "/tmp/nx_goalmap_record_gate/plans2/"
23const RG_GATES: *u8 = "/tmp/nx_goalmap_record_gate/gates/"
24const RG_FREQ: *u8 = "/tmp/nx_goalmap_record_gate/freq.json"
25const RG_CONF: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf"
26const RG_CONF2: *u8 = "/tmp/nx_goalmap_record_gate/rg2.conf"
27const RG_CONF_ABSENT: *u8 = "/tmp/nx_goalmap_record_gate/absent.conf"
28const RG_PLANE: *u8 = "/tmp/nx_goalmap_record_gate/store/comparegaps-"
29const RG_PLANE2: *u8 = "/tmp/nx_goalmap_record_gate/store/comparegaps2-"
30const RG_MODE_RWX: i64 = 493
31const RG_MODE_RW: i64 = 420
32const RG_PATHB: i64 = 512
33const RG_LOADCAP: i64 = 65536
34const RG_NL: i64 = 10

functions

36func rg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: rg_putrg_find
37func rg_path(out: *u8, dir: *u8, name: *u8) -> i64 { var o: i64 = sj_cat(out, 0, dir); o = sj_cat(out, o, name); out[o] = 0 as u8; return o }
called by 1: rg_put_in
38func rg_put(path: *u8, body: *u8) -> i64
46func rg_put_in(dir: *u8, name: *u8, body: *u8) -> i64 { let p: *u8 = sys_mmap(RG_PATHB); rg_path(p, dir, name); return rg_put(p, body) }
called by 2: rg_plantmain calls 3: sys_mmaprg_pathrg_put
47func rg_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: rg_slen
54func rg_lines(buf: *u8, n: i64) -> i64 { var c: i64 = 0; var i: i64 = 0; while i < n { if buf[i] == (RG_NL as u8) { c = c + 1 } i = i + 1 } return c }
called by 1: main
57func rg_plant(plans: *u8, with_bx: i64) -> i64
called by 1: main calls 2: sys_mkdirrg_put_in
70func rg_conf(path: *u8, plans: *u8, plane: *u8) -> i64
called by 1: main calls 2: sys_mmaprg_put
85func main(argc: i64, argv: *i64) -> i64