Skip to content

Commit d439073

Browse files
committed
take dependencies from open_ml
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent 3fcc5a2 commit d439073

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/math/lp/dioph_eq.cpp

+4-9
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,7 @@ namespace lp {
624624
u_dependency* explain_fixed_in_meta_term(const lar_term& t) {
625625
u_dependency* dep = nullptr;
626626

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)) {
633628
if (is_fixed(p.j()))
634629
dep = lra.mk_join(dep, lra.get_bound_constraint_witnesses_for_column(p.j()));
635630
}
@@ -692,13 +687,13 @@ namespace lp {
692687
mpq t;
693688
for (const auto& p : m_e_matrix.m_rows[row_index]) {
694689
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
696691
ahk = t;
697692
k_sign = p.coeff().is_pos() ? 1 : -1;
698693
k = p.var();
699694
first = false;
700-
// if (ahk.is_one()) // uncomment later
701-
// break;
695+
if (ahk.is_one())
696+
break;
702697
}
703698
}
704699

0 commit comments

Comments
 (0)