Skip to content

Commit

Permalink
fix #6996
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 17, 2023
1 parent 36382cc commit 1b6c7d6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/qe/mbp/mbp_arith.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,14 @@ namespace mbp {
extract_coefficients(mbo, eval, ts0, tids, coeffs);
mbo.add_divides(coeffs, c0, mul1);
}
else
else if (a.is_to_real(t))
throw default_exception("mbp to-real");
else if (a.is_to_int(t))
throw default_exception("mbp to-int");
else {
TRACE("qe", tout << "insert mul " << mk_pp(t, m) << "\n");
insert_mul(t, mul, ts);
}
}

bool is_numeral(expr* t, rational& r) {
Expand Down Expand Up @@ -387,8 +393,7 @@ namespace mbp {
return false;
};

for (auto& kv : tids) {
expr* e = kv.m_key;
for (auto& [e, v] : tids) {
if (is_arith(e) && !is_pure(e) && !var_mark.is_marked(e))
mark_rec(fmls_mark, e);
}
Expand Down

0 comments on commit 1b6c7d6

Please sign in to comment.