Miscellaneous cleaning in theory engine (#5854)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 5 Feb 2021 16:04:30 +0000 (10:04 -0600)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 16:04:30 +0000 (10:04 -0600)
This statistic is unused, I believe it is leftover from deleted code.

src/theory/theory_engine.cpp
src/theory/theory_engine.h

index 9fb76ab44adfbf6a02be44df3cf271c60fdabb0c..0fd8347c86edeb710f31c15003d0efeeaa84e43b 100644 (file)
@@ -242,8 +242,7 @@ TheoryEngine::TheoryEngine(context::Context* context,
       d_resourceManager(rm),
       d_inPreregister(false),
       d_factsAsserted(context, false),
-      d_attr_handle(),
-      d_arithSubstitutionsAdded("theory::arith::zzz::arith::substitutions", 0)
+      d_attr_handle()
 {
   for(TheoryId theoryId = theory::THEORY_FIRST; theoryId != theory::THEORY_LAST;
       ++ theoryId)
@@ -255,8 +254,6 @@ TheoryEngine::TheoryEngine(context::Context* context,
   smtStatisticsRegistry()->registerStat(&d_combineTheoriesTime);
   d_true = NodeManager::currentNM()->mkConst<bool>(true);
   d_false = NodeManager::currentNM()->mkConst<bool>(false);
-
-  smtStatisticsRegistry()->registerStat(&d_arithSubstitutionsAdded);
 }
 
 TheoryEngine::~TheoryEngine() {
@@ -270,7 +267,6 @@ TheoryEngine::~TheoryEngine() {
   }
 
   smtStatisticsRegistry()->unregisterStat(&d_combineTheoriesTime);
-  smtStatisticsRegistry()->unregisterStat(&d_arithSubstitutionsAdded);
 }
 
 void TheoryEngine::interrupt() { d_interrupted = true; }
index d72a999b2c218fd295f06e0c9036f8f8b358d045..e2e7850b526057ecff0c8abaf4b08a384b468eb6 100644 (file)
@@ -671,8 +671,6 @@ private:
    * This function is called from the smt engine's checkModel routine.
    */
   void checkTheoryAssertionsWithModel(bool hardFailure);
- private:
-  IntStat d_arithSubstitutionsAdded;
 };/* class TheoryEngine */
 
 }/* CVC4 namespace */