And maybe variable names that better indicate their purpose.
Code:
res1 res2 inst_loop inst ???