GATE CS 2023 (Forenoon) — Question 37

Compiler DesignData Flow Analysis: Constant Propagation, Liveliness Analysis, Common Subexpression EliminationMCQ2 marks · −2/3 if wrongHard

Consider the control flow graph shown:
Question image
Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?
  1. A
    B1: { }, B2: {a}, B3: {a}, B4: {a}
  2. B
    B1: {i, j}, B2: {a}, B3: {a}, B4: {i}
  3. C
    B1: {a, i, j}, B2: {a, i, j}, B3: {a, i}, B4: {a}
  4. D
    B1: {a, i, j}, B2: {a, i, j}, B3: {a, j}, B4: {a, i, j}
Practise the full 2023-FN paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkCompilers: Principles, Techniques & ToolsThe "Dragon Book" for parsing, syntax-directed translation and code generation.
Practise more on Data Flow Analysis: Constant Propagation, Liveliness Analysis, Common Subexpression EliminationTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group