code wiki / (root) / nx_manga_charsheet_gate.nx

nx_manga_charsheet_gate.nx

buildroot/runtime/nx_manga_charsheet_gate.nx

8719 B177 linesdepth 11pulls 50 transitivereach 0 importersview sourcekind gate/prooftopic manga
docsdependenciesstructsconstsfunctions

about

nx_manga_charsheet_gate.nx -- REFEREE for R4 (nx_manga_charsheet). END-TO-END: builds its own mesh by forking nx_body_gen, writes its own sheet specs, forks the PROMOTED sheet elf, and reads the artifacts back off disk. It measures the shipped binary, not a convenient in-process copy of the logic. It proves the DONE-RULE pre-declared on /compare/mangagen before the organ existed: "Legality-checked pose sweep, renders, sheet grid; identity judged per cell." NEGATIVE CONTROLS, because a green that never had a red is unverified: neg-control-white -- the ink counter must return ZERO on a blank buffer, so the drew-something teeth cannot pass on any image at all. neg-control-nomesh -- an unreadable mesh must REFUSE and leave no sheet. neg-control-hole -- a view the renderer cannot satisfy must REFUSE, because the whole point is that a sheet is never composed with a hole in it. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_tool_run.nx nx_img_to_rgb.nx nx_gate_verdict.nx nx_manga_charsheet_gate.nx

imports: nx_str.nxnx_syscalls.nxnx_tool_run.nxnx_img_to_rgb.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 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 sys_close ↻ sys_munmap sys_execve tr_exec_failed sys_write ↻

structs

none

consts

18const MCG_CAP: i64 = 65536

functions

19func mcg_write(path: *u8, s: *u8) -> i64
28func mcg_exists(p: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
34func mcg_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: nx_str_len
48func mcg_ink(rgb: *u8, w: i64, h: i64) -> i64
called by 1: main
62func main(argc: i64, argv: *i64) -> i64