bc: simplify use of "ip" in loop parsing functions