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

fix #3906 by fixing a regression from today

This commit is contained in:
Arie Gurfinkel 2020-04-11 00:18:25 -04:00
parent 136b0b23ce
commit ae5a713e81

View file

@ -496,13 +496,17 @@ namespace {
SASSERT(m_todo.empty());
if (m_visited.is_marked(e) || !is_app(e)) return;
// -- keep track of all created expressions to
// -- make sure that expression ids are stable
expr_ref_vector pinned(m);
m_todo.reset();
m_todo.push_back(e);
while(!m_todo.empty()) {
e = m_todo.back();
pinned.push_back(m_todo.back());
m_todo.pop_back();
if (!is_app(e)) continue;
app* a = to_app(e);
if (!is_app(pinned.back())) continue;
app* a = to_app(pinned.back());
process_app(a, out);
m_visited.mark(a, true);
}