def is_opcode_valid(self):
"""
Checks whether the instruction is legal. A legal instruction has an opcode
which is understood by the CPython VM.
"""
return self.opcode in dis.opmap.values()
文章目录