Question
Official answer and solution
- Official answer
- A
- From
- Official GATE 2026 answer key
Solution
Compute and for each basic block and iterate the backward data-flow equations and .
For each block , let be variables used before definition and be variables defined:
- (
a = b + c): , - (
d = a + e): , - (
e = a + f): , - (
g = d + e): ,
Backward live-variable equations:
- .
- .
- Since initially has , contains , which gives .
- Because is the successor of , , which propagates to .
- Consequently, .
Thus the fixed-point sets are: , , , .
Final answer
Option (A)
Common trap
Forgetting to propagate around the loop .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 45 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.