Fixed a copy paste error where a lower bound was looked up instead of an upper bound.
authorTim King <taking@cs.nyu.edu>
Thu, 1 Mar 2012 00:38:37 +0000 (00:38 +0000)
committerTim King <taking@cs.nyu.edu>
Thu, 1 Mar 2012 00:38:37 +0000 (00:38 +0000)
src/theory/arith/theory_arith.cpp

index 1137ca7b7e872f0e32ce73e74b7e7df458a2db62..fcac6f10e3100464dbc0c2d5bd5f62d48c924db4 100644 (file)
@@ -192,8 +192,8 @@ Node TheoryArith::AssertLower(ArithVar x_i, DeltaRational& c_i, TNode original){
 
     Node diseq = left.eqNode(right).notNode();
     if (d_diseq.find(diseq) != d_diseq.end()) {
-      Node lb = d_partialModel.getLowerConstraint(x_i);
-      return disequalityConflict(diseq, lb , original);
+      Node ub = d_partialModel.getUpperConstraint(x_i);
+      return disequalityConflict(diseq, ub , original);
     }
   }