diff options
author | Tim King <taking@cs.nyu.edu> | 2011-03-17 20:38:32 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2011-03-17 20:38:32 +0000 |
commit | 232042b3e2e265dbfe9c693d018d48388be91018 (patch) | |
tree | 55dc6d39bbd5eff9b0b1c220ed33dac3d4bdd316 /src/theory/arith/arith_rewriter.h | |
parent | 68f8b6b2589320dac3a022a1e5058e5a65cc570b (diff) |
- Removes arith_constants.h
- Adds ArithStaticLearner. Consolidates and cleans up the code for static learning in arithmetic. Static learning is now associated with a small amount of state between calls. This is used to track the data for the miplib trick. The goal is to make this inference work without relying on the fact that all of the miplib problem is asserted under the same AND node.
- This commit contains miscellaneous other arithmetic cleanup.
Diffstat (limited to 'src/theory/arith/arith_rewriter.h')
-rw-r--r-- | src/theory/arith/arith_rewriter.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/theory/arith/arith_rewriter.h b/src/theory/arith/arith_rewriter.h index 3a8fc191a..d88a7ae92 100644 --- a/src/theory/arith/arith_rewriter.h +++ b/src/theory/arith/arith_rewriter.h @@ -23,7 +23,6 @@ #define __CVC4__THEORY__ARITH__ARITH_REWRITER_H #include "theory/theory.h" -#include "theory/arith/arith_constants.h" #include "theory/arith/arith_utilities.h" #include "theory/arith/normal_form.h" @@ -37,8 +36,6 @@ class ArithRewriter { private: - static arith::ArithConstants* s_constants; - static Node makeSubtractionNode(TNode l, TNode r); static Node makeUnaryMinusNode(TNode n); @@ -67,18 +64,9 @@ public: static RewriteResponse preRewrite(TNode n); static RewriteResponse postRewrite(TNode n); - static void init() { - if (s_constants == NULL) { - s_constants = new arith::ArithConstants(NodeManager::currentNM()); - } - } + static void init() { } - static void shutdown() { - if (s_constants != NULL) { - delete s_constants; - s_constants = NULL; - } - } + static void shutdown() { } private: |