summaryrefslogtreecommitdiff
path: root/src/theory/sets
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2014-09-04 20:42:23 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2014-10-07 18:27:52 -0400
commitb976f4da9bf79670226d7fa55e02d4c0e4c7e8ba (patch)
tree692926adfc447cb0d69c8aa405ceb1e81c8a702a /src/theory/sets
parent5021f49629637ff032c29cf2b2a7f55b5426897e (diff)
add couple of stats
Diffstat (limited to 'src/theory/sets')
-rw-r--r--src/theory/sets/theory_sets_private.cpp8
-rw-r--r--src/theory/sets/theory_sets_private.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/theory/sets/theory_sets_private.cpp b/src/theory/sets/theory_sets_private.cpp
index bfcb477cb..8db4c5688 100644
--- a/src/theory/sets/theory_sets_private.cpp
+++ b/src/theory/sets/theory_sets_private.cpp
@@ -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());
diff --git a/src/theory/sets/theory_sets_private.h b/src/theory/sets/theory_sets_private.h
index e5f160fda..3d93adb48 100644
--- a/src/theory/sets/theory_sets_private.h
+++ b/src/theory/sets/theory_sets_private.h
@@ -75,6 +75,8 @@ private:
public:
TimerStat d_checkTime;
TimerStat d_getModelValueTime;
+ IntStat d_memberLemmas;
+ IntStat d_disequalityLemmas;
Statistics();
~Statistics();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback