diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-05-22 14:27:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 14:27:13 -0500 |
commit | 0b49b88e4d1c299a7cd662cd2221fd826b5bc972 (patch) | |
tree | e2405e359c0d6bd6b20542915b43a16dba198b62 /test/regress | |
parent | 46501b092b2d9419273d42f28a7a543ae9b2e338 (diff) |
(proof-new) Add rewrite corresponding to regular expression inclusion (#4513)
This introduces a rewrite based on regular expression inclusion (using calls to the RegExpEntail utility function).
This allows us to justify the regular expression inclusion inference as a rewrite.
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress0/strings/re-in-rewrite.smt2 | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 506857479..2df07db5a 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -964,6 +964,7 @@ set(regress_0_tests regress0/strings/parser-syms.cvc regress0/strings/quad-028-2-2-unsat.smt2 regress0/strings/re.all.smt2 + regress0/strings/re-in-rewrite.smt2 regress0/strings/re-syntax.smt2 regress0/strings/re_diff.smt2 regress0/strings/regexp-native-simple.cvc diff --git a/test/regress/regress0/strings/re-in-rewrite.smt2 b/test/regress/regress0/strings/re-in-rewrite.smt2 new file mode 100644 index 000000000..d1567768d --- /dev/null +++ b/test/regress/regress0/strings/re-in-rewrite.smt2 @@ -0,0 +1,5 @@ +(set-logic QF_SLIA) +(set-info :status unsat) +(declare-fun x () String) +(assert (str.in_re x (re.inter (re.comp (re.++ re.allchar (re.* re.allchar))) (re.++ (str.to_re "a") (re.* re.allchar))))) +(check-sat) |