summaryrefslogtreecommitdiff
path: root/src/theory/bv/bv_eager_solver.h
diff options
context:
space:
mode:
authorlianah <lianahady@gmail.com>2014-06-10 13:48:45 -0400
committerlianah <lianahady@gmail.com>2014-06-10 13:48:45 -0400
commit5f072a19d299191dbedc4b69c8e0eda694cfa957 (patch)
tree0ebfc27bd05d06b0cdb2fc0813b7d5649d36aee4 /src/theory/bv/bv_eager_solver.h
parentdb51926b5ce806754fc26c81b1b7d3e739fc4fc5 (diff)
Merging CAV14 paper bit-vector work.
Diffstat (limited to 'src/theory/bv/bv_eager_solver.h')
-rw-r--r--src/theory/bv/bv_eager_solver.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/theory/bv/bv_eager_solver.h b/src/theory/bv/bv_eager_solver.h
new file mode 100644
index 000000000..1fb65c9c8
--- /dev/null
+++ b/src/theory/bv/bv_eager_solver.h
@@ -0,0 +1,55 @@
+/********************* */
+/*! \file bv_eager_solver.h
+ ** \verbatim
+ ** Original author: Liana Hadarean
+ ** Major contributors: none
+ ** Minor contributors (to current version):
+ ** This file is part of the CVC4 project.
+ ** Copyright (c) 2009-2013 New York University and The University of Iowa
+ ** See the file COPYING in the top-level source directory for licensing
+ ** information.\endverbatim
+ **
+ ** \brief Eager bit-blasting solver.
+ **
+ ** Eager bit-blasting solver.
+ **/
+
+#include "cvc4_private.h"
+#include "expr/node.h"
+#include <vector>
+#pragma once
+
+
+namespace CVC4 {
+namespace theory {
+namespace bv {
+
+class EagerBitblaster;
+class AigBitblaster;
+
+/**
+ * BitblastSolver
+ */
+class EagerBitblastSolver {
+ typedef __gnu_cxx::hash_set<TNode, TNodeHashFunction> AssertionSet;
+ AssertionSet d_assertionSet;
+ /** Bitblasters */
+ EagerBitblaster* d_bitblaster;
+ AigBitblaster* d_aigBitblaster;
+ bool d_useAig;
+public:
+ EagerBitblastSolver();
+ ~EagerBitblastSolver();
+ bool checkSat();
+ void assertFormula(TNode formula);
+ // purely for debugging purposes
+ bool hasAssertions(const std::vector<TNode> &formulas);
+
+ void turnOffAig();
+ bool isInitialized();
+ void initialize();
+};
+
+}
+}
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback