diff options
author | Guy <katz911@gmail.com> | 2016-07-19 19:13:01 -0700 |
---|---|---|
committer | Guy <katz911@gmail.com> | 2016-07-19 19:13:01 -0700 |
commit | 3e3563a1f312b024653503837a56aef10a41eb9f (patch) | |
tree | a1167a8c8d7b6b1900ea2e9e4e3fba473827b113 /src/proof/proof_manager.cpp | |
parent | 06d91e9121ecdadfc96d6175792992395833329f (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.cpp | 5 |
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(); |