GATE Computer ScienceModerateGATE CS (PYQ pattern)

Which of the following about iterative data-flow analyses is/are true? I. Live-variable analysis is a backward problem whose meet operator is union. II. Available-expressions analysis is a forward problem whose meet operator is intersection. III. Reaching definitions is a forward problem whose meet operator is intersection. IV. Very-busy (anticipated) expressions is a backward problem whose meet operator is intersection.

  1. A. I, II and IV only
  2. B. I, II and III only
  3. C. II, III and IV only
  4. D. I and IV only

Correct answer: A. I, II and IV only

Reaching definitions is a 'may' problem, so it uses union (III is false); available and very-busy expressions are 'must' problems and use intersection; live variables is a backward 'may' problem.

More Compiler Design questions

Exams that ask this topic