Skip to content

Commit

Permalink
Move out equality use out of the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jul 4, 2022
1 parent 0353fc3 commit 71fc83c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/smt/theory_datatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,12 @@ namespace smt {
if (aarg->get_root() == child->get_root()) {
if (aarg != child)
m_used_eqs.push_back(enode_pair(aarg, child));
if (sibling != arg)
m_used_eqs.push_back(enode_pair(arg, sibling));
found = true;
}
}
if (sibling && sibling != arg)
m_used_eqs.push_back(enode_pair(arg, sibling));

}
}
VERIFY(found);
Expand Down

0 comments on commit 71fc83c

Please sign in to comment.