From: Dejan Jovanović Date: Wed, 13 Jun 2012 18:08:09 +0000 (+0000) Subject: fix for bug 354 X-Git-Tag: cvc5-1.0.0~8038 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0593ad38a13abf4d7910a38ed97f9965bdf1095e;p=cvc5.git fix for bug 354 --- diff --git a/src/theory/shared_terms_database.cpp b/src/theory/shared_terms_database.cpp index 98ab3f10d..c1266ee6d 100644 --- a/src/theory/shared_terms_database.cpp +++ b/src/theory/shared_terms_database.cpp @@ -174,7 +174,7 @@ void SharedTermsDatabase::markNotified(TNode term, Theory::Set theories) { bool SharedTermsDatabase::areEqual(TNode a, TNode b) const { return d_equalityEngine.areEqual(a,b); -} +} bool SharedTermsDatabase::areDisequal(TNode a, TNode b) const { return d_equalityEngine.areDisequal(a,b,false); diff --git a/src/theory/shared_terms_database.h b/src/theory/shared_terms_database.h index c7da8a463..4a6cac969 100644 --- a/src/theory/shared_terms_database.h +++ b/src/theory/shared_terms_database.h @@ -213,7 +213,7 @@ public: * Returns true if the term is currently registered as shared with some theory. */ bool isShared(TNode term) const { - return term.isConst() || d_alreadyNotifiedMap.find(term) != d_alreadyNotifiedMap.end(); + return d_alreadyNotifiedMap.find(term) != d_alreadyNotifiedMap.end(); } /**