Skip to content

Commit

Permalink
fix #6955
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Oct 19, 2023
1 parent 11ab583 commit 8c00181
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/qe/qsat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,25 +568,21 @@ namespace qe {
m_solver = nullptr;
}

void assert_expr(expr *e) {
if (!m.is_true(e))
m_solver->assert_expr(e);
}
void assert_expr(expr* e) {
if (!m.is_true(e))
m_solver->assert_expr(e);
}
void assert_blocking_fml(expr* e) {
if (m.is_true(e)) return;
if (m_last_assert) {
if (e == m_last_assert) {
verbose_stream() << "Asserting this expression twice in a row:\n " << m_last_assert << "\n";
SASSERT(false);
std::exit(3);
if (m.is_true(e))
return;
if (m_last_assert && e == m_last_assert && !m.is_false(e)) {
IF_VERBOSE(0, verbose_stream() << "Asserting this expression twice in a row:\n " << m_last_assert << "\n");
UNREACHABLE();
}

}
m_last_assert = e;

m_last_assert = e;
m_solver->assert_expr(e);
}

void get_core(expr_ref_vector& core) {
core.reset();
m_solver->get_unsat_core(core);
Expand Down

0 comments on commit 8c00181

Please sign in to comment.