You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Four fixes identified by codebase audit:
1. EpochCheckpoint.salt no longer misused for insn_index_in_bb.
Added dedicated saved_insn_index field to EpochCheckpoint.
CALL_VM/RET_VM handlers updated to use the new field.
2. Extracted enc_state replay from vm_engine.hpp step() into
pipeline::replay_enc_state() non-template function.
step() reduced from ~40 lines of inline SipHash chain replay
to a single function call. Replay logic properly handles
REKEY instructions during chain advancement.
3. Removed unused MockEditor class from test_loader.cpp (93 lines
of dead code). Replaced stale TODO in vm_runtime_init.cpp with
proper documentation of hardcoded section name rationale.
4. Added 11 atomic handler tests: LOCK_ADD (basic + zero + overflow),
XCHG (basic + same-value), CMPXCHG (success + failure + combined),
ATOMIC_LOAD (basic + zero + different registers). All handlers
verified for encode/decode correctness through composition tables.
51 comprehensive tests, 696 total tests passing.
0 commit comments