code wiki / (root) / nx_jam_response_test.nx

nx_jam_response_test.nx

buildroot/runtime/nx_jam_response_test.nx

3023 B63 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic jam
docsdependenciesstructsconstsfunctions

about

nx_jam_response_test.nx -- KAT: the FULL jam->action loop on a simulated telemetry sequence: detect (jam_step) + respond (jr_step) -> CONTINUE/ALERT/PAUSE. Proves a developing jam auto-pauses, and a transient does NOT. expect_exit: 0.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_jam_detect.nx nx_jam_response.nx nx_jam_response_test.nx

imports: nx_syscalls.nxnx_jam_detect.nxnx_jam_response.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 w sys_write chk w ↻ window jam_step jr_step wn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

9func w(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: chkmain calls 1: sys_write
10func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
19func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
26func window(eq: i64, fq: i64, consec: *i64, pass: *i64, fail: *i64) -> i64
called by 1: main calls 2: jam_stepjr_step
32func main() -> i64