File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1348,7 +1348,7 @@ namespace lp {
1348
1348
// Look up j in columns_to_terms map
1349
1349
auto it = m_columns_to_terms.find (j);
1350
1350
if (it != m_columns_to_terms.end ())
1351
- weight += static_cast <unsigned >(it->second .size ());
1351
+ weight = std::max (weight, static_cast <unsigned >(it->second .size () ));
1352
1352
}
1353
1353
return weight;
1354
1354
}
@@ -1371,7 +1371,7 @@ namespace lp {
1371
1371
// Sort by term_weight descending
1372
1372
std::sort (sorted_changed_terms.begin (), sorted_changed_terms.end (),
1373
1373
[this ](unsigned j1 , unsigned j2) {
1374
- return term_weight (lra.get_term (j1 )) > term_weight (lra.get_term (j2));
1374
+ return term_weight (lra.get_term (j1 )) > term_weight (lra.get_term (j2) );
1375
1375
});
1376
1376
1377
1377
lia_move r = lia_move::undef;
@@ -1603,8 +1603,8 @@ namespace lp {
1603
1603
}
1604
1604
1605
1605
lia_move process_f () {
1606
- while (rewrite_eqs ()) {
1607
- }
1606
+ while (rewrite_eqs ()) {}
1607
+
1608
1608
if (m_conflict_index != UINT_MAX) {
1609
1609
lra.stats ().m_dio_rewrite_conflicts ++;
1610
1610
return lia_move::conflict;
You can’t perform that action at this time.
0 commit comments