code wiki / _hdl_build / nx_morph_gate.nx
nx_morph_gate.nx
buildroot/runtime/_hdl_build/nx_morph_gate.nx
about
nx_morph_gate.nx -- gate for MORPHS-AS-DATA (Elara bar E3).
T1 zero weights -> output mesh BYTE-IDENTICAL to base (non-destructive, no drift)
T2 weight 256 -> exact deltas applied; weight 128 -> exact halves (integer law)
T3 two morphs COMPOSE additively (both full = the sum of both delta sets)
T4 PACK ROUND-TRIP (the mod-economy artifact): save morph -> NXM1 blob -> load into a FRESH bank -> apply
-> mesh IDENTICAL to the original morph's result; corrupted magic REJECTED
T5 determinism + STL: the morphed mesh exports binary STL (morphed AND printable -- one mesh, reuse law)
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_mesh3.nxnx_morph.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
| none |
functions
| 13 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func pn(v: i64) -> i64 |
| 26 | func meshsum(mesh: i64) -> i64 |
| 40 | func main() -> i64 |