• retagged by
1,012 views

1 Answer

0 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

• edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
1.7k
1.7k views
minal asked Jan 22, 2019
1,741 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 1 vote
2 2 answers
1.1k
1.1k views
A_i_$_h asked Sep 7, 2017
1,060 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 10 votes
1 answers 1 answer
10.1k
10.1k views
atul_21 asked Jul 9, 2017
10,079 views
Consider the following code segment$a=b-c$$d=a+d$$a=d+e$$d=c*f$$d=a*d$The minimum number of total variables required to convert the above code segment to static single as...
1 1 vote
1 answers 1 answer
802
802 views
atul_21 asked Jul 8, 2017
802 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 + ...