summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine_scope.h
diff options
context:
space:
mode:
authorTim King <taking@google.com>2015-10-26 12:21:42 -0700
committerTim King <taking@google.com>2015-10-26 12:48:53 -0700
commit0f66dd16f35eac64149919f0f4048b422345c5eb (patch)
treec37007e7e0b69ac6065f1928a29be54f648158b9 /src/smt/smt_engine_scope.h
parent52b8d1508d91a2284c29e3fae02a22307e42a476 (diff)
This commit fixes a bug related to a public header depending on a compiler flag. This resulted in user code seeing a different size for the SmtEngine class than what was compiled in the library. Proofs are enabled by default again. See http://cvc4.cs.nyu.edu/bugs/show_bug.cgi?id=688 for more information.
Diffstat (limited to 'src/smt/smt_engine_scope.h')
-rw-r--r--src/smt/smt_engine_scope.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/smt/smt_engine_scope.h b/src/smt/smt_engine_scope.h
index 701775c9c..bc978b728 100644
--- a/src/smt/smt_engine_scope.h
+++ b/src/smt/smt_engine_scope.h
@@ -17,14 +17,15 @@
#include "cvc4_private.h"
+#pragma once
+
+#include "expr/node_manager.h"
#include "smt/smt_engine.h"
-#include "util/tls.h"
+#include "smt/options.h"
+#include "util/configuration_private.h"
#include "util/cvc4_assert.h"
-#include "expr/node_manager.h"
#include "util/output.h"
-#include "proof/proof.h"
-
-#pragma once
+#include "util/tls.h"
namespace CVC4 {
@@ -43,14 +44,14 @@ inline bool smtEngineInScope() {
}
inline ProofManager* currentProofManager() {
-#ifdef CVC4_PROOF
+#if IS_PROOFS_BUILD
Assert(options::proof() || options::unsatCores());
Assert(s_smtEngine_current != NULL);
return s_smtEngine_current->d_proofManager;
-#else /* CVC4_PROOF */
+#else /* IS_PROOFS_BUILD */
InternalError("proofs/unsat cores are not on, but ProofManager requested");
return NULL;
-#endif /* CVC4_PROOF */
+#endif /* IS_PROOFS_BUILD */
}
class SmtScope : public NodeManagerScope {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback