Assignment 1

Handed out: January 22, 2008

Due date: January 31, 2008

  1. (Control flow analysis) Given the following control flow graph: (a) compute the dominator sets and construct the dominator tree; (b) identify the loops using the dominator information; (c) is this control flow graph reducible?; and (d) if the graph is reducible, compute the reverse postordering of the nodes and use it to identify the loops.

  2. (Data flow analysis) For each of the problems listed below provide the following: the lattice values, meet operator, top and bottom elements, the partial order relation, pictorial representation of the partial order, the transfer functions, and the data flow equations.