System.out.println ("$" + index + " = " + sched.getWorkFunc());
System.out.println ("$" + index + " = " + sched.getStream().getObject() + "." + sched.getWorkFunc());
    void computeSize (Object s, boolean top)    {        if (sizeMap.get(s) != null)         {            //System.out.print (".");            return;        }                int index = sizeMap.size ();                sizeMap.put(s,getInteger(index));        if (s instanceof Schedule)        {            Schedule sched = (Schedule) s;            ASSERT (sched.getNumReps() == 1);            if (sched.isBottomSchedule())             {                usefulSet.add (sched);                //System.out.print("X");                System.out.println ("$" + index + " = " + sched.getWorkFunc());                if (top) totalSize++;                return;            }                        int size = 0;            Integer lastIndx = null;            int nSched;                        boolean useful = false;                        HashMap pos2phase = new HashMap ();                        for (nSched = 0; nSched < sched.getNumPhases();nSched++)            {                Object next = sched.getSubSched (nSched);                computeSize (next, top && sched.getNumPhases () == 1);                                Integer pIdx = (Integer)sizeMap.get(next);                ASSERT (pIdx);                pos2phase.put(getInteger(nSched), pIdx);                                if (!useful && usefulSet.contains(next))                 {                    useful = true;                    usefulSet.add (sched);                }            }                        {                Integer other = (Integer)sizeMap.get(pos2phase);                if (other != null)                {                    sizeMap.put (s,other);                    System.out.println ("$" + index + " = $" + other.intValue());                    return;                } else {                    sizeMap.put(pos2phase, getInteger (index));                }            }                    System.out.print ("$" + index + " = ");                    int reps = 0;            for (nSched = 0; useful && nSched < sched.getNumPhases(); nSched++)            {                Object next = sched.getSubSched (nSched);                                Integer nextIndx = (Integer) sizeMap.get(next);                                if (nextIndx != lastIndx && reps != 0)                {                    System.out.print ("{");                    if (reps > 1) System.out.print (reps + " ");                    System.out.print ("$" + lastIndx.intValue() + "}");                    reps = 0;                }                                if (lastIndx != nextIndx)                 {                    size++;                }                lastIndx = nextIndx;                                reps++;            }                        if (lastIndx != null)            {                System.out.print ("{");                if (reps > 1) System.out.print (reps + " ");                System.out.println ("$" + lastIndx.intValue() + "}");            } else {                System.out.println ("{}");            }                                    if (size > 1)                 totalSize += size;        }    }