3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-10 03:03:39 -07:00
parent b1b77e57e1
commit 61fb134653
4 changed files with 25 additions and 18 deletions

View file

@ -735,7 +735,7 @@ namespace qe {
bool solve(conj_enum& conjs, expr* fml) {
expr_ref_vector eqs(m);
extract_equalities(conjs, eqs);
return reduce_equations(eqs.size(), eqs.c_ptr(), fml);
return reduce_equations(eqs, fml);
}
// ----------------------------------------------------------------------
@ -934,9 +934,9 @@ namespace qe {
// Linear equations eliminate original variables and introduce auxiliary variables.
//
bool reduce_equations(unsigned num_eqs, expr * const* eqs, expr* fml) {
for (unsigned i = 0; i < num_eqs; ++i) {
if (reduce_equation(eqs[i], fml)) {
bool reduce_equations(expr_ref_vector const& eqs, expr* fml) {
for (expr* eq : eqs) {
if (reduce_equation(eq, fml)) {
return true;
}
}
@ -1077,7 +1077,7 @@ namespace qe {
m_replace.apply_substitution(x, p1, result);
simplify(result);
m_ctx.elim_var(index-1, result, p1);
TRACE("qe", tout << "Reduced: " << mk_pp(result, m) << "\n";);
TRACE("qe", tout << "Reduced " << index-1 << " : " << result << "\n";);
return true;
}