summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiana Hadarean <lianahady@gmail.com>2013-10-07 23:52:21 -0400
committerLiana Hadarean <lianahady@gmail.com>2013-10-07 23:52:21 -0400
commitba8efaff308ef1eb14ec40dd74e0e18c16126d2c (patch)
tree6be32d8b470b21a5ce5b6da35c53fdcbc39eeaea /src
parent867e79e0823c689889224078dfaebec03aee9730 (diff)
fixed some bugs
Diffstat (limited to 'src')
-rw-r--r--src/proof/proof_manager.cpp2
-rw-r--r--src/proof/sat_proof.cpp3
-rw-r--r--src/prop/prop_engine.cpp2
-rw-r--r--src/theory/theory_engine.cpp3
4 files changed, 8 insertions, 2 deletions
diff --git a/src/proof/proof_manager.cpp b/src/proof/proof_manager.cpp
index 43750a504..7ca1a1e65 100644
--- a/src/proof/proof_manager.cpp
+++ b/src/proof/proof_manager.cpp
@@ -34,8 +34,6 @@ ProofManager::ProofManager(ProofFormat format):
d_fullProof(NULL),
d_format(format)
{
- // FIXME this is until it actually has theory references
- initTheoryProof();
}
ProofManager::~ProofManager() {
diff --git a/src/proof/sat_proof.cpp b/src/proof/sat_proof.cpp
index 624aac237..dc83e6aa3 100644
--- a/src/proof/sat_proof.cpp
+++ b/src/proof/sat_proof.cpp
@@ -590,6 +590,9 @@ void SatProof::finalizeProof(::Minisat::CRef conflict_ref) {
res->addStep(lit, res_id, !sign(lit));
}
registerResolution(d_emptyClauseId, res);
+ // FIXME: massive hack
+ Proof* proof = ProofManager::getProof();
+ proof->toStream(std::cout);
}
/// CRef manager
diff --git a/src/prop/prop_engine.cpp b/src/prop/prop_engine.cpp
index a169d31e6..036877b6a 100644
--- a/src/prop/prop_engine.cpp
+++ b/src/prop/prop_engine.cpp
@@ -19,6 +19,7 @@
#include "prop/theory_proxy.h"
#include "prop/sat_solver.h"
#include "prop/sat_solver_factory.h"
+#include "proof/proof_manager.h"
#include "decision/decision_engine.h"
#include "decision/options.h"
@@ -90,6 +91,7 @@ PropEngine::PropEngine(TheoryEngine* te, DecisionEngine *de, Context* satContext
d_decisionEngine->setSatSolver(d_satSolver);
d_decisionEngine->setCnfStream(d_cnfStream);
+ PROOF (ProofManager::currentPM()->initCnfProof(d_cnfStream); );
}
PropEngine::~PropEngine() {
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp
index 78710e4b9..84bbbc179 100644
--- a/src/theory/theory_engine.cpp
+++ b/src/theory/theory_engine.cpp
@@ -46,6 +46,8 @@
#include "theory/rewriterules/efficient_e_matching.h"
+#include "proof/proof_manager.h"
+
using namespace std;
using namespace CVC4;
@@ -138,6 +140,7 @@ TheoryEngine::TheoryEngine(context::Context* context,
StatisticsRegistry::registerStat(&d_combineTheoriesTime);
d_true = NodeManager::currentNM()->mkConst<bool>(true);
d_false = NodeManager::currentNM()->mkConst<bool>(false);
+ PROOF (ProofManager::currentPM()->initTheoryProof(); );
}
TheoryEngine::~TheoryEngine() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback