int[] num = { ((SchedRepSchedule)initSched.get(i)). getTotalExecutions().intValue(), ((SchedRepSchedule)steadySched.get(i)). getTotalExecutions().intValue() };
int[] num = new int[2];    if (initSched.size()>i) { num[0] = ((SchedRepSchedule)initSched.get(i)). getTotalExecutions().intValue(); } else { num[0] = 0; }  if (steadySched.size()>i) { num[1] = ((SchedRepSchedule)steadySched.get(i)). getTotalExecutions().intValue(); } else { num[1] = 0; }
    private static List makeFilterInfo(List filterList) {	// make the result	List result = new LinkedList();	// construct a schedule for <filterList>	Schedule schedule = getSchedule(filterList);	// get the schedules	List initSched = schedule.getInitSchedule();	List steadySched = schedule.getSteadySchedule();	// for each filter...	ListIterator it = filterList.listIterator();	for (int i=0; it.hasNext(); i++) {	    // the filter	    SIRFilter filter = (SIRFilter)it.next();	    // the peek buffer	    JVariableDefinition peekBufferVar = 		new JVariableDefinition(null,					at.dms.kjc.Constants.ACC_FINAL,					new CArrayType(filter.getInputType(), 						       1 /* dimension */ ),					PEEK_BUFFER_NAME + "_" + i,					null);	    JFieldDeclaration peekBuffer = new JFieldDeclaration(null,								 peekBufferVar,								 null,								 null);	    	    // number of executions (num[0] is init, num[1] is steady)	    int[] num = { ((SchedRepSchedule)initSched.get(i)).			  getTotalExecutions().intValue(),			  ((SchedRepSchedule)steadySched.get(i)).			  getTotalExecutions().intValue() };	    // get ready to make rest of phase-specific info	    JVariableDefinition popBuffer[] = new JVariableDefinition[2];	    JVariableDefinition popCounter[] = new JVariableDefinition[2];	    JVariableDefinition pushCounter[] = new JVariableDefinition[2];	    JVariableDefinition loopCounter[] = new JVariableDefinition[2];	    	    for (int j=0; j<2; j++) {		// the pop buffer		popBuffer[j] = makePopBuffer(filter, num[j], i);		// the pop counter		popCounter[j] = 		    new JVariableDefinition(null, 0, CStdType.Integer,					    POP_INDEX_NAME + "_" + j + "_" + i,					    new JIntLiteral(0));	    		// the push counter		pushCounter[j] = 		    new JVariableDefinition(null, 0, CStdType.Integer,					    PUSH_INDEX_NAME + "_" + j + "_" +i,					    new JIntLiteral(0));		// the exec counter		loopCounter[j] = 		    new JVariableDefinition(null, 0, CStdType.Integer,					    COUNTER_NAME + "_" + j + "_" +i,					    null);	    }	    // add a filter info to <result>	    result.add(new 		       FilterInfo(filter, peekBuffer, 				  new PhaseInfo(num[0], 						popBuffer[0], 						popCounter[0], 						pushCounter[0],						loopCounter[0]),				  new PhaseInfo(num[1], 						popBuffer[1],						popCounter[1], 						pushCounter[1],						loopCounter[1])				  ));	}	// return result	return result;    }