summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-03-21 08:03:48 -0500
committerGitHub <noreply@github.com>2018-03-21 08:03:48 -0500
commit8f0aae827e16f4dfcebb8dad2cc528649d40b16a (patch)
tree5fe4cfd49013cb0f46ea4641099b66083bb1e9a4 /test/regress/regress1/strings
parent614670f98a9ab2d3cfcb9f364a1b06d78f63ebb0 (diff)
Fix for string disequality processing (#1679)
Diffstat (limited to 'test/regress/regress1/strings')
-rw-r--r--test/regress/regress1/strings/Makefile.am3
-rw-r--r--test/regress/regress1/strings/goodAI.smt28
2 files changed, 10 insertions, 1 deletions
diff --git a/test/regress/regress1/strings/Makefile.am b/test/regress/regress1/strings/Makefile.am
index f6326e0c6..7e9242e73 100644
--- a/test/regress/regress1/strings/Makefile.am
+++ b/test/regress/regress1/strings/Makefile.am
@@ -73,7 +73,8 @@ TESTS = \
str007.smt2 \
rew-020618.smt2 \
double-replace.smt2 \
- string-unsound-sem.smt2
+ string-unsound-sem.smt2 \
+ goodAI.smt2
EXTRA_DIST = $(TESTS)
diff --git a/test/regress/regress1/strings/goodAI.smt2 b/test/regress/regress1/strings/goodAI.smt2
new file mode 100644
index 000000000..0dc5c8ab1
--- /dev/null
+++ b/test/regress/regress1/strings/goodAI.smt2
@@ -0,0 +1,8 @@
+(set-logic QF_S)
+(set-option :strings-exp true)
+(set-info :status sat)
+(declare-const input_0_1000 String)
+(assert (= (str.substr input_0_1000 0 4) "good"))
+(assert (= (str.substr input_0_1000 5 1) "I"))
+(assert (not (= input_0_1000 "goodAI")))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback