Assume that ADD x, y, z; denotes x ← y + z, SUB x, y, z; x ← y – z and MUL x, y, z; denotes x ← y ∗ z. Consider the following assembly code.
I1: SUB R1,R2,R3
I2:ADD R2,R1 R3
I3:ADD R3 R1 R2
I4:SUB R1 R2 R2
Find the number of RAW dependencies in the above assembly code.
a. 2
b. 5
c. 3
d. 6