code wiki / (root) / nx_manga_gate.nx

nx_manga_gate.nx

buildroot/runtime/nx_manga_gate.nx

4684 B116 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic manga
docsdependenciesstructsconstsfunctions

about

nx_manga_gate.nx -- REFEREE for WRITING rung W-MANGA-1 (nx_manga). [T1] page/panel counts on a 2-page, 3-panel script. [T2] per-panel field extraction (reusing the scenario parser on a sub-range). [T3] validation: complete script -> 0 missing; a panel without a shot -> 1 missing (NEG-CONTROL). [T4] per-panel image-gen prompt emit equals the expected string. Evidence -> stdout + knowledge/status/manga_gate.log. Exit 0 GREEN / 1 RED. Sovereign x86_64. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls_x86_64.nx nx_manga.nx nx_scenario.nx nx_manga_gate.nx

imports: nx_syscalls_x86_64.nxnx_manga.nxnx_scenario.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_openat_append gp slen pr_kv gp ↻ gn mg_count_pages mg_count mg_line_is sc_next_line mg_count_panels mg_count ↻ mg_panel_start mg_line_is ↻ sc_next_line ↻ mg_panel_end sc_next_line ↻ mg_line_is ↻ sc_copy_field sc_find_field sc_next_line ↻ sc_value_len pr_streq gp ↻ streq mg_validate mg_count_panels ↻ mg_panel_start ↻ mg_panel_end ↻ sc_has sc_find_field ↻ mg_emit_panel_prompt mg_panel_start ↻ mg_panel_end ↻ sc_app_field sc_find_field ↻ sc_value_len ↻ sc_app_lit

structs

none

consts

none

functions

15func gp(logfd: i64, s: *u8) -> i64
called by 3: pr_kvpr_streqmain
22func gn(logfd: i64, v: i64) -> i64
called by 1: pr_kv
40func slen(s: *u8) -> i64
called by 1: main
45func streq(a: *u8, b: *u8) -> i64
called by 1: pr_streq
54func pr_kv(logfd: i64, label: *u8, got: i64, exp: i64) -> i64
called by 1: main calls 2: gpgn
62func pr_streq(logfd: i64, label: *u8, got: *u8, exp: *u8) -> i64
called by 1: main calls 2: gpstreq
70func main() -> i64