

def optimization_pass(node):
    '\n    Does a single optimization pass.\n    Returns (changes, ast). The number of changes\n    should converge to 0 with enough passes.\n    '
    info = {
        'c': 0,
    }
    func = partial(optimization_func, info)
    patterns = optimization_patterns()
    node = tile(node, patterns, func)
    return (info['c'], node)

dataset/ETHPy150Open armon/pypred/pypred/optimizer.py optimization_pass/original