MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / compileToVirtualInstructions

Method compileToVirtualInstructions

src/instruction.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8bool Instruction::compileToVirtualInstructions()
9{
10 // generate the corrosponding virtual instructions
11 if (!VM::compileInstructionToVirtualInstructions(this))
12 {
13 std::cerr << "error compiling instruction" << std::endl;
14 return 0;
15 }
16
17 return 1;
18}
19
20void Instruction::addVirtualInstruction(VirtualInstruction virtualInstruction) { virtualInstructions.push_back(virtualInstruction); }
21

Tested by

no test coverage detected