diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-02-22 13:38:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 13:38:15 -0600 |
commit | 85d96c3668495fb087f059e5662072ae66d69e22 (patch) | |
tree | 3a39496d28823b8421d2fa10ecd46bff51e036aa /src/expr/proof_node_updater.cpp | |
parent | a2d72a1fafccbeaeafec32f85776b03077dbb0fe (diff) |
(proof-new) Option to automatically add SYMM steps during proof node update. (#5939)
Required for work on external proof conversions.
Diffstat (limited to 'src/expr/proof_node_updater.cpp')
-rw-r--r-- | src/expr/proof_node_updater.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/expr/proof_node_updater.cpp b/src/expr/proof_node_updater.cpp index af32c223d..16e339645 100644 --- a/src/expr/proof_node_updater.cpp +++ b/src/expr/proof_node_updater.cpp @@ -35,11 +35,13 @@ bool ProofNodeUpdaterCallback::update(Node res, ProofNodeUpdater::ProofNodeUpdater(ProofNodeManager* pnm, ProofNodeUpdaterCallback& cb, - bool mergeSubproofs) + bool mergeSubproofs, + bool autoSym) : d_pnm(pnm), d_cb(cb), d_debugFreeAssumps(false), - d_mergeSubproofs(mergeSubproofs) + d_mergeSubproofs(mergeSubproofs), + d_autoSym(autoSym) { } @@ -183,7 +185,7 @@ bool ProofNodeUpdater::runUpdate(std::shared_ptr<ProofNode> cur, } PfRule id = cur->getRule(); // use CDProof to open a scope for which the callback updates - CDProof cpf(d_pnm); + CDProof cpf(d_pnm, nullptr, "ProofNodeUpdater::CDProof", d_autoSym); const std::vector<std::shared_ptr<ProofNode>>& cc = cur->getChildren(); std::vector<Node> ccn; for (const std::shared_ptr<ProofNode>& cp : cc) |