511 views

1 Answer

4 4 votes

$d_{1} = a_{1} + b_{1}$

$e_{1} = a_{1} - b_{1}$

$f_{1} = c_{1} + d_{1}$

$g_{1} = c_{1} - e_{1}$

$a_{2} = f_{1} + g_{1}$

$b_{2} = f_{1} - g_{1}$

$c_{2} = d_{1} + e_{1}$

 

So, variables used : $a_{1}, a_{2}, b_{1}, b_{2}, c_{1}, c_{2}, d_{1}, e_{1}, f_{1}, g_{1}$

Total 10 variables are required to convert given code into static single assignment form.

• edited by
Position:
Show:

Related questions

3 3 votes
0 0 answers
2.1k
2.1k views
shreyansh jain asked Dec 26, 2018
2,088 views
Consider the following code segment:$c=b+a$$e=c-a$$f=c*e$$h=c+a$$i=h+f$The minimum number of temporary variable required to convert the above code segment to static singl...
1 1 vote
1 1 answer
1.9k
1.9k views
jatin khachane 1 asked Nov 23, 2018
1,890 views
X = A / bY = C + DY = Y - XX = D + YZ = F + YZ = Z + AMInimum number of total variables needed to convert above TAC to Static Single AssignmentAnswer given ==>11My appora...
1 1 vote
0 0 answers
3.7k
3.7k views
Heena Jain asked Nov 14, 2018
3,740 views
What is the Static Single Assignment (SSA) form for the following code segment:a = b+c;c = a+x;d = b+c;d = a+x;Should we use only 1 temporary variable for c=a+x and d=a+x...
2 2 votes
0 0 answers
707
707 views