3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 03:07:07 +00:00

Fixed interruption cleanup bug in sat_solver. Relates to #570.

This commit is contained in:
Christoph M. Wintersteiger 2016-11-10 16:52:56 +00:00
parent d099e26342
commit 520e868add

View file

@ -237,7 +237,10 @@ namespace sat {
lbool status(clause const & c) const;
clause_offset get_offset(clause const & c) const { return m_cls_allocator.get_offset(&c); }
void checkpoint() {
if (!m_rlimit.inc()) { throw solver_exception(Z3_CANCELED_MSG); }
if (!m_rlimit.inc()) {
m_mc.reset();
throw solver_exception(Z3_CANCELED_MSG);
}
++m_num_checkpoints;
if (m_num_checkpoints < 10) return;
m_num_checkpoints = 0;