All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.Krakatau.ssa.ssa_jumps.base.py Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
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