Skip to content

Commit

Permalink
take dependencies from open_ml
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <[email protected]>
  • Loading branch information
levnach committed Feb 11, 2025
1 parent 3fcc5a2 commit d439073
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/math/lp/dioph_eq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,7 @@ namespace lp {
u_dependency* explain_fixed_in_meta_term(const lar_term& t) {
u_dependency* dep = nullptr;

for (const auto& p: t) {
lar_term const& term = lra.get_term(p.j());
for (const auto& q: term) {
if (is_fixed(q.j()))
dep = lra.mk_join(dep, lra.get_bound_constraint_witnesses_for_column(q.j()));
}
for (const auto& p: open_ml(t)) {
if (is_fixed(p.j()))
dep = lra.mk_join(dep, lra.get_bound_constraint_witnesses_for_column(p.j()));
}
Expand Down Expand Up @@ -692,13 +687,13 @@ namespace lp {
mpq t;
for (const auto& p : m_e_matrix.m_rows[row_index]) {
t = abs(p.coeff());
if (first || t < ahk || (t == ahk && p.var() < k)) { // tre last condition is for debug
if (first || t < ahk || (t == ahk && p.var() < k)) { // the last condition is for debug
ahk = t;
k_sign = p.coeff().is_pos() ? 1 : -1;
k = p.var();
first = false;
// if (ahk.is_one()) // uncomment later
// break;
if (ahk.is_one())
break;
}
}

Expand Down

0 comments on commit d439073

Please sign in to comment.