Question 4
Consider the generalized computation given below:
1. R[0] ← M[0]
2. R[1] ← M[1]
3. R[2] = R[1] - R[0]
4. If R[2] != 0, set R[1] = R[1] + 2 and go back to step 3. Otherwise, go to step 5.
5. R[2] = R[0] + R[1]
6. M[2] ← R[2]
For which value of M[0] and M[1], the computation will enter into an infinite loop?
M[0] = 5, M[1] = 3
M[0] = 7, M[1] = 3
M[0] = 8, M[1] = 2
M[0] = 10, M[1] = 3