mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
chore(datatype): small improvements
This commit is contained in:
parent
fa10e510bb
commit
e535cad480
|
@ -393,7 +393,7 @@ namespace smt {
|
||||||
for (int v = 0; v < num_vars; v++) {
|
for (int v = 0; v < num_vars; v++) {
|
||||||
if (v == static_cast<int>(m_find.find(v))) {
|
if (v == static_cast<int>(m_find.find(v))) {
|
||||||
enode * node = get_enode(v);
|
enode * node = get_enode(v);
|
||||||
if (occurs_check(node)) {
|
if (!oc_cycle_free(node) && occurs_check(node)) {
|
||||||
// conflict was detected...
|
// conflict was detected...
|
||||||
// return...
|
// return...
|
||||||
return FC_CONTINUE;
|
return FC_CONTINUE;
|
||||||
|
|
|
@ -104,8 +104,8 @@ namespace smt {
|
||||||
theory_datatype * th;
|
theory_datatype * th;
|
||||||
public:
|
public:
|
||||||
final_check_st(theory_datatype * th) : th(th) {
|
final_check_st(theory_datatype * th) : th(th) {
|
||||||
th->m_to_unmark2.reset();
|
|
||||||
th->m_to_unmark.reset();
|
th->m_to_unmark.reset();
|
||||||
|
th->m_to_unmark2.reset();
|
||||||
th->m_used_eqs.reset();
|
th->m_used_eqs.reset();
|
||||||
th->m_stack.reset();
|
th->m_stack.reset();
|
||||||
th->m_parent.reset();
|
th->m_parent.reset();
|
||||||
|
@ -115,6 +115,7 @@ namespace smt {
|
||||||
unmark_enodes2(th->m_to_unmark2.size(), th->m_to_unmark2.c_ptr());
|
unmark_enodes2(th->m_to_unmark2.size(), th->m_to_unmark2.c_ptr());
|
||||||
th->m_to_unmark.reset();
|
th->m_to_unmark.reset();
|
||||||
th->m_to_unmark2.reset();
|
th->m_to_unmark2.reset();
|
||||||
|
th->m_used_eqs.reset();
|
||||||
th->m_stack.reset();
|
th->m_stack.reset();
|
||||||
th->m_parent.reset();
|
th->m_parent.reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue