projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905d776
)
Fix antecedent loop. Whoops
author
Alex Ozdemir
<aozdemir@hmc.edu>
Mon, 16 Mar 2020 19:19:06 +0000
(12:19 -0700)
committer
Alex Ozdemir
<aozdemir@hmc.edu>
Mon, 16 Mar 2020 23:52:50 +0000
(16:52 -0700)
src/theory/arith/constraint.cpp
patch
|
blob
|
history
diff --git
a/src/theory/arith/constraint.cpp
b/src/theory/arith/constraint.cpp
index 98ce07fbc6d06a12585876fce01b4b4dfc65ac91..cdab772f85d1b5ce689ca185a280d897be996807 100644
(file)
--- 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())
{