summaryrefslogtreecommitdiff
path: root/src/theory/arith/constraint.cpp
diff options
context:
space:
mode:
authorAlex Ozdemir <aozdemir@hmc.edu>2020-03-16 12:19:06 -0700
committerAlex Ozdemir <aozdemir@hmc.edu>2020-03-16 16:52:50 -0700
commitcbce537b4ebc22bc929b52115a5686ea1deeff26 (patch)
tree9caaae084d93749dc123b1a6171a7d7e635615ab /src/theory/arith/constraint.cpp
parent905d77664cdedb5d1f3fec91c32c5033a0618e67 (diff)
Fix antecedent loop. Whoops
Diffstat (limited to 'src/theory/arith/constraint.cpp')
-rw-r--r--src/theory/arith/constraint.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/theory/arith/constraint.cpp b/src/theory/arith/constraint.cpp
index 98ce07fbc..cdab772f8 100644
--- a/src/theory/arith/constraint.cpp
+++ b/src/theory/arith/constraint.cpp
@@ -502,11 +502,11 @@ bool Constraint::hasSimpleFarkasProof() const
}
// For each antecdent ...
- for (AntecedentId i = getConstraintRule().d_antecedentEnd;
- i != AntecedentIdSentinel;
- --i)
+ AntecedentId i = getConstraintRule().d_antecedentEnd;
+ for (ConstraintCP a = d_database->getAntecedent(i);
+ a != NullConstraint;
+ a = d_database->getAntecedent(--i))
{
- ConstraintCP a = d_database->getAntecedent(i);
// ... that antecdent must be an assumption ...
if (a->isAssumption())
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback