summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/theory/quantifiers/sygus/sygus_pbe.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/quantifiers/sygus/sygus_pbe.cpp b/src/theory/quantifiers/sygus/sygus_pbe.cpp
index 1a8721530..56d2cf2b5 100644
--- a/src/theory/quantifiers/sygus/sygus_pbe.cpp
+++ b/src/theory/quantifiers/sygus/sygus_pbe.cpp
@@ -430,11 +430,13 @@ bool CegConjecturePbe::constructCandidates(const std::vector<Node>& enums,
// set by options::sygusPbeMultiFairDiff(). If d is zero, then our
// enumeration is such that all terms of T1 or T2 of size n are considered
// before any term of size n+1.
+ int diffAllow = options::sygusPbeMultiFairDiff();
std::vector<unsigned> enum_consider;
for (unsigned i = 0, esize = enums.size(); i < esize; i++)
{
- if (!options::sygusPbeMultiFair()
- || szs[i] - min_term_size <= options::sygusPbeMultiFairDiff())
+ Assert(szs[i] >= min_term_size);
+ int diff = szs[i] - min_term_size;
+ if (!options::sygusPbeMultiFair() || diff <= diffAllow)
{
enum_consider.push_back( i );
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback