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

chore(datatype): small improvements

This commit is contained in:
Simon Cruanes 2018-04-03 12:12:09 -05:00
parent fa10e510bb
commit e535cad480
2 changed files with 3 additions and 2 deletions

View file

@ -393,7 +393,7 @@ namespace smt {
for (int v = 0; v < num_vars; v++) {
if (v == static_cast<int>(m_find.find(v))) {
enode * node = get_enode(v);
if (occurs_check(node)) {
if (!oc_cycle_free(node) && occurs_check(node)) {
// conflict was detected...
// return...
return FC_CONTINUE;

View file

@ -104,8 +104,8 @@ namespace smt {
theory_datatype * th;
public:
final_check_st(theory_datatype * th) : th(th) {
th->m_to_unmark2.reset();
th->m_to_unmark.reset();
th->m_to_unmark2.reset();
th->m_used_eqs.reset();
th->m_stack.reset();
th->m_parent.reset();
@ -115,6 +115,7 @@ namespace smt {
unmark_enodes2(th->m_to_unmark2.size(), th->m_to_unmark2.c_ptr());
th->m_to_unmark.reset();
th->m_to_unmark2.reset();
th->m_used_eqs.reset();
th->m_stack.reset();
th->m_parent.reset();
}