Lib.Krakatau.ssa.ssa_jumps.goto.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krakatau-lib Show documentation
Show all versions of krakatau-lib Show documentation
Assembler, disassebmler, decompiler and compiler tools library for Java.
from .base import BaseJump
class Goto(BaseJump):
def __init__(self, parent, target):
super(Goto, self).__init__(parent, [])
self.successors = [target]
def replaceBlocks(self, blockDict):
self.successors = [blockDict[key] for key in self.successors]
def getNormalSuccessors(self):
return self.successors
def reduceSuccessors(self, pairsToRemove):
if (self.successors[0], False) in pairsToRemove:
return None
return self
© 2015 - 2025 Weber Informatics LLC | Privacy Policy