From b721666fd7a2dafaaeb112059c2588c99e8020ec Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Wed, 1 Aug 2018 10:33:41 -0500 Subject: [PATCH] Fix assertion in conjecture generator (#2246) Makes minor improvements and removes the need to have the assertion (which was incorrect). This fixes the nightlies. --- .../quantifiers/conjecture_generator.cpp | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/theory/quantifiers/conjecture_generator.cpp b/src/theory/quantifiers/conjecture_generator.cpp index 8c6b5afbc..a079017cd 100644 --- a/src/theory/quantifiers/conjecture_generator.cpp +++ b/src/theory/quantifiers/conjecture_generator.cpp @@ -1065,6 +1065,8 @@ Node ConjectureGenerator::getPredicateForType( TypeNode tn ) { void ConjectureGenerator::getEnumerateUfTerm( Node n, unsigned num, std::vector< Node >& terms ) { if( n.getNumChildren()>0 ){ + Trace("sg-gt-enum-debug") << "Get enumerate uf terms " << n << " (" << num + << ")" << std::endl; TermEnumeration* te = d_quantEngine->getTermEnumeration(); // below, we do a fair enumeration of vectors vec of indices whose sum is // 1,2,3, ... @@ -1090,7 +1092,6 @@ void ConjectureGenerator::getEnumerateUfTerm( Node n, unsigned num, std::vector< unsigned index = 0; unsigned last_size = terms.size(); while( terms.size()last_size ){ last_size = terms.size(); size_limit++; @@ -1169,7 +1159,8 @@ void ConjectureGenerator::getEnumerateUfTerm( Node n, unsigned num, std::vector< } vec_sum = -1; }else{ - // we've saturated, no more terms can be enumerated + // No terms were generated at the previous size. + // Thus, we've saturated, no more terms can be enumerated. return; } } -- 2.30.2