summaryrefslogtreecommitdiff
path: root/test/regress/regress0/strings
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/regress/regress0/strings
parent2c68fa6fea5f98d6e5078961156d8c746bbd13c3 (diff)
Bi-directional unrolling of R* regular expressions (#3532)
Diffstat (limited to 'test/regress/regress0/strings')
-rw-r--r--test/regress/regress0/strings/bidir_star.smt28
1 files changed, 8 insertions, 0 deletions
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