summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-11-29 10:51:18 -0800
committerAndres Noetzli <andres.noetzli@gmail.com>2018-11-29 10:51:18 -0800
commit362201ae4b3d7ba0c035ff4ac698c555023b76b3 (patch)
treedc0b671a8218729aea0938c6948fd6a739821ce6
parent1b467a8bab7321990b73f00be3466552565b8453 (diff)
minor
-rw-r--r--src/theory/strings/theory_strings_preprocess.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theory/strings/theory_strings_preprocess.cpp b/src/theory/strings/theory_strings_preprocess.cpp
index d095d6801..e2a057e49 100644
--- a/src/theory/strings/theory_strings_preprocess.cpp
+++ b/src/theory/strings/theory_strings_preprocess.cpp
@@ -84,8 +84,13 @@ Node StringsPreprocess::simplify( Node t, std::vector< Node > &new_nodes ) {
nm->mkNode(GEQ, lt0, t12),
nm->mkNode(MINUS, lt0, t12),
d_zero));
+ Node b14 = nm->mkNode(STRING_LENGTH, skt)
+ .eqNode(nm->mkNode(ITE,
+ nm->mkNode(GEQ, lt0, t12),
+ m,
+ nm->mkNode(MINUS, lt0, n)));
- Node b1 = nm->mkNode(AND, b11, b12, b13);
+ Node b1 = nm->mkNode(AND, b11, b12, b13, b14);
Node b2 = skt.eqNode(d_empty_str);
Node lemma = nm->mkNode(ITE, cond, b1, b2);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback