summaryrefslogtreecommitdiff
path: root/src/theory/arith/constraint.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2015-06-14 15:03:15 +0200
committerTim King <taking@cs.nyu.edu>2015-06-14 15:03:15 +0200
commit232782d690e1dc333ebc7bec1a9302f086c947b6 (patch)
treebc9f54e8cf714ee8b37643a3e5fbb0abc6c70c37 /src/theory/arith/constraint.cpp
parentd101e7fed051685673c13317cb45166ba5ef7798 (diff)
Fixes for shared term normalization in replay for constraint construction.
Diffstat (limited to 'src/theory/arith/constraint.cpp')
-rw-r--r--src/theory/arith/constraint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/arith/constraint.cpp b/src/theory/arith/constraint.cpp
index 94632e50e..822f0e578 100644
--- a/src/theory/arith/constraint.cpp
+++ b/src/theory/arith/constraint.cpp
@@ -34,7 +34,7 @@ namespace arith {
/** Given a simplifiedKind this returns the corresponding ConstraintType. */
//ConstraintType constraintTypeOfLiteral(Kind k);
-ConstraintType constraintTypeOfComparison(const Comparison& cmp){
+ConstraintType Constraint::constraintTypeOfComparison(const Comparison& cmp){
Kind k = cmp.comparisonKind();
switch(k){
case LT:
@@ -989,7 +989,7 @@ ConstraintP ConstraintDatabase::addLiteral(TNode literal){
Assert(!hasLiteral(negationNode));
Comparison posCmp = Comparison::parseNormalForm(atomNode);
- ConstraintType posType = constraintTypeOfComparison(posCmp);
+ ConstraintType posType = Constraint::constraintTypeOfComparison(posCmp);
Polynomial nvp = posCmp.normalizedVariablePart();
ArithVar v = d_avariables.asArithVar(nvp.getNode());
@@ -1024,7 +1024,7 @@ ConstraintP ConstraintDatabase::addLiteral(TNode literal){
}else{
Comparison negCmp = Comparison::parseNormalForm(negationNode);
- ConstraintType negType = constraintTypeOfComparison(negCmp);
+ ConstraintType negType = Constraint::constraintTypeOfComparison(negCmp);
DeltaRational negDR = negCmp.normalizedDeltaRational();
ConstraintP negC = new Constraint(v, negType, negDR);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback