Class ImpulseVmValidator
java.lang.Object
org.impulsegraph.vm.ImpulseVmValidator
Java 21+ Ahead-of-Time invalid input: '&' Runtime Bytecode Type and Register Contract
Validator for ImpulseVM. Performs single-pass abstract type propagation
across registers R0..R63 and enforces input/output register-type contracts
across all single-lane and multi-lane (0xC0..0xCB) opcodes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclassifyOpcode(int op) Total classifier for all 256 possible 8-bit opcode bytes (matching OCaml'sclassify_opcode).findOpcodeContract(int opcode) static booleanisStrictTypedOpcode(int op) static Stringvalidate(VmHandlers.Instruction[] program)
-
Field Details
-
NODE_SOURCE_TYPES
-
NUMERIC_VECTOR_TYPES
-
ALL_REG_TYPES
-
NORMATIVE_OPCODE_CONTRACTS
-
-
Method Details
-
findOpcodeContract
-
classifyOpcode
Total classifier for all 256 possible 8-bit opcode bytes (matching OCaml'sclassify_opcode). -
isStrictTypedOpcode
public static boolean isStrictTypedOpcode(int op) -
validate
-