summaryrefslogtreecommitdiff
path: root/src/theory/bags/bags_statistics.h
diff options
context:
space:
mode:
authormudathirmahgoub <mudathirmahgoub@gmail.com>2020-09-28 08:53:07 -0500
committerGitHub <noreply@github.com>2020-09-28 08:53:07 -0500
commit0f77646dfc0944f1f17f121ffb3112bf8b244f76 (patch)
treec47327731f05c19232f9c756f43da878f83d4ec9 /src/theory/bags/bags_statistics.h
parent2117152db35fe1e8cee1632303789dceda311d1a (diff)
Implement bags rewriter (#5132)
This PR implements rewrite rules for bags. This PR focuses on rewrite rules for non constant nodes. Rewriting nodes with constant children is delegated to bags::NormalForm class (future PR).
Diffstat (limited to 'src/theory/bags/bags_statistics.h')
-rw-r--r--src/theory/bags/bags_statistics.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/theory/bags/bags_statistics.h b/src/theory/bags/bags_statistics.h
new file mode 100644
index 000000000..457e3a32e
--- /dev/null
+++ b/src/theory/bags/bags_statistics.h
@@ -0,0 +1,45 @@
+/********************* */
+/*! \file bags_statistics.h
+ ** \verbatim
+ ** Top contributors (to current version):
+ ** Mudathir Mohamed
+ ** This file is part of the CVC4 project.
+ ** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
+ ** in the top-level source directory and their institutional affiliations.
+ ** All rights reserved. See the file COPYING in the top-level source
+ ** directory for licensing information.\endverbatim
+ **
+ ** \brief Statistics for the theory of bags
+ **/
+
+#include "cvc4_private.h"
+
+#ifndef CVC4__THEORY__BAGS_STATISTICS_H
+#define CVC4__THEORY__BAGS_STATISTICS_H
+
+#include "expr/kind.h"
+#include "theory/bags/rewrites.h"
+#include "util/statistics_registry.h"
+
+namespace CVC4 {
+namespace theory {
+namespace bags {
+
+/**
+ * Statistics for the theory of bags.
+ */
+class BagsStatistics
+{
+ public:
+ BagsStatistics();
+ ~BagsStatistics();
+
+ /** Counts the number of applications of each type of rewrite rule */
+ HistogramStat<Rewrite> d_rewrites;
+};
+
+} // namespace bags
+} // namespace theory
+} // namespace CVC4
+
+#endif /* CVC4__THEORY__BAGS_STATISTICS_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback