SIRStream ss = (SIRStream)iter.next(); int i1[] = (int[])before.get(ss); int i2[] = (int[])after.get(ss);
SIROperator oper = (SIROperator)iter.next(); int i1[] = (int[])before.get(oper); int i2[] = (int[])after.get(oper);
    public static int scheduleMultAfterScaling(HashMap before, HashMap after) {	Set keySet = before.keySet();	Iterator iter = keySet.iterator();	int mult = -1;	while (iter.hasNext()) {	    SIRStream ss = (SIRStream)iter.next();	    int i1[] = (int[])before.get(ss);	    int i2[] = (int[])after.get(ss);	    if (previous_work.containsKey(ss)) {		SIRFilter f = (SIRFilter)ss;		WorkInfo info = (WorkInfo)previous_work.get(ss);		i2[0] *= info.multiple;	    }	    int ratio = i2[0] / i1[0];	    assert(i2[0] % i1[0] == 0);	    //System.out.println(ss+	    //		       " s1: "+i1[0]+	    //		       " s2: "+i2[0]+	    //		       " ratio: "+ratio);	    assert (mult == -1 || mult == ratio);	    mult = ratio;	}		assert (mult!=-1);	return mult;    }