summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-04-29 22:43:20 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2019-04-29 22:43:20 -0700
commit2bde55cd2a435a58118f2a6e6392e88753f9c653 (patch)
treea5da2224e0845b751114f6adfbc939ca687ee14b
parent19a93d5e0f924c70e7f77719e0310c730c8fbc61 (diff)
Fix bogus assertionsbogusAssertions
-rw-r--r--src/theory/strings/regexp_elim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/strings/regexp_elim.cpp b/src/theory/strings/regexp_elim.cpp
index afffce2c8..02563bb69 100644
--- a/src/theory/strings/regexp_elim.cpp
+++ b/src/theory/strings/regexp_elim.cpp
@@ -347,10 +347,10 @@ Node RegExpElimination::eliminateConcat(Node atom)
for (unsigned r = 0; r < 2; r++)
{
unsigned index = r == 0 ? 0 : nchildren - 1;
- Assert(children[index + (r == 0 ? 1 : -1)].getKind() != STRING_TO_REGEXP);
Node c = children[index];
if (c.getKind() == STRING_TO_REGEXP)
{
+ Assert(children[index + (r == 0 ? 1 : -1)].getKind() != STRING_TO_REGEXP);
Node s = c[0];
Node lens = nm->mkNode(STRING_LENGTH, s);
Node sss = r == 0 ? d_zero : nm->mkNode(MINUS, lenx, lens);
@@ -375,9 +375,9 @@ Node RegExpElimination::eliminateConcat(Node atom)
rexpElimChildren.push_back(c);
}
}
- Assert(rexpElimChildren.size() + sConstraints.size() == nchildren);
if (!sConstraints.empty())
{
+ Assert(rexpElimChildren.size() + sConstraints.size() == nchildren);
Node ss = nm->mkNode(STRING_SUBSTR, x, sStartIndex, sLength);
Assert(!rexpElimChildren.empty());
Node regElim =
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback