Consider the following code segment:
The minimum number of temporary variable required to convert the above code segment to static single assignment form is ________.
rahul Sharma 5 I myself have this doubt.
Please someone clear my doubt.
In SSA, we need that each variable be assigned value only once. And use temporary variables if required.
Here the given code is already in SSA. And we don't need any extra variables, or to say any "temporary" variables. So answer should be 0.
In case if it asked for total numer of variables, then the answer should be non-zero.
Yes, @Rishabh Gupta 2 .
Given 3-Address Code is Already in SSA Form, hence, we need No temp variable to convert it into SSA.
I guess answer would be 0, because the above code is already in Static single assignment form.
Refer to this links.