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

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

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