code wiki / _hdl_build / nx_morph_gate.nx

nx_morph_gate.nx

buildroot/runtime/_hdl_build/nx_morph_gate.nx

5854 B143 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_mesh3.nx nx_morph.nx nx_morph_gate.nx

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

main sys_mmap m3_bytes m3_init m3_hdr m3_box m3_add_vert m3_hdr ↻ m3_vert m3_add_tri m3_hdr ↻ m3_tri mo_bytes mo_init mo_hdr mo_begin mo_hdr ↻ mo_dir m3_vert ↻ mo_add_delta mo_hdr ↻ mo_delta mo_dir ↻ mo_apply m3_hdr ↻ m3_init ↻ m3_vert ↻ m3_add_vert ↻ m3_tri ↻ m3_add_tri ↻ mo_hdr ↻ mo_dir ↻ mo_delta ↻ meshsum m3_hdr ↻ m3_vert ↻ m3_hdr ↻ hw sys_write pn

structs

none

consts

none

functions

13func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func meshsum(mesh: i64) -> i64
called by 1: main calls 2: m3_hdrm3_vert
40func main() -> i64