add couple of stats
authorKshitij Bansal <kshitij@cs.nyu.edu>
Fri, 5 Sep 2014 00:42:23 +0000 (20:42 -0400)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Tue, 7 Oct 2014 22:27:52 +0000 (18:27 -0400)
src/theory/sets/theory_sets_private.cpp
src/theory/sets/theory_sets_private.h

index bfcb477cbd72745539359f579b198ac4c55cd1d6..8db4c568865f8fa93732b4f0eac3f1c6131b3ed7 100644 (file)
@@ -913,15 +913,21 @@ Node mkAnd(const std::vector<TNode>& conjunctions) {
 TheorySetsPrivate::Statistics::Statistics() :
   d_checkTime("theory::sets::time")
   , d_getModelValueTime("theory::sets::getModelValueTime")
+  , d_memberLemmas("theory::sets::lemmas::member", 0)
+  , d_disequalityLemmas("theory::sets::lemmas::disequality", 0)
 {
   StatisticsRegistry::registerStat(&d_checkTime);
   StatisticsRegistry::registerStat(&d_getModelValueTime);
+  StatisticsRegistry::registerStat(&d_memberLemmas);
+  StatisticsRegistry::registerStat(&d_disequalityLemmas);
 }
 
 
 TheorySetsPrivate::Statistics::~Statistics() {
   StatisticsRegistry::unregisterStat(&d_checkTime);
   StatisticsRegistry::unregisterStat(&d_getModelValueTime);
+  StatisticsRegistry::unregisterStat(&d_memberLemmas);
+  StatisticsRegistry::unregisterStat(&d_disequalityLemmas);
 }
 
 
@@ -991,11 +997,13 @@ void TheorySetsPrivate::addToPending(Node n) {
     if(n.getKind() == kind::MEMBER) {
       Debug("sets-pending") << "[sets-pending] \u2514 added to member queue"
                             << std::endl;
+      ++d_statistics.d_memberLemmas;
       d_pending.push(n);
     } else {
       Debug("sets-pending") << "[sets-pending] \u2514 added to equality queue"
                             << std::endl;
       Assert(n.getKind() == kind::EQUAL);
+      ++d_statistics.d_disequalityLemmas;
       d_pendingDisequal.push(n);
     }
     d_external.d_out->lemma(getLemma());
index e5f160fdaee02c8596ff707c636ea6f2dce3df41..3d93adb48fcb0595a41cff619f0f5b70fd3783df 100644 (file)
@@ -75,6 +75,8 @@ private:
   public:
     TimerStat d_checkTime;
     TimerStat d_getModelValueTime;
+    IntStat d_memberLemmas;
+    IntStat d_disequalityLemmas;
 
     Statistics();
     ~Statistics();