topLevel.accept(new FlatVisitor() { public void visitNode(FlatNode node) { flatNodes.add(node); } }, null, true);
    public void scheduleAndFlattenGraph()     {	executionCounts = SIRScheduler.getExecutionCounts(topLevelSIR);	PartitionDot.printScheduleGraph(topLevelSIR, 					SpaceDynamicBackend.makeDotFileName("schedule", topLevelSIR), 					executionCounts);				createExecutionCounts();	dumpFlatGraph();	//update the flatnodes of this SSG list	topLevel.accept(new FlatVisitor() {		public void visitNode(FlatNode node) 		{		    flatNodes.add(node);		}	    }, null, true);    }