GATE CS 2023 · Question 37 · Compiler Design · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the control flow graph shown.
Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?

- (A) B1: {}, B2: {a}, B3: {a}, B4: {a}
- (B) B1: {i, j}, B2: {a}, B3: {a}, B4: {i}
- (C) B1: {a, i, j}, B2: {a, i, j}, B3: {a, i}, B4: {a}
- (D) B1: {a, i, j}, B2: {a, j}, B3: {a, j}, B4: {a, i, j}
Answer
Answer (D)
Answer from the official GATE CS 2023 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes