3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

clear cache for crash

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-06 19:03:37 -07:00
parent 904ab4bf9e
commit 36816e3b2f
2 changed files with 3 additions and 7 deletions

View file

@ -1221,6 +1221,7 @@ namespace pdr {
remove_node(*m_root, false);
dealloc(m_root);
m_root = 0;
m_cache.reset();
}
}

View file

@ -557,17 +557,12 @@ public:
}
virtual void cleanup() {
imp * d = m_imp;
imp * d = alloc(imp, m, m_params, m_stats);
#pragma omp critical (tactic_cancel)
{
d = m_imp;
std::swap(d, m_imp);
}
dealloc(d);
d = alloc(imp, m, m_params, m_stats);
#pragma omp critical (tactic_cancel)
{
m_imp = d;
}
}
virtual void collect_statistics(statistics & st) const {