File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1348,7 +1348,7 @@ namespace lp {
13481348 // Look up j in columns_to_terms map
13491349 auto it = m_columns_to_terms.find (j);
13501350 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 () ));
13521352 }
13531353 return weight;
13541354 }
@@ -1371,7 +1371,7 @@ namespace lp {
13711371 // Sort by term_weight descending
13721372 std::sort (sorted_changed_terms.begin (), sorted_changed_terms.end (),
13731373 [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) );
13751375 });
13761376
13771377 lia_move r = lia_move::undef;
@@ -1603,8 +1603,8 @@ namespace lp {
16031603 }
16041604
16051605 lia_move process_f () {
1606- while (rewrite_eqs ()) {
1607- }
1606+ while (rewrite_eqs ()) {}
1607+
16081608 if (m_conflict_index != UINT_MAX) {
16091609 lra.stats ().m_dio_rewrite_conflicts ++;
16101610 return lia_move::conflict;
You can’t perform that action at this time.
0 commit comments