Induction variables and loops

Compilers can rewrite loops to avoid expensive calculations