summaryrefslogtreecommitdiff
path: root/src/theory/trust_substitutions.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-05-07 14:09:58 -0500
committerGitHub <noreply@github.com>2021-05-07 19:09:58 +0000
commit89641ef6aae22610cf544f1e7545178ee6418597 (patch)
tree672e7991bbc1b7d2e1e5abf0a9b4a38c08b5baa2 /src/theory/trust_substitutions.h
parent50ff9213e6e6d36cea5a745e5c85ecbf1ca1ab62 (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/trust_substitutions.h')
-rw-r--r--src/theory/trust_substitutions.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theory/trust_substitutions.h b/src/theory/trust_substitutions.h
index ec5b2ffb5..b7b526205 100644
--- a/src/theory/trust_substitutions.h
+++ b/src/theory/trust_substitutions.h
@@ -89,7 +89,9 @@ class TrustSubstitutionMap : public ProofGenerator
* proving n = n*sigma, where the proof generator is provided by this class
* (when proofs are enabled).
*/
- TrustNode apply(Node n, bool doRewrite = true);
+ TrustNode applyTrusted(Node n, bool doRewrite = true);
+ /** Same as above, without proofs */
+ Node apply(Node n, bool doRewrite = true);
/** Get the proof for formula f */
std::shared_ptr<ProofNode> getProofFor(Node f) override;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback