summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-04-09 14:11:31 -0500
committerGitHub <noreply@github.com>2021-04-09 14:11:31 -0500
commite5358e498db6d934d0b8704cfd023b0f67b6fbc0 (patch)
tree36acd19d5fdb0b8bde5420862a8d4a725d0cb50d /test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2
parent9ece5fa56493692aff1a17c73e0039fd1b232a06 (diff)
Add regressions for issue 6214 (#6305)
Adds 3 of the 6 benchmarks from issue 6214, the 1st and 5th benchmarks timeout. Fixes #6214. These benchmarks were fixed by 3c98bb2.
Diffstat (limited to 'test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2')
-rw-r--r--test/regress/regress1/strings/issue6214-2-sym-re-inc.smt213
1 files changed, 13 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2 b/test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2
new file mode 100644
index 000000000..0e74394ee
--- /dev/null
+++ b/test/regress/regress1/strings/issue6214-2-sym-re-inc.smt2
@@ -0,0 +1,13 @@
+; COMMAND-LINE: --strings-exp
+; EXPECT: unsat
+(set-logic ALL)
+(declare-fun a () String)
+(declare-fun b () String)
+(assert (str.in_re a (re.range "a" "c")))
+(assert
+ (str.in_re a
+ (re.*
+ (re.union
+ (re.++ (re.union (str.to_re "a") (str.to_re "b")) (str.to_re "a"))
+ (str.to_re (str.from_int (str.len b)))))))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback