human
Complete this python program:
def get_name_var_table(blocks):
assistant
#Here is the Python program you requested.

    """create a mapping from variable names to their ir.Var objects
    """
    def get_name_var_visit(var, namevar):
        namevar[var.name] = var
        return var
    namevar = {}
    visit_vars(blocks, get_name_var_visit, namevar)
    return namevar