@@ -2292,25 +2292,8 @@ Constraint *ConstraintSystem::selectDisjunction() {
2292
2292
auto minDisjunction =
2293
2293
std::min_element (disjunctions.begin (), disjunctions.end (),
2294
2294
[&](Constraint *first, Constraint *second) -> bool {
2295
- unsigned firstFavored = first->countFavoredNestedConstraints ();
2296
- unsigned secondFavored = second->countFavoredNestedConstraints ();
2297
-
2298
- if (firstFavored == secondFavored) {
2299
- // Look for additional choices to favor
2300
- SmallVector<Constraint *, 4 > firstExisting;
2301
- SmallVector<Constraint *, 4 > secondExisting;
2302
-
2303
- existingOperatorBindingsForDisjunction (*cs, first->getNestedConstraints (), firstExisting);
2304
- firstFavored = firstExisting.size () ?: first->countActiveNestedConstraints ();
2305
- existingOperatorBindingsForDisjunction (*cs, second->getNestedConstraints (), secondExisting);
2306
- secondFavored = secondExisting.size () ?: second->countActiveNestedConstraints ();
2307
-
2308
- return firstFavored < secondFavored;
2309
- } else {
2310
- firstFavored = firstFavored ?: first->countActiveNestedConstraints ();
2311
- secondFavored = secondFavored ?: second->countActiveNestedConstraints ();
2312
- return firstFavored < secondFavored;
2313
- }
2295
+ return first->countActiveNestedConstraints () <
2296
+ second->countActiveNestedConstraints ();
2314
2297
});
2315
2298
2316
2299
if (minDisjunction != disjunctions.end ())
0 commit comments