summaryrefslogtreecommitdiff
path: root/src/theory/uf/theory_uf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/uf/theory_uf.cpp')
-rw-r--r--src/theory/uf/theory_uf.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/theory/uf/theory_uf.cpp b/src/theory/uf/theory_uf.cpp
index a3e347b90..4ac81bc74 100644
--- a/src/theory/uf/theory_uf.cpp
+++ b/src/theory/uf/theory_uf.cpp
@@ -397,22 +397,18 @@ void TheoryUF::ppStaticLearn(TNode n, NodeBuilder<>& learned) {
EqualityStatus TheoryUF::getEqualityStatus(TNode a, TNode b) {
- Node equality = a.eqNode(b);
- Node rewrittenEquality = Rewriter::rewrite(equality);
- if (rewrittenEquality.isConst()) {
- if (!rewrittenEquality.getConst<bool>()) {
- return EQUALITY_FALSE;
- }
- }
-
+ // Check for equality (simplest)
if (d_equalityEngine.areEqual(a, b)) {
// The terms are implied to be equal
return EQUALITY_TRUE;
}
+
+ // Check for disequality
if (d_equalityEngine.areDisequal(a, b)) {
// The terms are implied to be dis-equal
return EQUALITY_FALSE;
}
+
// All other terms we interpret as dis-equal in the model
return EQUALITY_FALSE_IN_MODEL;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback