nx_manga_script_gate.nx
buildroot/runtime/nx_manga_script_gate.nx
about
nx_manga_script_gate.nx -- REFEREE for R3 (nx_manga_script). END-TO-END: builds its own fixture script,
forks the PROMOTED elf, and reads the beatplan back off disk.
It proves the DONE-RULE pre-declared on /compare/mangagen before the organ existed:
"Every script line lands in exactly one panel; the partition is printed."
ANTI-VACUITY IS THE POINT: an implementation that dumps every row into panel 0 still makes the counts
SUM, so a partition tooth alone cannot tell a correct splitter from a broken one. T5 requires EVERY
panel to be occupied and T6 requires script ORDER to survive -- the trivial wrong version fails both.
NEGATIVE CONTROLS: T8 a script with fewer rows than panels must REFUSE (it would leave a panel empty),
and T4 proves the row counter can return ZERO so the counting teeth are not tautologies.
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_str.nxnx_syscalls.nxnx_tool_run.nxnx_gate_verdict.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
| 15 | const MSG_CAP: i64 = 65536 |
functions
| 16 | func msg_write(path: *u8, s: *u8) -> i64 |
| 25 | func msg_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 34 | func msg_count(buf: *u8, n: i64, needle: *u8) -> i64 |
| 47 | func main(argc: i64, argv: *i64) -> i64 |