code wiki / _hdl_build / nx_chartlay_gate.nx

nx_chartlay_gate.nx

buildroot/runtime/_hdl_build/nx_chartlay_gate.nx

18569 B279 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_chartlay_gate.nx -- referee for nx_chartlay_lib (datavis DV1, 2026-09-15): hand-worked domains and ticks, the integer scale both ways, the box arithmetic, the placer and the critic on THE LIVE CLUSTER that drew the operator's junk verdict (five players, positions from the 2026-09-15 search spine) -- the junk layout must grade as junk, the domain-fit layout must place every label clear and spread the field, and a canvas too small to seat anything must read UNRESOLVED rather than pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_chartlay_lib.nx nx_syscalls.nx nx_gate_verdict.nx nx_chartlay_gate.nx

imports: nx_chartlay_lib.nxnx_syscalls.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_mmap ↻ gv_check_eq gv_check gv_puts ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap cl_domain cl_nice_step cl_step_at cl_floor_to cl_ceil_to cl_tick cl_ticks cl_scale cl_text_w chl_slen g_names

structs

none

consts

10const G_N: i64 = 5
11const G_FONT: i64 = 13
13const G_OLD_X0: i64 = 565
14const G_OLD_X1: i64 = 656
15const G_OLD_X2: i64 = 686
16const G_OLD_X3: i64 = 706
17const G_OLD_X4: i64 = 648
18const G_OLD_Y0: i64 = 374
19const G_OLD_Y1: i64 = 434
20const G_OLD_Y2: i64 = 428
21const G_OLD_Y3: i64 = 334
22const G_OLD_Y4: i64 = 435
24const G_C0: i64 = 750
25const G_C1: i64 = 888
26const G_C2: i64 = 934
27const G_C3: i64 = 965
28const G_C4: i64 = 877
29const G_D0: i64 = 199
30const G_D1: i64 = 60
31const G_D2: i64 = 74
32const G_D3: i64 = 291
33const G_D4: i64 = 58
34const G_R_SMALL: i64 = 15
35const G_R_BIG: i64 = 17
36const G_PLOT_X0: i64 = 70
37const G_PLOT_Y0: i64 = 30
38const G_PLOT_X1: i64 = 730
39const G_PLOT_Y1: i64 = 460
40const G_CANVAS_IN: i64 = 2
41const G_TINY: i64 = 30
42const G_SPREAD_FLOOR: i64 = 600
43const G_EXP_TICKS_A: i64 = 7
44const G_EXP_TICKS_B: i64 = 8
45const G_EXP_TICKS_C: i64 = 5
46const G_EXP_TICKS_D: i64 = 6
47const G_EXP_TICKS_E: i64 = 4
48const G_V_A_LO: i64 = 700
49const G_V_A_HI: i64 = 1000
50const G_V_B_LO: i64 = 0
51const G_V_B_HI: i64 = 350
52const G_V_C: i64 = 500
53const G_V_C_LO: i64 = 480
54const G_V_C_HI: i64 = 520
55const G_V_E_LO: i64 = 990
56const G_V_E_LO_EXP: i64 = 970
57const G_SC_MID: i64 = 850
58const G_SC_MID_PX: i64 = 400
59const G_TW_5: i64 = 36
60const G_TH_13: i64 = 16
61const G_BOX_A: i64 = 10
62const G_BOX_W: i64 = 20
63const G_BOX_B_TOUCH: i64 = 30
64const G_BOX_B_OVER: i64 = 25
75const G_CT_DIR: *u8 = "/tmp/nx_chartlay_gate/"
76const G_CT_CONF: *u8 = "/tmp/nx_chartlay_gate/contrast.conf"
77const G_CT_ABSENT: *u8 = "/tmp/nx_chartlay_gate/absent.conf"
78const G_DIR_MODE: i64 = 493
79const G_FILE_MODE: i64 = 420
80const G_RS_RW: i64 = 300 // the reseat region
81const G_RS_RH: i64 = 200
82const G_RS_CX: i64 = 150 // both boxes anchor at the region's centre
83const G_RS_CY: i64 = 100
84const G_RS_BIG_W: i64 = 200 // the fixed box covers the centre
85const G_RS_BIG_H: i64 = 120
86const G_RS_SMALL_W: i64 = 60
87const G_RS_SMALL_H: i64 = 14

functions

66func g_fill5(a: *i64, v0: i64, v1: i64, v2: i64, v3: i64, v4: i64) -> i64 { a[0] = v0; a[1] = v1; a[2] = v2; a[3] = v3; a[4] = v4; return 0 }
called by 1: main
67func g_names(i: i64) -> *u8
called by 1: main
74func g_alloc() -> *i64 { return sys_mmap((G_N + 1) * CL_I64_BYTES) as *i64 }
called by 1: main calls 1: sys_mmap
88func g_write_text(path: *u8, s: *u8) -> i64
96func main() -> i64