private final TreeSet<AbstractIntermediate> orderedIntermediate;
private final Map<Integer, InstructionHandle> instructionHandles;
public IntermediateGraphContext(ListenableDirectedGraph<AbstractIntermediate, IntermediateEdge> graph) {
super(graph);
this.orderedIntermediate = new TreeSet<AbstractIntermediate>(new IntermediateComparator());
this.instructionHandles = new TreeMap<Integer, InstructionHandle>();
for(AbstractIntermediate ai : graph.vertexSet()) {
Integer position = ai.getInstruction().getPosition();
this.instructionHandles.put(position, ai.getInstruction());