}
ProofManager::~ProofManager() {
- delete d_satProof;
- delete d_cnfProof;
- delete d_theoryProof;
- delete d_fullProof;
+ if (d_satProof) delete d_satProof;
+ if (d_cnfProof) delete d_cnfProof;
+ if (d_theoryProof) delete d_theoryProof;
+ if (d_fullProof) delete d_fullProof;
}
ProofManager* ProofManager::currentPM() {
// FIXME: Maybe move into SmtScope?
inline ProofManager* currentProofManager() {
#if IS_PROOFS_BUILD
- Assert(options::proof() || options::unsatCores());
Assert(s_smtEngine_current != NULL);
return s_smtEngine_current->d_proofManager;
#else /* IS_PROOFS_BUILD */
d_true = NodeManager::currentNM()->mkConst<bool>(true);
d_false = NodeManager::currentNM()->mkConst<bool>(false);
- PROOF (ProofManager::currentPM()->initTheoryProofEngine(); );
+#ifdef CVC4_PROOF
+ ProofManager::currentPM()->initTheoryProofEngine();
+#endif
d_iteUtilities = new ITEUtilities(d_iteRemover.getContainsVisitor());