nx_pcb_gerber_gate.nx
buildroot/runtime/nx_pcb_gerber_gate.nx
about
nx_pcb_gerber_gate.nx -- R1 GATE of the Omniforge PCB/EDA leg (the "chips" near-term path).
Builds a small real board (pads + traces), emits a Gerber RS-274X copper layer via nx_pcb_gerber,
writes the real .gbr artifact, then VERIFIES by INDEPENDENTLY reconstructing the canonical ASCII
for every element from the integer model and asserting EXACT presence in the emitted bytes -- a
true integer round-trip proving um -> format-units -> ASCII is exact with zero float drift.
Counts D01/D02/D03 to confirm element totals, checks format/unit/end headers, and a NEGATIVE
CONTROL: a coordinate off by 1um must be ABSENT (so the round-trip check has teeth = liar-kill).
100% sovereign, integer-only. Mirrors the nx_cad_test idiom (imports nx_syscalls + the organ).
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_pcb_gerber.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
| 13 | func sw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func sn(v: i64) -> i64 |
| 25 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 28 | func contains(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 45 | func count_occur(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 62 | func expect_xyd(nb: *u8, x_um: i64, y_um: i64, d: i64) -> i64 |
| 70 | func check(name: *u8, cond: i64, tot: *i64) -> i64 |
| 77 | func main() -> i64 |