summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-09-05 09:14:14 -0500
committerGitHub <noreply@github.com>2018-09-05 09:14:14 -0500
commitcc653cb01f824313d22ffc569ba46bc14b447364 (patch)
treee32bba095f973d6969625f530ba5322874957e90 /test
parentf7dd482aa1cec323273d98fde724dc072471a5f7 (diff)
Extended rewriter for string equalities (#2427)
Diffstat (limited to 'test')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress0/strings/str_unsound_ext_rew_eq.smt212
2 files changed, 13 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index ca9b88ecf..39a7a4f4d 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -824,6 +824,7 @@ REG0_TESTS = \
regress0/strings/strings-charat.cvc \
regress0/strings/strings-native-simple.cvc \
regress0/strings/strip-endpoint-itos.smt2 \
+ regress0/strings/str_unsound_ext_rew_eq.smt2 \
regress0/strings/substr-rewrites.smt2 \
regress0/strings/type001.smt2 \
regress0/strings/unsound-0908.smt2 \
diff --git a/test/regress/regress0/strings/str_unsound_ext_rew_eq.smt2 b/test/regress/regress0/strings/str_unsound_ext_rew_eq.smt2
new file mode 100644
index 000000000..62ef4bd3a
--- /dev/null
+++ b/test/regress/regress0/strings/str_unsound_ext_rew_eq.smt2
@@ -0,0 +1,12 @@
+(set-logic ALL)
+(set-info :status unsat)
+(declare-fun y () String)
+
+(declare-fun x () String)
+
+(assert
+(= (str.++ (str.++ (str.++ y "B") "A") x) (str.++ (str.++ "A" x) "B"))
+)
+
+; triggered an unsoundness during development of extended rewriter for strings, caught by sygus-rr-verify
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback