summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-12-05 06:39:32 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-12-05 08:39:32 -0600
commit97c2553d0b0535bd47517f755897c441e223568e (patch)
treecfbc5746e6bc3916c7c71a69a9fa9b6c49687ad9 /test
parent2c68fa6fea5f98d6e5078961156d8c746bbd13c3 (diff)
Bi-directional unrolling of R* regular expressions (#3532)
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress0/strings/bidir_star.smt28
2 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 911943c64..90038872f 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -858,6 +858,7 @@ set(regress_0_tests
regress0/smtlib/reset-force-logic.smt2
regress0/smtlib/reset-set-logic.smt2
regress0/smtlib/set-info-status.smt2
+ regress0/strings/bidir_star.smt2
regress0/strings/bug001.smt2
regress0/strings/bug002.smt2
regress0/strings/bug612.smt2
diff --git a/test/regress/regress0/strings/bidir_star.smt2 b/test/regress/regress0/strings/bidir_star.smt2
new file mode 100644
index 000000000..7303d138f
--- /dev/null
+++ b/test/regress/regress0/strings/bidir_star.smt2
@@ -0,0 +1,8 @@
+; COMMAND-LINE: --strings-exp
+(set-logic SLIA)
+(declare-fun a () String)
+(assert (>= (str.len a) 2))
+(assert (str.in.re a (re.+ (re.range "0" "1"))))
+(assert (<= 3 (str.to.int (str.substr a (+ (- 2) (str.len a)) 1))))
+(set-info :status unsat)
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback