Lib.Krakatau.ssa.ssa_jumps.base.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 ..functionbase import SSAFunctionBase
import copy
class BaseJump(SSAFunctionBase):
def __init__(self, parent, arguments=()):
super(BaseJump, self).__init__(parent,arguments)
def replaceBlocks(self, blockDict):
assert(not self.getSuccessors())
def getNormalSuccessors(self): return []
def getExceptSuccessors(self): return []
def getSuccessors(self): return self.getNormalSuccessors() + self.getExceptSuccessors()
def getSuccessorPairs(self): return [(x,False) for x in self.getNormalSuccessors()] + [(x,True) for x in self.getExceptSuccessors()]
def reduceSuccessors(self, pairsToRemove): return self
def clone(self): return copy.copy(self) #overriden by classes which need to do a deep copy
© 2015 - 2025 Weber Informatics LLC | Privacy Policy