def make_schedule(self, cluster, context):
    aliases = AliasMapper()
    score = 0
    exprs = cluster.exprs
    ispace = cluster.ispace
    for n in range(self._nrepeats(cluster)):
        mapper = self._extract(exprs, context, n)
        found = collect(mapper.extracted, ispace, self._opt_minstorage)
        (exprs, chosen, pscore) = choose(found, exprs, mapper, self._selector)
        aliases.update(chosen)
        score += pscore
    schedule = lower_aliases(cluster, aliases, self._in_writeto, self._opt_maxpar)
    score = (score, len(aliases))
    return SpacePoint(schedule, exprs, score)
def make_schedule(self, cluster, context):
    aliases = AliasMapper()
    score = 0
    exprs = cluster.exprs
    ispace = cluster.ispace
    for n in range(self._nrepeats(cluster)):
        mapper = self._extract(exprs, context, n)
        found = collect(mapper.extracted, ispace, self._opt_minstorage)
        (exprs, chosen, pscore) = choose(found, exprs, mapper, self._selector)
        aliases.update(chosen)
        score += pscore
    schedule = lower_aliases(cluster, aliases, self._in_writeto, self._opt_maxpar)
    score = (score, len(aliases))
    return SpacePoint(schedule, exprs, score)