summaryrefslogtreecommitdiff
path: root/src/theory/theory_engine.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-07-06 04:00:42 +0000
committerMorgan Deters <mdeters@gmail.com>2010-07-06 04:00:42 +0000
commitb9f36ae0027e52da925416630ccad5d4b84779e9 (patch)
tree3d6a374f36c0c8c948077a2bf59f4ab9cbbd1491 /src/theory/theory_engine.h
parentc022f31543c7275e02d1a8c655e450e575e13bd0 (diff)
Fixes for doubled-statistics (bug 171), a fix to muzzled builds and some minor code
cleanup found while searching for additional cases. Closes bug 171.
Diffstat (limited to 'src/theory/theory_engine.h')
-rw-r--r--src/theory/theory_engine.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h
index 24d1f4790..0027903df 100644
--- a/src/theory/theory_engine.h
+++ b/src/theory/theory_engine.h
@@ -95,7 +95,6 @@ class TheoryEngine {
void propagate(TNode lit, bool) throw(theory::Interrupted, AssertionException) {
d_propagatedLiterals.push_back(lit);
++(d_engine->d_statistics.d_statPropagate);
- ++(d_engine->d_statistics.d_statPropagate);
}
void lemma(TNode node, bool) throw(theory::Interrupted, AssertionException) {
@@ -108,8 +107,7 @@ class TheoryEngine {
}
void explanation(TNode explanationNode, bool) throw(theory::Interrupted, AssertionException) {
d_explanationNode = explanationNode;
- ++(d_engine->d_statistics.d_statExplanatation);
- ++(d_engine->d_statistics.d_statExplanatation);
+ ++(d_engine->d_statistics.d_statExplanation);
}
};
@@ -320,19 +318,19 @@ public:
private:
class Statistics {
public:
- IntStat d_statConflicts, d_statPropagate, d_statLemma, d_statAugLemma, d_statExplanatation;
+ IntStat d_statConflicts, d_statPropagate, d_statLemma, d_statAugLemma, d_statExplanation;
Statistics():
d_statConflicts("theory::conflicts",0),
d_statPropagate("theory::propagate",0),
d_statLemma("theory::lemma",0),
d_statAugLemma("theory::aug_lemma", 0),
- d_statExplanatation("theory::explanation", 0)
+ d_statExplanation("theory::explanation", 0)
{
StatisticsRegistry::registerStat(&d_statConflicts);
StatisticsRegistry::registerStat(&d_statPropagate);
StatisticsRegistry::registerStat(&d_statLemma);
StatisticsRegistry::registerStat(&d_statAugLemma);
- StatisticsRegistry::registerStat(&d_statExplanatation);
+ StatisticsRegistry::registerStat(&d_statExplanation);
}
~Statistics() {
@@ -340,12 +338,11 @@ private:
StatisticsRegistry::unregisterStat(&d_statPropagate);
StatisticsRegistry::unregisterStat(&d_statLemma);
StatisticsRegistry::unregisterStat(&d_statAugLemma);
- StatisticsRegistry::unregisterStat(&d_statExplanatation);
+ StatisticsRegistry::unregisterStat(&d_statExplanation);
}
};
Statistics d_statistics;
-
};/* class TheoryEngine */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback