diff options
author | Tim King <taking@cs.nyu.edu> | 2013-05-03 15:52:11 -0400 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2013-05-03 15:52:11 -0400 |
commit | 4c20ab57d70c4812d75af037e95c371c65418333 (patch) | |
tree | 88ae9d4ca928a5bb8536819ccbdbd9031b63684a /src/theory/arith/callbacks.h | |
parent | 753e84e5b3068efe973be1871b6456abf9b9470b (diff) |
More misc. arithmetic cleanup. Removing unused files and functions. Also removing an ugly forward declaration that was needed to get error set bound information on basic variables.
Diffstat (limited to 'src/theory/arith/callbacks.h')
-rw-r--r-- | src/theory/arith/callbacks.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/theory/arith/callbacks.h b/src/theory/arith/callbacks.h index 0d754d159..718799e9f 100644 --- a/src/theory/arith/callbacks.h +++ b/src/theory/arith/callbacks.h @@ -3,10 +3,10 @@ #include "expr/node.h" #include "util/rational.h" -#include "context/cdlist.h" #include "theory/arith/theory_arith_private_forward.h" #include "theory/arith/arithvar.h" +#include "theory/arith/bound_counts.h" namespace CVC4 { namespace theory { @@ -87,6 +87,20 @@ public: void operator()(Node n); }; +class BoundCountingLookup { +private: + TheoryArithPrivate& d_ta; +public: + BoundCountingLookup(TheoryArithPrivate& ta) : d_ta(ta) {} + const BoundsInfo& boundsInfo(ArithVar basic) const; + BoundCounts atBounds(ArithVar basic) const{ + return boundsInfo(basic).atBounds(); + } + BoundCounts hasBounds(ArithVar basic) const { + return boundsInfo(basic).hasBounds(); + } +}; + }/* CVC4::theory::arith namespace */ }/* CVC4::theory namespace */ }/* CVC4 namespace */ |