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

fix #3235 - return early during lookaehad, avoid checking invariant when context is inconsistent

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-11 10:55:56 -07:00
parent 59acd1093d
commit 36cddd0c46
3 changed files with 24 additions and 17 deletions

View file

@ -1457,7 +1457,7 @@ namespace smt {
m_diseq_watch_lim.shrink(m_diseq_watch_lim.size()-num_scopes);
#endif
theory::pop_scope_eh(num_scopes);
TRACE("bv", m_find.display(tout << get_context().get_scope_level() << " - "
TRACE("bv_verbose", m_find.display(tout << get_context().get_scope_level() << " - "
<< num_scopes << " = " << (get_context().get_scope_level() - num_scopes) << "\n"););
}
@ -1888,6 +1888,8 @@ namespace smt {
}
bool theory_bv::check_invariant() {
if (get_context().inconsistent())
return true;
unsigned num = get_num_vars();
for (unsigned v = 0; v < num; v++) {
check_assignment(v);