3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix regression on push/pop

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-01 14:37:58 -07:00
parent 89f0319043
commit 75c114feab
3 changed files with 2 additions and 3 deletions

View file

@ -136,6 +136,7 @@ namespace opt {
m_wth = s.ensure_wmax_theory();
}
maxsmt_solver_base::scoped_ensure_theory::~scoped_ensure_theory() {
//m_wth->reset_local();
}
smt::theory_wmaxsat& maxsmt_solver_base::scoped_ensure_theory::operator()() { return *m_wth; }

View file

@ -143,11 +143,9 @@ namespace opt {
void context::push() {
m_scoped_state.push();
m_solver->push();
}
void context::pop(unsigned n) {
m_solver->pop(n);
for (unsigned i = 0; i < n; ++i) {
m_scoped_state.pop();
}