The Gateway to Computer Science Excellence
+2 votes
62 views

Consider the following code segment:

The minimum number of temporary variable required to convert the above code segment to static single assignment form is ________.

in Compiler Design by Junior (581 points) | 62 views
0
7 variables
0

1 Answer

0 votes
p3 = p1 + p2

p4 = p3 - p2

p5 = p3 * p4

p6 = p3 + p2

p7 = p6 + p5

Therefore, total 7 temporary variables are needed.
by Active (1.8k points)

No related questions found

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,388 answers
198,576 comments
105,414 users