summaryrefslogtreecommitdiff
path: root/src/proof/proof_manager.cpp
diff options
context:
space:
mode:
authorGuy <katz911@gmail.com>2016-07-19 19:13:01 -0700
committerGuy <katz911@gmail.com>2016-07-19 19:13:01 -0700
commit3e3563a1f312b024653503837a56aef10a41eb9f (patch)
treea1167a8c8d7b6b1900ea2e9e4e3fba473827b113 /src/proof/proof_manager.cpp
parent06d91e9121ecdadfc96d6175792992395833329f (diff)
Allow a caller to query whether an unsat core is available or not
Diffstat (limited to 'src/proof/proof_manager.cpp')
-rw-r--r--src/proof/proof_manager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/proof/proof_manager.cpp b/src/proof/proof_manager.cpp
index 9b3d9a289..09fc5dc8b 100644
--- a/src/proof/proof_manager.cpp
+++ b/src/proof/proof_manager.cpp
@@ -292,8 +292,13 @@ void ProofManager::traceUnsatCore() {
}
}
+bool ProofManager::unsatCoreAvailable() const {
+ return d_satProof->derivedEmptyClause();
+}
+
void ProofManager::getLemmasInUnsatCore(theory::TheoryId theory, std::vector<Node> &lemmas) {
Assert(PROOF_ON(), "Cannot compute unsat core when proofs are off");
+ Assert(unsatCoreAvailable(), "Cannot get unsat core at this time. Mabye the input is SAT?" );
d_satProof->constructProof();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback