projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f47b4
)
A more informative error message when a theory is not yet supported by the proof...
author
guykatzz
<katz911@gmail.com>
Wed, 31 May 2017 18:36:05 +0000
(11:36 -0700)
committer
guykatzz
<katz911@gmail.com>
Wed, 31 May 2017 18:36:05 +0000
(11:36 -0700)
src/proof/theory_proof.cpp
patch
|
blob
|
history
diff --git
a/src/proof/theory_proof.cpp
b/src/proof/theory_proof.cpp
index c684aa6bcfd2db205533a857cd55875f44059127..1d694c947225e82d8d79a384cb4eca4a4e03e903 100644
(file)
--- a/
src/proof/theory_proof.cpp
+++ b/
src/proof/theory_proof.cpp
@@
-118,7
+118,12
@@
TheoryProof* TheoryProofEngine::getTheoryProof(theory::TheoryId id) {
id = theory::THEORY_UF;
}
- Assert (d_theoryProofTable.find(id) != d_theoryProofTable.end());
+ if (d_theoryProofTable.find(id) == d_theoryProofTable.end()) {
+ std::stringstream ss;
+ ss << "Error! Proofs not yet supported for the following theory: " << id << std::endl;
+ InternalError(ss.str().c_str());
+ }
+
return d_theoryProofTable[id];
}