* is not depending on some random solvable order */
na = id2str(pool, sa->name);
nb = id2str(pool, sb->name);
- /* bring patterns to the front */
- /* XXX: no longer needed? */
- if (!strncmp(na, "pattern:", 8))
- {
- if (strncmp(nb, "pattern:", 8))
- return -1;
- }
- else if (!strncmp(nb, "pattern:", 8))
- {
- if (strncmp(na, "pattern:", 8))
- return 1;
- }
return strcmp(na, nb);
}
/* the same name, bring installed solvables to the front */
Solvable *s;
Pool *pool = solv->pool;
Id p, *dp;
+ int minimizationsteps;
IF_POOLDEBUG (SAT_DEBUG_RULE_CREATION)
{
* with step 1
*/
+ minimizationsteps = 0;
for (;;)
{
/*
p = solv->branches.elements[lasti];
solv->branches.elements[lasti] = 0;
POOL_DEBUG(SAT_DEBUG_STATS, "minimizing %d -> %d with %s\n", solv->decisionmap[p], l, solvable2str(pool, pool->solvables + p));
+ minimizationsteps++;
level = lastl;
revert(solv, level);
}
break;
}
- POOL_DEBUG(SAT_DEBUG_STATS, "solver statistics: %d learned rules, %d unsolvable\n", solv->stats_learned, solv->stats_unsolvable);
+ POOL_DEBUG(SAT_DEBUG_STATS, "solver statistics: %d learned rules, %d unsolvable, %d minimization steps\n", solv->stats_learned, solv->stats_unsolvable, minimizationsteps);
POOL_DEBUG(SAT_DEBUG_STATS, "done solving.\n\n");
queue_free(&dq);