3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-04-27 09:30:00 -07:00
parent d731ec7cba
commit 78571b9a51

View file

@ -703,9 +703,11 @@ namespace dt {
}
bool solver::add_dep(euf::enode* n, top_sort<euf::enode>& dep) {
theory_var v = n->get_th_var(get_id());
if (!is_datatype(n->get_expr()))
return true;
theory_var v = n->get_th_var(get_id());
if (v == euf::null_theory_var)
return true;
euf::enode* con = m_var_data[m_find.find(v)]->m_constructor;
if (con->num_args() == 0)
dep.insert(n, nullptr);