Added throw LogicException to method lemma.
authorJordy Ruiz <jordy.ruiz@irit.fr>
Fri, 22 May 2015 08:36:23 +0000 (10:36 +0200)
committerJordy Ruiz <jordy.ruiz@irit.fr>
Fri, 22 May 2015 08:36:23 +0000 (10:36 +0200)
src/theory/output_channel.h
src/theory/theory_engine.h

index fdf253d3f28350e3167bbc0f304750fb8430c5d9..bef39f5360101e8fd8ea1ab760eda8efad256850 100644 (file)
@@ -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
index 0dd8b5f71c6ac7b08c7683e6cf2a1833eeb48126..8aedc65f07104b348623d4ad1a7cf14cfbf1f03f 100644 (file)
@@ -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;