summaryrefslogtreecommitdiff
path: root/src/prop/prop_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/prop/prop_engine.cpp')
-rw-r--r--src/prop/prop_engine.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/prop/prop_engine.cpp b/src/prop/prop_engine.cpp
index de60b5f7d..d7b1e6d99 100644
--- a/src/prop/prop_engine.cpp
+++ b/src/prop/prop_engine.cpp
@@ -58,13 +58,12 @@ public:
};
PropEngine::PropEngine(const Options* opts, DecisionEngine* de,
- TheoryEngine* te, Context* context)
-: d_inCheckSat(false),
+ TheoryEngine* te, Context* context) :
+ d_inCheckSat(false),
d_options(opts),
d_decisionEngine(de),
d_theoryEngine(te),
- d_context(context)
-{
+ d_context(context) {
Debug("prop") << "Constructing the PropEngine" << endl;
d_satSolver = new SatSolver(this, d_theoryEngine, d_context, d_options);
d_cnfStream = new CVC4::prop::TseitinCnfStream(d_satSolver);
@@ -129,6 +128,9 @@ Result PropEngine::checkSat() {
Debug("prop") << "PropEngine::checkSat() => "
<< (result ? "true" : "false") << endl;
+ if(result && d_theoryEngine->isIncomplete()) {
+ return Result(Result::SAT_UNKNOWN, Result::INCOMPLETE);
+ }
return Result(result ? Result::SAT : Result::UNSAT);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback