code wiki / _hdl_build / nx_nishilang_norm_gate.nx
nx_nishilang_norm_gate.nx
buildroot/runtime/_hdl_build/nx_nishilang_norm_gate.nx
about
nx_nishilang_norm_gate.nx -- gate for THE GENERAL-MODEL BRIDGE (nx_nishilang_norm).
On nx_gate_verdict (D001 law). Proves the else-if/else -> NishiLang rewrite is valid + semantic:
T1 else-if chain -> separate ifs, ZERO "else" left
T2 else-block -> fallthrough, ZERO "else" left
T3 idempotent: already-valid NishiLang passes byte-unchanged
T4 SEMANTIC: normalized coder15-style sgn COMPILES + RUNS correct (sgn(5)=1,-3=-1,0=0)
T5 SEMANTIC: normalized else-block absdiff COMPILES + RUNS correct (|3-7|=4)
Requires /tmp/nx_nishilang_norm.sov.elf staged. license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_seg_store.nxnx_deploy_lib.nxnx_gate_verdict.nxnx_syscalls.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
| 14 | const NG_CAP: i64 = 65536 |
functions
| 16 | func ng_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 17 | func ng_has(q: *u8, n: i64, s: *u8) -> i64 |
| 30 | func ng_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64 called by 1: main |
| 37 | func ng_norm(elf: *u8, infrag: *u8, outbuf: *u8) -> i64 |
| 46 | func ng_semantic(normfn: *u8, nn: i64, mainsrc: *u8, oktoken: *u8) -> i64 |
| 66 | func main() -> i64 |