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)
{
}
}
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)
* @param cb The callback to apply to each node
* @param mergeSubproofs Whether to automatically merge subproofs within
* the same SCOPE that prove the same fact.
+ * @param autoSym Whether intermediate CDProof objects passed to updater
+ * callbacks automatically introduce SYMM steps.
*/
ProofNodeUpdater(ProofNodeManager* pnm,
ProofNodeUpdaterCallback& cb,
- bool mergeSubproofs = false);
+ bool mergeSubproofs = false,
+ bool autoSym = true);
/**
* Post-process, which performs the main post-processing technique described
* above.
std::vector<Node> d_freeAssumps;
/** Whether we are merging subproofs */
bool d_mergeSubproofs;
+ /**
+ * Whether intermediate CDProof objects passed to updater callbacks
+ * automatically introduce SYMM steps.
+ */
+ bool d_autoSym;
};
} // namespace CVC4