diff options
author | Tim King <taking@cs.nyu.edu> | 2012-06-16 17:37:33 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-06-16 17:37:33 +0000 |
commit | adae14a07b1019d092b4d5aa0cf809f9d0eca66d (patch) | |
tree | a400d2a6753e52d01e36ae7ca8f63335d238c466 /src/theory | |
parent | 86aa93a619e4697b92c719f478399965ccb96d2d (diff) |
Fixing if condition for trivial equalities in arithmetic. Also some whitespace issues in smt_engine.cpp.
Diffstat (limited to 'src/theory')
-rw-r--r-- | src/theory/arith/theory_arith.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/arith/theory_arith.cpp b/src/theory/arith/theory_arith.cpp index eb0c99abe..e4284286e 100644 --- a/src/theory/arith/theory_arith.cpp +++ b/src/theory/arith/theory_arith.cpp @@ -1104,7 +1104,8 @@ Constraint TheoryArith::constraintFromFactQueue(){ Assert(!isSetup(eq)); Node reEq = Rewriter::rewrite(eq); if(reEq.getKind() == CONST_BOOLEAN){ - if(reEq.getConst<bool>() != isDistinct){ + if(reEq.getConst<bool>() == isDistinct){ + // if is (not true), or false Assert((reEq.getConst<bool>() && isDistinct) || (!reEq.getConst<bool>() && !isDistinct)); d_raiseConflict(assertion); |