diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-07 22:06:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 22:06:19 -0500 |
commit | 219891b2a3b23c2bff0a99e56e6510786d274ddf (patch) | |
tree | 6fc3b8fbd625bcdf7d07c86ee193ea2455b1f509 /test/regress | |
parent | c831d34205a473cbace8a546704a992ba8220dd6 (diff) |
Fix simple reg exp consume rewrite (#2281)
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/Makefile.tests | 1 | ||||
-rw-r--r-- | test/regress/regress1/strings/re-unsound-080718.smt2 | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests index 2be59087b..0724fc163 100644 --- a/test/regress/Makefile.tests +++ b/test/regress/Makefile.tests @@ -1473,6 +1473,7 @@ REG1_TESTS = \ regress1/strings/norn-nel-bug-052116.smt2 \ regress1/strings/norn-simp-rew-sat.smt2 \ regress1/strings/pierre150331.smt2 \ + regress1/strings/re-unsound-080718.smt2 \ regress1/strings/regexp001.smt2 \ regress1/strings/regexp002.smt2 \ regress1/strings/regexp003.smt2 \ diff --git a/test/regress/regress1/strings/re-unsound-080718.smt2 b/test/regress/regress1/strings/re-unsound-080718.smt2 new file mode 100644 index 000000000..96353e746 --- /dev/null +++ b/test/regress/regress1/strings/re-unsound-080718.smt2 @@ -0,0 +1,19 @@ +; COMMAND-LINE: --strings-print-ascii --strings-exp +; EXPECT: sat +(set-info :smt-lib-version 2.5) +(set-logic ALL) +(set-info :status sat) +(declare-fun x () String) +(assert +(and +(not (= + (str.in.re x (re.++ (str.to.re "B") (re.* (str.to.re "B")))) + (str.in.re x (re.++ (str.to.re "B") (str.to.re (str.++ "B" "B")))) +)) +(not (= + (str.in.re x (re.++ (re.union (re.++ (str.to.re "A") re.allchar ) re.allchar ) (str.to.re "B"))) + (str.in.re x (re.++ (str.to.re "A") (str.to.re "B"))) +)) +) +) +(check-sat) |