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