summaryrefslogtreecommitdiff
path: root/src/theory
diff options
context:
space:
mode:
authorTim King <taking@google.com>2016-11-18 15:17:31 -0800
committerTim King <taking@google.com>2016-11-18 15:28:24 -0800
commit044e20567fa7252be33aa0108b2f795b8181fb04 (patch)
tree1577f0cf1ad50aafc748628f681fc3acf7c6b4e3 /src/theory
parentc1f42884d4a277c2dadb876c967d0d7097b7b5f0 (diff)
Removing some throw specifiers from OutputChannel. Fixes bug 716.
Diffstat (limited to 'src/theory')
-rw-r--r--src/theory/output_channel.h13
-rw-r--r--src/theory/theory_engine.cpp37
-rw-r--r--src/theory/theory_engine.h5
3 files changed, 25 insertions, 30 deletions
diff --git a/src/theory/output_channel.h b/src/theory/output_channel.h
index 639793c7f..4ca113eed 100644
--- a/src/theory/output_channel.h
+++ b/src/theory/output_channel.h
@@ -101,7 +101,7 @@ public:
* unit conflict) which is assigned TRUE (and T-conflicting) in the
* current assignment.
* @param pf - a proof of the conflict. This is only non-null if proofs
- * are enabled.
+ * are enabled.
*/
virtual void conflict(TNode n, Proof* pf = NULL) throw(AssertionException, UnsafeInterruptException) = 0;
@@ -128,17 +128,15 @@ public:
virtual LemmaStatus lemma(TNode n, ProofRule rule,
bool removable = false,
bool preprocess = false,
- bool sendAtoms = false)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) = 0;
+ bool sendAtoms = false) = 0;
/**
* Variant of the lemma function that does not require providing a proof rule.
*/
- virtual LemmaStatus lemma(TNode n,
+ virtual LemmaStatus lemma(TNode n,
bool removable = false,
bool preprocess = false,
- bool sendAtoms = false)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) {
+ bool sendAtoms = false) {
return lemma(n, RULE_INVALID, removable, preprocess, sendAtoms);
}
@@ -153,8 +151,7 @@ public:
return splitLemma(n.orNode(n.notNode()));
}
- virtual LemmaStatus splitLemma(TNode n, bool removable = false)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) = 0;
+ virtual LemmaStatus splitLemma(TNode n, bool removable = false) = 0;
/**
* If a decision is made on n, it must be in the phase specified.
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp
index c21aa5445..5ef768fd3 100644
--- a/src/theory/theory_engine.cpp
+++ b/src/theory/theory_engine.cpp
@@ -77,22 +77,18 @@ theory::LemmaStatus TheoryEngine::EngineOutputChannel::lemma(TNode lemma,
ProofRule rule,
bool removable,
bool preprocess,
- bool sendAtoms)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) {
- Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma(" << lemma << ")" << ", preprocess = " << preprocess << std::endl;
- ++ d_statistics.lemmas;
+ bool sendAtoms) {
+ Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
+ << lemma << ")"
+ << ", preprocess = " << preprocess << std::endl;
+ ++d_statistics.lemmas;
d_engine->d_outputChannelUsed = true;
- PROOF({
- registerLemmaRecipe(lemma, lemma, preprocess, d_theory);
- });
+ PROOF({ registerLemmaRecipe(lemma, lemma, preprocess, d_theory); });
- theory::LemmaStatus result = d_engine->lemma(lemma,
- rule,
- false,
- removable,
- preprocess,
- sendAtoms ? d_theory : theory::THEORY_LAST);
+ theory::LemmaStatus result =
+ d_engine->lemma(lemma, rule, false, removable, preprocess,
+ sendAtoms ? d_theory : theory::THEORY_LAST);
return result;
}
@@ -179,14 +175,17 @@ void TheoryEngine::EngineOutputChannel::registerLemmaRecipe(Node lemma, Node ori
ProofManager::getCnfProof()->setProofRecipe(&proofRecipe);
}
-theory::LemmaStatus TheoryEngine::EngineOutputChannel::splitLemma(TNode lemma, bool removable)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) {
- Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma(" << lemma << ")" << std::endl;
- ++ d_statistics.lemmas;
+theory::LemmaStatus TheoryEngine::EngineOutputChannel::splitLemma(
+ TNode lemma, bool removable) {
+ Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
+ << lemma << ")" << std::endl;
+ ++d_statistics.lemmas;
d_engine->d_outputChannelUsed = true;
- Debug("pf::explain") << "TheoryEngine::EngineOutputChannel::splitLemma( " << lemma << " )" << std::endl;
- theory::LemmaStatus result = d_engine->lemma(lemma, RULE_SPLIT, false, removable, false, d_theory);
+ Debug("pf::explain") << "TheoryEngine::EngineOutputChannel::splitLemma( "
+ << lemma << " )" << std::endl;
+ theory::LemmaStatus result =
+ d_engine->lemma(lemma, RULE_SPLIT, false, removable, false, d_theory);
return result;
}
diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h
index fc98c6e3a..3273b3d19 100644
--- a/src/theory/theory_engine.h
+++ b/src/theory/theory_engine.h
@@ -279,10 +279,9 @@ class TheoryEngine {
ProofRule rule,
bool removable = false,
bool preprocess = false,
- bool sendAtoms = false)
- throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException);
+ bool sendAtoms = false);
- theory::LemmaStatus splitLemma(TNode lemma, bool removable = false) throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException);
+ theory::LemmaStatus splitLemma(TNode lemma, bool removable = false);
void demandRestart() throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) {
NodeManager* curr = NodeManager::currentNM();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback