summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-03-15 18:09:16 -0500
committerGitHub <noreply@github.com>2021-03-15 23:09:16 +0000
commita6b7bb2502a969811f2e4b226c9ca631858ae42a (patch)
tree0340571ece59c51b497fd7772b9f04de7d265aae /test
parent372a64559c8d8552f923fa4950aa2b7cef9d9bf3 (diff)
Fix rewrite for double replace (#6152)
Fixes #6142.
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/strings/issue6142-repl-inv-rew.smt27
2 files changed, 8 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 5c28a34cc..14752f726 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -2036,6 +2036,7 @@ set(regress_1_tests
regress1/strings/issue5940-skc-len-conc.smt2
regress1/strings/issue5940-2-skc-len-conc.smt2
regress1/strings/issue6075-repl-len-one-rr.smt2
+ regress1/strings/issue6142-repl-inv-rew.smt2
regress1/strings/kaluza-fl.smt2
regress1/strings/loop002.smt2
regress1/strings/loop003.smt2
diff --git a/test/regress/regress1/strings/issue6142-repl-inv-rew.smt2 b/test/regress/regress1/strings/issue6142-repl-inv-rew.smt2
new file mode 100644
index 000000000..fdd4f0c78
--- /dev/null
+++ b/test/regress/regress1/strings/issue6142-repl-inv-rew.smt2
@@ -0,0 +1,7 @@
+; COMMAND-LINE: --strings-exp
+; EXPECT: sat
+(set-logic ALL)
+(declare-fun x () String)
+(declare-fun y () String)
+(assert (= (str.++ "A" y) (str.replace x (str.++ "A" y) (str.replace (str.++ "A" (str.replace y "" "A")) x "A"))))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback