


product>sum>product> vs Criterion <9, sum>product>sum>product> vs Criterion <9, sum>product>sum>n>Input: n = 1, c1 is true, c2 is true
Execution History: 1, 2, 3, 4, 5, 6, 9, 2, 10
Criterion: <1, 10, z>
Input: n = 1, c1 is true, c2 is true
Execution History: 1, 2, 3, 4, 5, 6, 9, 2, 10
Criterion: <1, 10, z>
Criterion: <10, z>
Input: n = 2, c1 is true, c2 is false on 1st iteration, true on 2nd
Execution History: 1, 2, 3, 4, 9, 2, 3, 4, 5, 6, 9, 2,10
Criterion: <1, 10, z>
Input: n = 2, c1 is true, c2 is false on 1st iteration, true on 2nd
Execution History: 1, 2, 3, 4, 9, 2, 3, 4, 5, 6, 9, 2,10
Criterion: <1, 10, z>
Input: n = 1, c1 is true, c2 is true
Execution History: 1, 2, 3, 4, 5, 6, 9, 2, 10
Criterion: <1, 10, z>
Input: n = 1, c1 is true, c2 is true
Execution History: 1, 2, 3, 4, 5, 6, 9, 2, 10
Criterion: <1, 10, z>