summaryrefslogtreecommitdiff
path: root/src/theory
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-01-15 23:15:27 -0600
committerAndres Noetzli <andres.noetzli@gmail.com>2019-01-15 21:15:27 -0800
commit534a9b73dae2c0a3b6040f6a51f824ca69850c4b (patch)
tree972b5b80d446a5ccd2629357bec37c7c52dbcfc7 /src/theory
parent3018455b424fc61e140be665a813cb6a8fac6320 (diff)
Fix constant contains ITOS rewrite (#2799)
Diffstat (limited to 'src/theory')
-rw-r--r--src/theory/strings/theory_strings_rewriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/strings/theory_strings_rewriter.cpp b/src/theory/strings/theory_strings_rewriter.cpp
index 57a99532e..b4c80e55b 100644
--- a/src/theory/strings/theory_strings_rewriter.cpp
+++ b/src/theory/strings/theory_strings_rewriter.cpp
@@ -3234,7 +3234,7 @@ bool TheoryStringsRewriter::canConstantContainConcat( Node c, Node n, int& first
pos = new_pos + s.size();
}
}
- else if (n[i].getKind() == kind::STRING_ITOS)
+ else if (n[i].getKind() == kind::STRING_ITOS && checkEntailArith(n[i][0]))
{
// find the first occurrence of a digit starting at pos
while (pos < tvec.size() && !String::isDigit(tvec[pos]))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback