3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-19 15:19:01 +00:00

fix bugs related to backtracking and restarts

This commit is contained in:
Simon Cruanes 2017-12-14 20:17:11 +01:00
parent b877bd8286
commit 0c753aa86a

View file

@ -111,6 +111,8 @@ namespace smt {
void theory_recfun::reset_eh() {
m_trail.reset();
reset_queues();
m_stats.reset();
theory::reset_eh();
}
/*
@ -135,15 +137,16 @@ namespace smt {
}
void theory_recfun::pop_scope_eh(unsigned num_scopes) {
DEBUG("pop_scope");
DEBUG("pop_scope " << num_scopes);
m_trail.pop_scope(num_scopes);
theory::pop_scope_eh(num_scopes);
reset_queues();
}
void theory_recfun::restart_eh() {
m_trail.reset();
DEBUG("restart");
reset_queues();
theory::restart_eh();
}
bool theory_recfun::can_propagate() {