Why are people saying that answer is 0 in the above comments ? I am getting answer as 4.
In the below mentioned GATE 2016 question, the answer is 10 including the temporary variables. My doubt is if the number of temporary variables had to be considered as 0 then the answer should have been 5 right and not 10 considering the fact that we have to convert this code segment in to SSA form.
Consider the following code segment.
x = u - t;
y = x * v;
x = y + w;
y = t - z;
y = x * y;
The minimum number of total variables required to convert the above code segment to static single assignment form is ?
Somebody please provide a clear understanding on this.