code wiki / _hdl_build / nx_softdyn_gate.nx

nx_softdyn_gate.nx

buildroot/runtime/_hdl_build/nx_softdyn_gate.nx

7868 B166 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_softdyn_gate.nx -- prove the secondary-dynamics solver is REAL PHYSICS, not a wobble hack. T1 INERTIAL LAG soft mass trails an accelerating anchor (that IS jiggle) T2 OVERSHOOT when the anchor stops, the mass passes THROUGH it (sign change) = oscillation T3 DAMPED SETTLE energy decays and it comes to rest (no perpetual motion) T4 IMPULSE/RECOIL a kick on a still point displaces then returns -- the SAME solver serves firearms T5 BOUNDED a violent anchor can never separate tissue past the clamp (divergence impossible) T6 DETERMINISM identical replay, bit-for-bit T7 ANTI-VACUITY a STIFF+damped config shows ~no lag => T1's lag is the SOLVER, not an always-on bug license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_softdyn.nx nx_gate_verdict.nx nx_softdyn_gate.nx

imports: nx_syscalls.nxnx_softdyn.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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sd_alloc sys_mmap ↻ sd_seat sd_step sd_step_ax sd_step_axq sd_clampk sd_clampc sd_isqrt vm_isqrt sd_deadsnap sd_abs sd_disp sd_isqrt ↻ sg_hw sys_write ↻ sg_pn sys_mmap ↻ sys_write ↻ gv_check

structs

none

consts

14const SG_SOFT_K: i64 = 120
15const SG_SOFT_C: i64 = 100
16const SG_STIFF_K: i64 = 900
17const SG_STIFF_C: i64 = 800
18const SG_MAXD: i64 = 40

functions

20func sg_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
21func sg_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
31func main() -> i64