code wiki / (root) / nx_manga_script_gate.nx

nx_manga_script_gate.nx

buildroot/runtime/nx_manga_script_gate.nx

8564 B165 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic manga
docsdependenciesstructsconstsfunctions

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

nx_str.nx nx_syscalls.nx nx_tool_run.nx nx_gate_verdict.nx nx_manga_script_gate.nx

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_unlinkat msg_write sys_openat_wr nx_str_len sys_write ↻ sys_close sys_mmap ↻ tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close ↻ sys_dup3 sys_execve_clean sys_close_inherited sys_close_inherited_proc sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen

structs

none

consts

15const MSG_CAP: i64 = 65536

functions

16func msg_write(path: *u8, s: *u8) -> i64
25func msg_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
34func msg_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: nx_str_len
47func main(argc: i64, argv: *i64) -> i64