unroll loops and track them