From 104b28b4c16b90a819c8f79d60f94a42fb0c0261 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Tue, 5 Feb 2019 10:09:15 -0800 Subject: Make stripConstantEndpoints() less aggressive (#2830) --- src/theory/strings/theory_strings_rewriter.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src') diff --git a/src/theory/strings/theory_strings_rewriter.cpp b/src/theory/strings/theory_strings_rewriter.cpp index e8abc37a5..eff68ebe6 100644 --- a/src/theory/strings/theory_strings_rewriter.cpp +++ b/src/theory/strings/theory_strings_rewriter.cpp @@ -3647,26 +3647,6 @@ bool TheoryStringsRewriter::stripConstantEndpoints(std::vector& n1, overlap = s.size() - ret; } } - else if (n2[index1].getKind() == kind::STRING_ITOS) - { - const std::vector& svec = s.getVec(); - // can remove up to the first occurrence of a digit - unsigned svsize = svec.size(); - for (unsigned i = 0; i < svsize; i++) - { - unsigned sindex = r == 0 ? i : (svsize - 1) - i; - if (String::isDigit(svec[sindex])) - { - break; - } - else if (sss.empty()) // only if not substr - { - // e.g. str.contains( str.++( "a", x ), int.to.str(y) ) --> - // str.contains( x, int.to.str(y) ) - overlap--; - } - } - } else { // inconclusive -- cgit v1.2.3