From: Andrew Reynolds Date: Wed, 1 Aug 2018 15:33:41 +0000 (-0500) Subject: Fix assertion in conjecture generator (#2246) X-Git-Tag: cvc5-1.0.0~4839 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b721666fd7a2dafaaeb112059c2588c99e8020ec;p=cvc5.git Fix assertion in conjecture generator (#2246) Makes minor improvements and removes the need to have the assertion (which was incorrect). This fixes the nightlies. --- 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; } }