Initializing SharedTermsDatabase::d_conflictPolarity. Resolves 1172045. (#1355)
authorTim King <taking@cs.nyu.edu>
Mon, 13 Nov 2017 23:39:56 +0000 (15:39 -0800)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Mon, 13 Nov 2017 23:39:56 +0000 (17:39 -0600)
src/theory/shared_terms_database.cpp

index 8e4bd5399df7717bd6d49c3ca360d5df4336dfd0..0b4deafb5c86dbddb85566bcca2b07e6f363dcac 100644 (file)
 #include "theory/theory_engine.h"
 
 using namespace std;
-using namespace CVC4;
-using namespace theory;
-
-SharedTermsDatabase::SharedTermsDatabase(TheoryEngine* theoryEngine, context::Context* context)
-: ContextNotifyObj(context)
-, d_statSharedTerms("theory::shared_terms", 0)
-, d_addedSharedTermsSize(context, 0)
-, d_termsToTheories(context)
-, d_alreadyNotifiedMap(context)
-, d_registeredEqualities(context)
-, d_EENotify(*this)
-, d_equalityEngine(d_EENotify, context, "SharedTermsDatabase", true)
-, d_theoryEngine(theoryEngine)
-, d_inConflict(context, false)
-{
+using namespace CVC4::theory;
+
+namespace CVC4 {
+
+SharedTermsDatabase::SharedTermsDatabase(TheoryEngine* theoryEngine,
+                                         context::Context* context)
+    : ContextNotifyObj(context),
+      d_statSharedTerms("theory::shared_terms", 0),
+      d_addedSharedTermsSize(context, 0),
+      d_termsToTheories(context),
+      d_alreadyNotifiedMap(context),
+      d_registeredEqualities(context),
+      d_EENotify(*this),
+      d_equalityEngine(d_EENotify, context, "SharedTermsDatabase", true),
+      d_theoryEngine(theoryEngine),
+      d_inConflict(context, false),
+      d_conflictPolarity() {
   smtStatisticsRegistry()->registerStat(&d_statSharedTerms);
 }
 
@@ -261,3 +263,5 @@ Node SharedTermsDatabase::explain(TNode literal) const {
   d_equalityEngine.explainEquality(atom[0], atom[1], polarity, assumptions);
   return mkAnd(assumptions);
 }
+
+} /* namespace CVC4 */