fix for bug 354
authorDejan Jovanović <dejan.jovanovic@gmail.com>
Wed, 13 Jun 2012 18:08:09 +0000 (18:08 +0000)
committerDejan Jovanović <dejan.jovanovic@gmail.com>
Wed, 13 Jun 2012 18:08:09 +0000 (18:08 +0000)
src/theory/shared_terms_database.cpp
src/theory/shared_terms_database.h

index 98ab3f10d6805024833182d711904819a2832dec..c1266ee6dd577e914f861b1361623ef46cc7d919 100644 (file)
@@ -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);
index c7da8a463a17a3c069b68bb5c9a72c770db4de4f..4a6cac969af3d123f6668bfe4b31d664b02f8235 100644 (file)
@@ -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();
   }
 
   /**