GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2023

GATE 2023 · CS · MCQ · 2 marks · Compiler Design › Code Optimization

GATE 2023 Computer Science and Information Technology question: Consider the control flow graph shown. Which one of the following choices correctly…

Consider the control flow graph shown.

figure

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, j}, B3: {a, j}, B4: {a, i, j}

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion