What is the result of following intermediate code after eliminating local common subexpression?

Given code :

t6 =  4 * i

x = a[t6]

t7 = 4 * i

t8 = 4 * j

t9 = a[t8]

a[t7] = t9

t10 = 4 * j

a[t10] = x

go to L

1

t6 = 4* i

x = a[t6]

t8 = 4 *j

t9 = a[t8]

a[t6] = t9

a[t8] = x

Go to L

2

t6 = 4* i

x = a[t7]

t8 = 4 *j

t9 = a[t8]

a[t7] = t9

a[t8] = x

Go to L

3

t6 = 4* i

x = a[t6]

t7 = 4 *j

t9 = a[t7]

a[t7] = t9

a[t9] = x

Go to L

4
None of these

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation