First attempt at c for loop induction variable cleanup