File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -624,12 +624,7 @@ namespace lp {
624
624
u_dependency* explain_fixed_in_meta_term (const lar_term& t) {
625
625
u_dependency* dep = nullptr ;
626
626
627
- for (const auto & p: t) {
628
- lar_term const & term = lra.get_term (p.j ());
629
- for (const auto & q: term) {
630
- if (is_fixed (q.j ()))
631
- dep = lra.mk_join (dep, lra.get_bound_constraint_witnesses_for_column (q.j ()));
632
- }
627
+ for (const auto & p: open_ml (t)) {
633
628
if (is_fixed (p.j ()))
634
629
dep = lra.mk_join (dep, lra.get_bound_constraint_witnesses_for_column (p.j ()));
635
630
}
@@ -692,13 +687,13 @@ namespace lp {
692
687
mpq t;
693
688
for (const auto & p : m_e_matrix.m_rows [row_index]) {
694
689
t = abs (p.coeff ());
695
- if (first || t < ahk || (t == ahk && p.var () < k)) { // tre last condition is for debug
690
+ if (first || t < ahk || (t == ahk && p.var () < k)) { // the last condition is for debug
696
691
ahk = t;
697
692
k_sign = p.coeff ().is_pos () ? 1 : -1 ;
698
693
k = p.var ();
699
694
first = false ;
700
- // if (ahk.is_one()) // uncomment later
701
- // break;
695
+ if (ahk.is_one ())
696
+ break ;
702
697
}
703
698
}
704
699
You can’t perform that action at this time.
0 commit comments