code wiki / _hdl_build / nx_textcut_gate.nx
nx_textcut_gate.nx
buildroot/runtime/_hdl_build/nx_textcut_gate.nx
about
nx_textcut_gate.nx -- GATE for nx_textcut (token-boundary-safe cutting).
THE FIXTURE IS THE PRODUCTION DEFECT, NOT A SYNTHETIC ONE: the title string below is the document
nishifamily.com/search rendered on 2026-08-25, and byte 72 of it -- the live renderer's title cap --
falls on the 'F' of "REFPROP". The live SERP served the title "...Database (RE" and then a snippet
BEGINNING "FPROP) Version 9". Every tooth here is checked against that measured behaviour.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_textcut.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 TG_LIVE_TITLE_CAP: i64 = 72 // the cap the LIVE renderer used when it produced the defect |
| 11 | const TG_BIGCAP: i64 = 4096 |
| 12 | const TG_CH_V: i64 = 86 |
| 13 | const TG_CH_e: i64 = 101 |
| 14 | const TG_CH_a: i64 = 97 |
functions
| 16 | func tg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 17 | func tg_not(v: i64) -> i64 { if v == 0 { return 1 } return 0 } called by 1: main |
| 18 | func tg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 } called by 1: main |
| 22 | func tg_le(a: i64, b: i64) -> i64 { if a <= b { return 1 } return 0 } |
| 23 | func tg_gt(a: i64, b: i64) -> i64 { if a > b { return 1 } return 0 } |
| 24 | func tg_show(label: *u8, v: i64) -> i64 { gv_puts(label); gv_num(v); gv_puts("\n" as *u8); return 0 } |
| 26 | func main(argc: i64, argv: *i64) -> i64 |