class SimpleExceptionalGraph extends TrapUnitGraph {

  /**
   * @param body
   */
  public SimpleExceptionalGraph(Body body) {
    super(body);
    int size = unitChain.size();
    unitToSuccs = new HashMap<Unit, List<Unit>>(size * 2 + 1, 0.7f);
    unitToPreds = new HashMap<Unit, List<Unit>>(size * 2 + 1, 0.7f);
    buildUnexceptionalEdges(unitToSuccs, unitToPreds);
    buildSimpleExceptionalEdges(unitToSuccs, unitToPreds);

    buildHeadsAndTails();
  }

  protected void buildSimpleExceptionalEdges(Map<Unit, List<Unit>> unitToSuccs, Map<Unit, List<Unit>> unitToPreds) {<FILL_FUNCTION_BODY>}
}

    for (Trap trap : body.getTraps()) {
      Unit handler = trap.getHandlerUnit();
      for (Unit pred : unitToPreds.get(trap.getBeginUnit())) {
        addEdge(unitToSuccs, unitToPreds, pred, handler);
      }
    }
  
<methods>public void <init>(soot.Body) <variables>