def op(name, operation, *args): global register_names register_names[current_register] = name op = [operation, reg(current_register)] op.extend(args) increment() return tuple(op)
def var(name, display_name=None): global register_names if display_name is None: display_name = str.strip(name, ":$") register_names[current_register] = display_name op = (assign, reg(current_register), name) increment() return op
def reset_all(value=-989): return lazy.block((assign, reg(r), value) for r in range(register_begin, register_end + 1))