diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress0/strings/bidir_star.smt2 | 8 |
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) |