code wiki / _hdl_build / _express_lane_gate_authored.nx
_express_lane_gate_authored.nx
buildroot/runtime/_hdl_build/_express_lane_gate_authored.nx
about
_express_lane_gate_authored.nx -- gate for X-XL-002. Drives the REAL lane elf over
epoch-unique scratch worlds:
K1 MARKWIRE-APPLIES MARKWIRE row -> scratch queue row gains ||MARK= + ACK mark-applied
K2 EXACTLY-ONCE re-run same world -> the ACK key appears EXACTLY once (no re-work)
K3 ANSWER-ACKED ANSWER row -> ACK note=received
K4 SITREP-PRESENT team_out carries SITREP-END + queue counts line
K5 LIVE real channel/queue -> exit 0
Markers: ELG-*; final ELGATE row -> knowledge/channel/team_out.tsv
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_registry_lock.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
| none |
functions
| 11 | func eg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func eg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } called by 1: main |
| 13 | func eg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } called by 1: main |
| 14 | func eg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 15 | func eg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i } |
| 16 | func eg_numcat(dst: *u8, off: i64, v: i64) -> i64 called by 1: eg_mkpath |
| 27 | func eg_mkpath(dst: *u8, epoch: i64, suffix: *u8) -> i64 |
| 34 | func eg_writes(path: *u8, s: *u8) -> i64 |
| 41 | func eg_run(tip: *u8, top: *u8, qp: *u8, live: i64) -> i64 |
| 66 | func eg_count(path: *u8, pat: *u8) -> i64 |
| 86 | func eg_has(path: *u8, pat: *u8) -> i64 |
| 90 | func eg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 96 | func main() -> i64 |