diff options
author | lianah <lianahady@gmail.com> | 2015-05-27 19:25:04 +0100 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2015-05-27 19:25:04 +0100 |
commit | 3df7ea65b701a9ab054179af7efb4be120d280f2 (patch) | |
tree | 35d113a1122b85aa296726a68d0a25aab643d30b | |
parent | cd5b8c7aa15b9a2d84836e712c8dc61667afb348 (diff) | |
parent | f713c6c9769bf810cddb8286e756e18bd2794a48 (diff) |
Merge pull request #75 from Dunedune/master
Added missing LogicException to throws in method lemma.
-rw-r--r-- | src/theory/output_channel.h | 3 | ||||
-rw-r--r-- | src/theory/theory_engine.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/output_channel.h b/src/theory/output_channel.h index fdf253d3f..bef39f536 100644 --- a/src/theory/output_channel.h +++ b/src/theory/output_channel.h @@ -22,6 +22,7 @@ #include "util/cvc4_assert.h" #include "theory/interrupted.h" #include "util/resource_manager.h" +#include "smt/logic_exception.h" namespace CVC4 { namespace theory { @@ -120,7 +121,7 @@ public: */ virtual LemmaStatus lemma(TNode n, bool removable = false, bool preprocess = false) - throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) = 0; + throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException, LogicException) = 0; /** * Request a split on a new theory atom. This is equivalent to diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h index 0dd8b5f71..8aedc65f0 100644 --- a/src/theory/theory_engine.h +++ b/src/theory/theory_engine.h @@ -303,7 +303,7 @@ class TheoryEngine { return d_engine->propagate(literal, d_theory); } - theory::LemmaStatus lemma(TNode lemma, bool removable = false, bool preprocess = false) throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException) { + theory::LemmaStatus lemma(TNode lemma, bool removable = false, bool preprocess = false) throw(TypeCheckingExceptionPrivate, AssertionException, UnsafeInterruptException, LogicException) { Trace("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma(" << lemma << ")" << std::endl; ++ d_statistics.lemmas; d_engine->d_outputChannelUsed = true; |