diff options
author | Tim King <taking@cs.nyu.edu> | 2012-05-04 03:03:34 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-05-04 03:03:34 +0000 |
commit | 3d1c57e0506b2454aa815c3c1cb634d96ade1d7c (patch) | |
tree | 1805ae7dae1f9e9b04c2d344ce252a969fc4e7a8 /src/theory/arith/constraint.h | |
parent | 1433806056059339dd16ae8e431feaae23553150 (diff) |
- This fixes a problem where simplex produced the same conflict in the single check call.
- This increases the number of substitutions that ppAssert can solve on integer equations.
Diffstat (limited to 'src/theory/arith/constraint.h')
-rw-r--r-- | src/theory/arith/constraint.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/theory/arith/constraint.h b/src/theory/arith/constraint.h index 2e0a9d067..fe10ecc4a 100644 --- a/src/theory/arith/constraint.h +++ b/src/theory/arith/constraint.h @@ -403,6 +403,15 @@ public: bool isUpperBound() const{ return d_type == UpperBound; } + bool isStrictUpperBound() const{ + Assert(isUpperBound()); + return getValue().infinitesimalSgn() < 0; + } + + bool isStrictLowerBound() const{ + Assert(isLowerBound()); + return getValue().infinitesimalSgn() > 0; + } bool isSplit() const { return d_split; @@ -422,7 +431,7 @@ public: /** * Light wrapper for calling setCanBePropagated(), - * on this and this-d_negation. + * on this and this->d_negation. */ void setPreregistered(){ setCanBePropagated(); |