summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-06-10 16:19:35 -0500
committerGitHub <noreply@github.com>2019-06-10 16:19:35 -0500
commitb38fc2ed13342524cefe7480c06c9afbcc73aedd (patch)
tree821cc8436e31a23ed81a6990c70938ad5ee37e1b /test/regress/regress1/strings
parent736713253104bcc5c3c0e19b0abcda4d20c68ab7 (diff)
Optimization for negative concatenation membership. (#3048)
Diffstat (limited to 'test/regress/regress1/strings')
-rw-r--r--test/regress/regress1/strings/re-neg-concat-reduct.smt212
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/re-neg-concat-reduct.smt2 b/test/regress/regress1/strings/re-neg-concat-reduct.smt2
new file mode 100644
index 000000000..cbe8c4a8b
--- /dev/null
+++ b/test/regress/regress1/strings/re-neg-concat-reduct.smt2
@@ -0,0 +1,12 @@
+(set-info :smt-lib-version 2.5)
+(set-logic QF_S)
+(set-info :status sat)
+(set-option :strings-exp true)
+
+(declare-fun x () String)
+
+(assert (not (= x "")))
+(assert (not (str.in.re x (re.++ (str.to.re "AB") (re.* (str.to.re "A"))))))
+(assert (not (str.in.re x (re.++ (re.* (str.to.re "A")) (str.to.re "B")))))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback