code wiki / (root) / nx_twinreport_gate.nx

nx_twinreport_gate.nx

buildroot/runtime/nx_twinreport_gate.nx

6955 B111 linesdepth 13pulls 69 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_twinreport_gate.nx -- gate for the card-to-visible-result call (aesthetictwin AT42, 2026-09-17). In-process over nx_twinreport_lib, composed with nx_compare_results_lib so the rows this organ writes are held to the grammar the results page actually parses: a planted card is fitted, rendered from three views and appended; a card with no known axis and an empty seed range refuse without writing; a repeated append supersedes itself on the page. Scratch lives in /tmp. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_twinreport_lib.nx nx_compare_results_lib.nx nx_twinreport_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_twinreport_lib.nxnx_compare_results_lib.nx

imported by: nobody (leaf or entry point)

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

main gv_head gv_puts sys_write 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 ↻ sys_mkdir rg_write sys_openat_wr sys_write ↻ sys_close gv_need gv_puts ↻ sys_mmap ↻ gv_check_eq gv_check gv_puts ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap twr_fit_report sys_mmap ↻ tw_load_target tw_target_clear

structs

none

consts

11const RG_DIR: *u8 = "/tmp/nx_twinreport_gate"
12const RG_TARGET: *u8 = "/tmp/nx_twinreport_gate/planted.target"
13const RG_EMPTY_TARGET: *u8 = "/tmp/nx_twinreport_gate/empty.target"
14const RG_RESULTS: *u8 = "/tmp/nx_twinreport_gate/gate.results"
15const RG_HREF: *u8 = "/compare/fixtureboard/results/img/"
16const RG_SLUG: *u8 = "planted_card"
17const RG_CLOSE_PNG: *u8 = "/tmp/nx_twinreport_gate/planted_card_close.png"
18const RG_SEED_PNG: *u8 = "/tmp/nx_twinreport_gate/seed_3.png"
19const RG_MODE755: i64 = 493
20const RG_MODE644: i64 = 420
21const RG_PNG_SIG0: i64 = 137
22const RG_PNG_SIG1: i64 = 80
23const RG_VIEWS: i64 = 3
24const RG_SEED: i64 = 3
25const RG_PAGE_CAP: i64 = 262144
26const RG_REACHED: i64 = 4
27const RG_BYTE: i64 = 255

functions

29func rg_write(path: *u8, s: *u8) -> i64
37func rg_size(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
44func rg_is_png(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
54func main(argc: i64, argv: *i64) -> i64