code wiki / (root) / nx_determinism_test.nx

nx_determinism_test.nx

buildroot/runtime/nx_determinism_test.nx

3105 B80 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_determinism_test.nx -- 1:1 KAT for the rollback sync-test harness (nx_determinism.nx). Proves: (a) the deterministic integer sim survives per-frame rollback with ZERO divergence, and (b) -- the load-bearing negative control -- the harness DETECTS non-determinism (a sim with hidden state outside the snapshot), so the gate is real, not a rubber stamp. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_determinism.nx nx_determinism_test.nx

imports: nx_determinism.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main crc32c_build_table sys_mmap det_rollback_verify det_copy det_sim_step det_state_checksum crc32c_table det_buggy_verify det_copy ↻ det_sim_step_buggy det_state_checksum ↻

structs

none

consts

none

functions

16func det_sim_step_buggy(state: *i64, nwords: i64, input: i64) -> i64
called by 1: det_buggy_verify
26func det_buggy_verify(t: *i64, state0: *i64, nwords: i64, inputs: *i64, nframes: i64) -> i64
46func main() -> i64