mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
fix #5219
This commit is contained in:
parent
d731ec7cba
commit
78571b9a51
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue