diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-04-01 17:02:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 22:02:33 +0000 |
commit | ef2f19f8ba2a72d43586d1f4f364822dbe389aec (patch) | |
tree | 24bab218bc3930f360010f537a0be6cbefe0433d /test/regress/regress1/strings | |
parent | 7fa534c85cbb6eb2863f10840b39501a21acc0b9 (diff) |
Simplify caching of regular expression unfolding (#6262)
This ensures that we always cache regular expressions in a user-dependent manner. Previously, we were erroneously caching in a SAT-dependent way for very rare cases when non-constant regular expressions were used. Since we never dependent on current assertions for the unfolding, there is no need to cache in the SAT context.
This fixes the second benchmark from #6203.
This PR also improves our traces for checking models in strings.
Diffstat (limited to 'test/regress/regress1/strings')
-rw-r--r-- | test/regress/regress1/strings/issue6203-2-re-ccache.smt2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/issue6203-2-re-ccache.smt2 b/test/regress/regress1/strings/issue6203-2-re-ccache.smt2 new file mode 100644 index 000000000..2deffdadd --- /dev/null +++ b/test/regress/regress1/strings/issue6203-2-re-ccache.smt2 @@ -0,0 +1,8 @@ +; COMMAND-LINE: --strings-exp +; EXPECT: sat +(set-logic ALL) +(declare-fun a () String) +(assert + (xor (str.in_re a (re.++ (re.* re.allchar) (str.to_re "A") re.allchar (re.* re.allchar))) + (str.in_re a (re.++ (re.* (str.to_re a)) (str.to_re "A") re.allchar)))) +(check-sat) |