mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 21:03:39 +00:00
account for updating scoped state by goal2sat #5528
This commit is contained in:
parent
f4abe3db02
commit
e05ef8ece9
1 changed files with 5 additions and 11 deletions
|
@ -954,9 +954,11 @@ struct goal2sat::imp : public sat::sat_internalizer {
|
||||||
}
|
}
|
||||||
|
|
||||||
void user_push() {
|
void user_push() {
|
||||||
|
push();
|
||||||
}
|
}
|
||||||
|
|
||||||
void user_pop(unsigned n) {
|
void user_pop(unsigned n) {
|
||||||
|
pop(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -1011,14 +1013,6 @@ void goal2sat::operator()(goal const & g, params_ref const & p, sat::solver_core
|
||||||
m_imp->user_push();
|
m_imp->user_push();
|
||||||
}
|
}
|
||||||
(*m_imp)(g);
|
(*m_imp)(g);
|
||||||
|
|
||||||
if (!t.get_extension() && m_imp->interpreted_funs().empty()) {
|
|
||||||
dealloc(m_imp);
|
|
||||||
m_imp = nullptr;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
m_scopes = 0;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void goal2sat::get_interpreted_funs(func_decl_ref_vector& funs) {
|
void goal2sat::get_interpreted_funs(func_decl_ref_vector& funs) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue