3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

convert seg fault to assertion violation #3456

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-21 18:11:04 -07:00 committed by Lev Nachmanson
parent b964976b3f
commit 4b8a063996

View file

@ -555,6 +555,8 @@ bool emonics::invariant() const {
std::function<bool(lpvar, unsigned)> find_index = [&,this](lpvar v, unsigned idx) {
cell* c = m_use_lists[v].m_head;
cell* c0 = c;
if (!c)
return false;
bool found = false;
do {
found |= c->m_index == idx;