Moved the assertion to a better spot
authorGuy <katz911@gmail.com>
Fri, 15 Jul 2016 23:53:54 +0000 (16:53 -0700)
committerGuy <katz911@gmail.com>
Fri, 15 Jul 2016 23:53:54 +0000 (16:53 -0700)
src/proof/proof_manager.cpp

index 43328e1de05b9fdbedcb792e029e9ddcce451669..9b3d9a289019926a1fb737e5329c7b7f96b702e2 100644 (file)
@@ -69,7 +69,6 @@ ProofManager::~ProofManager() {
 }
 
 ProofManager* ProofManager::currentPM() {
-  Assert(PROOF_ON(), "Cannot call ProofManager when proofs are off");
   return smt::currentProofManager();
 }
 
@@ -294,6 +293,8 @@ void ProofManager::traceUnsatCore() {
 }
 
 void ProofManager::getLemmasInUnsatCore(theory::TheoryId theory, std::vector<Node> &lemmas) {
+  Assert(PROOF_ON(), "Cannot compute unsat core when proofs are off");
+
   d_satProof->constructProof();
 
   IdToSatClause used_lemmas;