code wiki / (root) / nx_robot_timing_gate.nx

nx_robot_timing_gate.nx

buildroot/runtime/nx_robot_timing_gate.nx

4736 B103 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic robot
docsdependenciesstructsconstsfunctions

about

nx_robot_timing_gate.nx -- R-ROBO-7 GATE: step-timing / timer-ISR rung with never-brick max-rate. VERIFIES: (1) ACCEL profile: schedule starts slow (iv[0] big) and settles to the cruise floor (iv[n-1]==min); (2) overall acceleration: an early interval is clearly larger than a later one; (3) step count preserved; (4) NEVER-BRICK max-rate: EVERY interval >= min_iv (instantaneous rate <= 1/min_iv); (5) EXHAUSTIVE never-brick: sweep accel aggressiveness (incl. absurd) -> min interval always >= min_iv; (6) TIMER-ISR monotonic: steps_fired_by rises with time, 0 at t=0, n at end; (7) NEGATIVE CONTROL: the RAW (unfloored) interval at high index is < min_iv -> the floor (the never-brick rate cap) is doing real work. 100% sovereign, integer-only, hardware-rung-up. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_robot_timing.nx nx_robot_timing_gate.nx

imports: nx_syscalls.nxnx_robot_timing.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 sw sys_write schedule_accel ti_arr ti_isqrt sn sys_write ↻ sys_mmap ↻ ti_total check sw ↻ ti_min_iv steps_fired_by ti_raw_iv ti_arr ↻ sys_exit

structs

none

consts

none

functions

15func sw(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 2: checkmain calls 1: sys_write
16func sn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
26func check(name: *u8, cond: i64, tot: *i64) -> i64
called by 1: main calls 1: sw
33func main() -> i64