summaryrefslogtreecommitdiff
path: root/src/expr/proof_node_updater.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-02-22 13:38:15 -0600
committerGitHub <noreply@github.com>2021-02-22 13:38:15 -0600
commit85d96c3668495fb087f059e5662072ae66d69e22 (patch)
tree3a39496d28823b8421d2fa10ecd46bff51e036aa /src/expr/proof_node_updater.cpp
parenta2d72a1fafccbeaeafec32f85776b03077dbb0fe (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.cpp8
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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback