Consider the following expression
Which one of the following corresponds to a static single assignment from the above expressions
x1 = a - b y1 = p * c x2 = u * v y2 = p + q
x 1 = a - b y1 = x2 * c x3 = u * v y2 = x4 + y3
x1 = a - b y2 = x1 * c x2 = u * v y3 = x2 + y2
p = a - b q = p * c p = u * v q = p + q
Explanation: According to Static Single Assignment
- A variable cannot be used more than once in the LHS.
- A variable should be initialized atmost once.
So, only option (C) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.