From: Tianyi Liang Date: Wed, 5 Feb 2014 15:19:23 +0000 (-0600) Subject: minor fix for merge X-Git-Tag: cvc5-1.0.0~7097 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8accf31d91312a35eae5b4b84dc9d1f1853b7d87;p=cvc5.git minor fix for merge --- diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp index 00688a95d..43132b324 100644 --- a/src/theory/strings/theory_strings.cpp +++ b/src/theory/strings/theory_strings.cpp @@ -2051,7 +2051,7 @@ bool TheoryStrings::checkCardinality() { Node lr = lts[i]; Trace("strings-card") << "Number of strings with length equal to " << lr << " is " << cols[i].size() << std::endl; // size > c^k - double k = std::log( cols[i].size() ) / log((double) cardinality); + double k = cols[i].size() < cardinality? 0.0 : ( std::log( cols[i].size() ) / log((double) cardinality) ); unsigned int int_k = (unsigned int) k; //double c_k = pow ( (double)cardinality, (double)lr ); if( cols[i].size() > 1 ) {