nx_goalmap_record_gate.nx
buildroot/runtime/nx_goalmap_record_gate.nx
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
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
structs
| none |
consts
| 13 | const RG_SPAN: i64 = 16 |
| 14 | const RG_CADENCE: i64 = 86400 // the fixture conf declares no cadence row, so the lib's default is what its stamp carries |
| 15 | const RG_EXP_TOTAL: i64 = 3 |
| 16 | const RG_EXP_FEED_LINES: i64 = 4 // one header line + three rows |
| 17 | const RG_ROWS: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf.rows" |
| 18 | const RG_STAMP: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf.stamp" |
| 19 | const RG_ROOT: *u8 = "/tmp/nx_goalmap_record_gate" |
| 20 | const RG_STORE: *u8 = "/tmp/nx_goalmap_record_gate/store" |
| 21 | const RG_PLANS: *u8 = "/tmp/nx_goalmap_record_gate/plans/" |
| 22 | const RG_PLANS2: *u8 = "/tmp/nx_goalmap_record_gate/plans2/" |
| 23 | const RG_GATES: *u8 = "/tmp/nx_goalmap_record_gate/gates/" |
| 24 | const RG_FREQ: *u8 = "/tmp/nx_goalmap_record_gate/freq.json" |
| 25 | const RG_CONF: *u8 = "/tmp/nx_goalmap_record_gate/rg.conf" |
| 26 | const RG_CONF2: *u8 = "/tmp/nx_goalmap_record_gate/rg2.conf" |
| 27 | const RG_CONF_ABSENT: *u8 = "/tmp/nx_goalmap_record_gate/absent.conf" |
| 28 | const RG_PLANE: *u8 = "/tmp/nx_goalmap_record_gate/store/comparegaps-" |
| 29 | const RG_PLANE2: *u8 = "/tmp/nx_goalmap_record_gate/store/comparegaps2-" |
| 30 | const RG_MODE_RWX: i64 = 493 |
| 31 | const RG_MODE_RW: i64 = 420 |
| 32 | const RG_PATHB: i64 = 512 |
| 33 | const RG_LOADCAP: i64 = 65536 |
| 34 | const RG_NL: i64 = 10 |
functions
| 36 | func rg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 37 | func 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 |
| 38 | func rg_put(path: *u8, body: *u8) -> i64 |
| 46 | func 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) } |
| 47 | func rg_find(buf: *u8, n: i64, needle: *u8) -> i64 |
| 54 | func 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 |
| 57 | func rg_plant(plans: *u8, with_bx: i64) -> i64 |
| 70 | func rg_conf(path: *u8, plans: *u8, plane: *u8) -> i64 |
| 85 | func main(argc: i64, argv: *i64) -> i64 |