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:
parent
89f0319043
commit
75c114feab
3 changed files with 2 additions and 3 deletions
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue