Consider the control flow graph shown. Which one of the following choices…

GATE · 2023 · CS · Computer Science & IT

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?

  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}

Attempted by 87 students.

Show answer

Correct answer: D

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…