Class VmInvariants

java.lang.Object
org.impulsegraph.vm.VmInvariants

public final class VmInvariants extends Object
Post-Instruction VM State invalid input: '&' Multi-Lane Oracle Invariants for ImpulseVM. Modeled on SQLite's memAboutToChange() (vdbe.c:43) and vdbeRecordCompareDebug() (vdbeaux.c:5100).
  • Method Details

    • verifyPostStep

      public static void verifyPostStep(MemorySegment state, VmQueryContext ctx)
      Verifies all normative VM state invariants after an instruction retires. Controlled by ImpulseAssert.isAssertionsEnabled() and ImpulseAssert.isAuditEnabled().
    • verifyArgminArgmaxTieBreaking

      public static void verifyArgminArgmaxTieBreaking(boolean isMin, float[] arr, long selectedIdx)
      Oracle self-check for ARGMIN / ARGMAX deterministic lowest-index tie-breaking (modeled on SQLite's vdbeRecordCompareDebug).