Just wanting to generate the minimal code - `r.front` is only accessed once in the loop so inlining that access seems to be the most direct way of making the point.