Merge branch 'tuner' of ssh://demsky.eecs.uci.edu/home/git/constraint_compiler into...
authorHamed Gorjiara <hgorjiar@uci.edu>
Wed, 17 Oct 2018 22:34:10 +0000 (15:34 -0700)
committerHamed Gorjiara <hgorjiar@uci.edu>
Wed, 17 Oct 2018 22:34:10 +0000 (15:34 -0700)
1  2 
src/Tuner/multituner.cc

@@@ -274,14 -274,14 +274,14 @@@ void MultiTuner::tuneComp() 
                                int tscore = 0;
                                if (scores.contains(t))
                                        tscore = scores.get(t);
-                               if (score < tscore)
+                               if (score > tscore)
                                        break;
                        }
 -                      DEBUG("ranking[%u]=tuner<%p>(Score=%d)\n", j, tuner, score);
 -                      DEBUG("************************\n");
 +                      LOG("ranking[%u]=tuner<%p>(Score=%d)\n", j, tuner, score);
 +                      LOG("************************\n");
                        ranking.insertAt(j, tuner);
                }
 -              DEBUG("tunerSize=%u\trankingSize=%u\ttunerVSize=%u\n", tuners.getSize(), ranking.getSize(), tunerV->getSize());
 +              LOG("tunerSize=%u\trankingSize=%u\ttunerVSize=%u\n", tuners.getSize(), ranking.getSize(), tunerV->getSize());
                for (uint i = tuners.getSize(); i < ranking.getSize(); i++) {
                        TunerRecord *tuner = ranking.get(i);
                        model_print("Removing tuner %u\n", tuner->tunernumber);