diff options
author | Tim King <taking@cs.nyu.edu> | 2015-06-14 15:03:15 +0200 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2015-06-14 15:03:15 +0200 |
commit | 232782d690e1dc333ebc7bec1a9302f086c947b6 (patch) | |
tree | bc9f54e8cf714ee8b37643a3e5fbb0abc6c70c37 /src/theory/arith/constraint.cpp | |
parent | d101e7fed051685673c13317cb45166ba5ef7798 (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.cpp | 6 |
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); |