patch to the last commit
authorTianyi Liang <tianyi-liang@uiowa.edu>
Wed, 7 Jan 2015 18:24:14 +0000 (12:24 -0600)
committerTianyi Liang <tianyi-liang@uiowa.edu>
Wed, 7 Jan 2015 18:24:14 +0000 (12:24 -0600)
src/theory/strings/theory_strings_rewriter.cpp

index fb7c9b460b3352441137bece3f47c3a236a95629..9f683640685aee4e8d216b71132b4686591b47e3 100644 (file)
@@ -665,7 +665,7 @@ bool TheoryStringsRewriter::testConstStringInRegExp( CVC4::String &s, unsigned i
           } else if( i == -1 ) {
             return false;
           } else {
-            for(vec_k[i] = vec_k[i] + 1; vec_k[i] <= left - start; ++vec_k[i]) {
+            for(vec_k[i] = vec_k[i] + 1; vec_k[i] <= left; ++vec_k[i]) {
               CVC4::String t = s.substr(index_start + start, vec_k[i]);
               if( testConstStringInRegExp( t, 0, r[i] ) ) {
                 start += vec_k[i]; left -= vec_k[i]; flag = false;