3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 14:23:40 +00:00
This commit is contained in:
Nikolaj Bjorner 2023-10-19 10:41:24 -07:00
parent 11ab583232
commit 8c00181815

View file

@ -573,17 +573,13 @@ namespace qe {
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_solver->assert_expr(e);
}