GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set1

GATE 2026 set1 · CS · MCQ · 2 marks · Compiler Design › Code Optimization

GATE 2026 set1 Computer Science and Information Technology question: Consider the control flow graph shown in the figure. Which one of the following options…

Consider the control flow graph shown in the figure.

figure

Which one of the following options correctly lists the set of redundant expressions (common subexpressions) in the basic blocks B4 and B5?

Note: All the variables are integers.

  1. (A)

    B4: { }
    B5: { }

  2. (B)

    B4: { }
    B5: { }

  3. (C)

    B4: { }
    B5: { }

  4. (D)

    B4: { }
    B5: { }

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion