diff options
author | Tim King <taking@cs.nyu.edu> | 2010-10-22 20:22:39 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-10-22 20:22:39 +0000 |
commit | 6dee1d9817d8e9209f0a681b7c601ec6b4b5014d (patch) | |
tree | 1c6d2bf7185468cccba01c93cb1f67440dc81de8 /src/theory/arith/partial_model.h | |
parent | 11cb621b7fde60a17386b7da4e383bc15e71ab27 (diff) |
Code cleanup for TheoryArith.
Diffstat (limited to 'src/theory/arith/partial_model.h')
-rw-r--r-- | src/theory/arith/partial_model.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/theory/arith/partial_model.h b/src/theory/arith/partial_model.h index 518d59fbd..2edfdebca 100644 --- a/src/theory/arith/partial_model.h +++ b/src/theory/arith/partial_model.h @@ -88,6 +88,7 @@ public: /* Gets the last assignment to a variable that is known to be conistent. */ const DeltaRational& getSafeAssignment(ArithVar x) const; + const DeltaRational& getAssignment(ArithVar x, bool safe) const; /* Reverts all variable assignments to their safe values. */ void revertAssignmentChanges(); @@ -131,7 +132,13 @@ public: void printModel(ArithVar x); /** returns true iff x has both a lower and upper bound. */ - bool hasBounds(ArithVar x); + bool hasEitherBound(ArithVar x); + inline bool hasLowerBound(ArithVar x){ + return !d_lowerConstraint[x].isNull(); + } + inline bool hasUpperBound(ArithVar x){ + return !d_upperConstraint[x].isNull(); + } bool hasEverHadABound(ArithVar var){ return d_hasHadABound[var]; |