3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00

fix(datatype): always use root nodes for the parent table

This commit is contained in:
Simon Cruanes 2018-04-03 18:30:09 -05:00
parent e535cad480
commit 433f487ff2

View file

@ -424,7 +424,7 @@ namespace smt {
SASSERT(d->m_constructor);
if (app != d->m_constructor)
m_used_eqs.push_back(enode_pair(app, d->m_constructor));
bool found = m_parent.find(app, app_parent);
bool found = m_parent.find(app->get_root(), app_parent);
SASSERT(found);
app = app_parent;
}
@ -455,7 +455,7 @@ namespace smt {
}
// explore `arg` (with parent `app`)
if (m_util.is_datatype(get_manager().get_sort(arg->get_owner()))) {
m_parent.insert(arg, app);
m_parent.insert(arg->get_root(), app);
oc_push_stack(arg);
}
}