code wiki / _hdl_build / nx_nishilang_norm_gate.nx

nx_nishilang_norm_gate.nx

buildroot/runtime/_hdl_build/nx_nishilang_norm_gate.nx

5240 B100 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_seg_store.nx nx_deploy_lib.nx nx_gate_verdict.nx nx_syscalls.nx nx_nishilang_norm_gate.nx

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_mmap ↻ ng_norm ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync ng_slen sys_mmap ↻ dep_run_capture sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve_clean sys_close ↻ sys_execve sys_exit sys_wait4 dp_read sys_openat_rd sys_read sys_close ↻ ng_has ng_slen ↻ gv_check gv_puts ↻ ng_eq ng_slen ↻ ng_semantic sys_mmap ↻ ss_cat ss_writefile ↻ dep_run_capture ↻

structs

none

consts

14const NG_CAP: i64 = 65536

functions

16func ng_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: ng_hasng_normmain
17func ng_has(q: *u8, n: i64, s: *u8) -> i64
called by 2: ng_semanticmain calls 1: ng_slen
30func ng_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
37func ng_norm(elf: *u8, infrag: *u8, outbuf: *u8) -> i64
46func ng_semantic(normfn: *u8, nn: i64, mainsrc: *u8, oktoken: *u8) -> i64
66func main() -> i64