nx_mhtarget_gate.nx
buildroot/runtime/nx_mhtarget_gate.nx
about
nx_mhtarget_gate.nx -- BITE-PROOF for the MakeHuman target dialect, both directions.
IT DRIVES THE SHIPPING CODE: every tooth calls nx_mhtarget_lib directly -- the same mht_probe,
mht_decode, mht_row and mht_num_micro the CLI calls.
FIXTURES ARE WRITTEN AT RUNTIME under /tmp/<gate>/ (bodies are plain constants -- no quote hazard in this
dialect). Every path is unlinked before it is written (idempotence).
Unlike the BodySlide sibling, the REAL corpus here is CC0 and already fetched -- the real-file
verification rides the CLI smoke on the fetched corpus and the banked-mirror watch row; this
gate proves the arithmetic and the refusals exactly.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_mhtarget_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
| 17 | const MG_DIR: *u8 = "/tmp/nx_mhtarget_gate" as *u8 |
| 18 | const MG_F_GOOD: *u8 = "/tmp/nx_mhtarget_gate/good.target" as *u8 |
| 19 | const MG_F_BAD: *u8 = "/tmp/nx_mhtarget_gate/bad.target" as *u8 |
| 20 | const MG_F_JUNK: *u8 = "/tmp/nx_mhtarget_gate/junk.txt" as *u8 |
| 21 | const MG_F_EMPTY: *u8 = "/tmp/nx_mhtarget_gate/empty.target" as *u8 |
| 22 | const MG_BUFCAP: i64 = 65536 |
| 23 | const MG_MAXROWS: i64 = 64 |
| 25 | const MG_R0_DX: i64 = 17000 // .017 -- the LEADING-DOT form the real corpus uses |
| 26 | const MG_R0_DY: i64 = 0 - 50000 // -0.05 |
| 27 | const MG_R0_DZ: i64 = 0 // 0 |
| 28 | const MG_R1_DX: i64 = 1500000 // 1.5 |
| 29 | const MG_R1_DY: i64 = 0 // 0 |
| 30 | const MG_R1_DZ: i64 = 123000 // .123 |
| 31 | const MG_R2_DX: i64 = 0 - 1000 // -0.001 |
| 32 | const MG_R2_DY: i64 = 250000 // 0.25 |
| 33 | const MG_R2_DZ: i64 = 0 - 1000000 // -1 (whole negative) |
| 35 | const MG_GOOD_BODY: *u8 = "# fixture comment one\n# fixture comment two\n17 .017 -0.05 0\n18 1.5 0 .123\n\n42 -0.001 0.25 -1\n" as *u8 |
| 36 | const MG_BAD_BODY: *u8 = "# one comment\n17 .017 -0.05 0\n19 abc 0 0\n21 1 1 1\n" as *u8 |
| 37 | const MG_JUNK_BODY: *u8 = "this prose has no four token numeric rows at all\nand neither does this line\n" as *u8 |
functions
| 39 | func mg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 40 | func mg_write(path: *u8, body: *u8, n: i64) -> i64 |
| 49 | func main(argc: i64, argv: *i64) -> i64 |