

def replacement(self, node):
    branch = node.expr.value
    if branch:
        return (node.left if node.left else ast.Constant(False))
    else:
        return (node.right if branch.right else ast.Constant(False))

dataset/ETHPy150Open armon/pypred/pypred/optimizer.py DeadBranchPattern.replacement/VarMisuse@54/57 `node`->`branch`