summaryrefslogtreecommitdiff
path: root/test/regress
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
parent736713253104bcc5c3c0e19b0abcda4d20c68ab7 (diff)
Optimization for negative concatenation membership. (#3048)
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/strings/re-neg-concat-reduct.smt212
-rw-r--r--test/regress/regress2/strings/norn-dis-0707-3.smt21
3 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 0a5f0a972..f5571349f 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1573,6 +1573,7 @@ set(regress_1_tests
regress1/strings/re-agg-total1.smt2
regress1/strings/re-agg-total2.smt2
regress1/strings/re-elim-exact.smt2
+ regress1/strings/re-neg-concat-reduct.smt2
regress1/strings/re-unsound-080718.smt2
regress1/strings/regexp001.smt2
regress1/strings/regexp002.smt2
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)
diff --git a/test/regress/regress2/strings/norn-dis-0707-3.smt2 b/test/regress/regress2/strings/norn-dis-0707-3.smt2
index bc0f877ad..47b2e6b19 100644
--- a/test/regress/regress2/strings/norn-dis-0707-3.smt2
+++ b/test/regress/regress2/strings/norn-dis-0707-3.smt2
@@ -1,6 +1,7 @@
(set-logic QF_S)
(set-info :status sat)
(set-option :strings-exp true)
+(set-option :strings-fmf true)
(declare-fun var_0 () String)
(declare-fun var_1 () String)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback