From f713c6c9769bf810cddb8286e756e18bd2794a48 Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Fri, 22 May 2015 10:36:23 +0200 Subject: [PATCH] Added throw LogicException to method lemma. --- src/theory/output_channel.h | 3 ++- 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; -- 2.30.2