CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following intermediate code segment in 3-address code form :
x=x ∗ x
y=y ∗ y
x=x ∗ y
y=y ∗ x

The minimum number of total variables in the static single assignment form of the given code segment is _____________

A
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C 6
The SSA from of the given code segment is :

x1=x0 x0
y1=y0 y0
x2=x1 y1
y2=y1 x2


So, total 6 variable(x0, y0, x1, x2, y1, y2).

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Encoding and Decoding
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon