diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-05-07 14:09:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 19:09:58 +0000 |
commit | 89641ef6aae22610cf544f1e7545178ee6418597 (patch) | |
tree | 672e7991bbc1b7d2e1e5abf0a9b4a38c08b5baa2 /src/theory/rewriter.h | |
parent | 50ff9213e6e6d36cea5a745e5c85ecbf1ca1ab62 (diff) |
Simplifications to expand definitions (#6487)
This removes the expandOnly flag from expandDefinitions.
The use of expandOnly = true is equivalent to applying top-level substitutions only, which should be done explicitly via Env::getTopLevelSubstitutions. It updates the trust substitutions utility to distinguish apply vs applyTrusted for convenience for this purpose.
This also breaks several dependencies in e.g. expand definitions module.
Diffstat (limited to 'src/theory/rewriter.h')
-rw-r--r-- | src/theory/rewriter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theory/rewriter.h b/src/theory/rewriter.h index 3f4676fa0..b3ea3b542 100644 --- a/src/theory/rewriter.h +++ b/src/theory/rewriter.h @@ -147,6 +147,9 @@ class Rewriter { theory::TheoryId tid, std::function<RewriteResponse(RewriteEnvironment*, TNode)> fn); + /** Get the theory rewriter for the given id */ + TheoryRewriter* getTheoryRewriter(theory::TheoryId theoryId); + private: /** * Get the rewriter associated with the SmtEngine in scope. |