File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ void SplitterStep::computeFollowupSteps(
188
188
// want to have smaller/faster components at the back of the list.
189
189
std::sort (componentSteps.begin (), componentSteps.end (),
190
190
[](const ComponentStep *lhs, const ComponentStep *rhs) {
191
- return lhs > rhs;
191
+ return lhs-> disjunctionCount () > rhs-> disjunctionCount () ;
192
192
});
193
193
}
194
194
Original file line number Diff line number Diff line change @@ -361,9 +361,8 @@ class ComponentStep final : public SolverStep {
361
361
StepResult take (bool prevFailed) override ;
362
362
StepResult resume (bool prevFailed) override ;
363
363
364
- bool operator >(const ComponentStep *other) const {
365
- return NumDisjunctions > other->NumDisjunctions ;
366
- }
364
+ // The number of disjunction constraints associated with this component.
365
+ unsigned disjunctionCount () const { return NumDisjunctions; }
367
366
368
367
void print (llvm::raw_ostream &Out) override {
369
368
Out << " ComponentStep with at #" << Index << ' \n ' ;
You can’t perform that action at this time.
0 commit comments