Code contract slicing with loops.