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

PYQ GATE 2023

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 110 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…