retagged by
595 views

1 Answer

0 votes
0 votes

first convert expression into 3 address code and then assign each variableb to separate new variable.

in static single assignment form each variable is assigned to another variable.

3 address code for above expression is

t1=d*4

t2=b/9

t3=a+t2

t4=t3+c

t5=t4-t1

t6=t5+e

STATIC SINGLE ASSIGNMENT FORM IS

p1=d*4

p2=b/9

p3=a+p21

p4=p31+c

p5=p41-p11

p6=p51+e

so total 11 variables are required in ssa

Related questions

0 votes
0 votes
1 answer
1
minal asked Jan 22, 2019
900 views
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
1 votes
1 votes
2 answers
2
A_i_$_h asked Sep 7, 2017
580 views
Consider the following code segmenta= b - cd = a + da = d + ed = c * fd = a * dthe min number of total variables required to convert the above code segment to static sing...
10 votes
10 votes
1 answer
3
1 votes
1 votes
1 answer
4
atul_21 asked Jul 8, 2017
500 views
The sum of least number of temporary variables and total variables required to create a three address code in single static assignment form for the expressiona*b + c/d + ...