summaryrefslogtreecommitdiff
path: root/src/theory/strings/extf_solver.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-04-01 17:02:33 -0500
committerGitHub <noreply@github.com>2021-04-01 22:02:33 +0000
commitef2f19f8ba2a72d43586d1f4f364822dbe389aec (patch)
tree24bab218bc3930f360010f537a0be6cbefe0433d /src/theory/strings/extf_solver.h
parent7fa534c85cbb6eb2863f10840b39501a21acc0b9 (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 'src/theory/strings/extf_solver.h')
-rw-r--r--src/theory/strings/extf_solver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/strings/extf_solver.h b/src/theory/strings/extf_solver.h
index 3cfe2309c..bbc32e7a2 100644
--- a/src/theory/strings/extf_solver.h
+++ b/src/theory/strings/extf_solver.h
@@ -153,6 +153,12 @@ class ExtfSolver
*/
std::vector<Node> getActive(Kind k) const;
//---------------------------------- end information about ExtTheory
+ /**
+ * Print the relevant information regarding why we have a model, return as a
+ * string.
+ */
+ std::string debugPrintModel();
+
private:
/** do reduction
*
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback