GATE CS 2026, set 1 · Question 42 · Compiler Design · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the control flow graph shown in the 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.

- (A) B4: { b + i }
B5: { c + m } - (B) B4: { g * k }
B5: { c + m } - (C) B4: { g * k, b + i }
B5: { } - (D) B4: { g * k }
B5: { }
Answer
Answer (D)
Answer from the official GATE CS 2026 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes