(var, block, func_ir)
Remove all statements with given variable from the block
Remove all statements with given variable from the block
Remove all statements with given variable from the block
def remove_var(var, block, func_ir):
    """
    Remove all statements with given variable from the block
    """

    for stmt in find_usage(var, block):
        block.remove(stmt)

    del func_ir._definitions[var.name]
def remove_var ( var , block , func_ir ) : for stmt in find_usage ( var , block ) : block . remove ( stmt ) del func_ir . _definitions [ var . name ]