diff options
Diffstat (limited to 'src/prop/cnf_stream.cpp')
-rw-r--r-- | src/prop/cnf_stream.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/prop/cnf_stream.cpp b/src/prop/cnf_stream.cpp index 09e072370..7f1456639 100644 --- a/src/prop/cnf_stream.cpp +++ b/src/prop/cnf_stream.cpp @@ -43,8 +43,9 @@ using namespace CVC4::kind; namespace CVC4 { namespace prop { -CnfStream::CnfStream(SatInputInterface *satSolver, theory::Registrar registrar) : +CnfStream::CnfStream(SatInputInterface *satSolver, theory::Registrar registrar, bool fullLitToNodeMap) : d_satSolver(satSolver), + d_fullLitToNodeMap(fullLitToNodeMap), d_registrar(registrar) { } @@ -129,7 +130,7 @@ void TseitinCnfStream::ensureLiteral(TNode n) { n.toString().c_str(), n.getType().toString().c_str()); - bool negated = false; + bool negated CVC4_UNUSED = false; SatLiteral lit; if(n.getKind() == kind::NOT) { @@ -178,7 +179,7 @@ SatLiteral CnfStream::newLiteral(TNode node, bool theoryLiteral) { d_translationCache[node.notNode()].level = level; // If it's a theory literal, need to store it for back queries - if ( theoryLiteral || + if ( theoryLiteral || d_fullLitToNodeMap || ( CVC4_USE_REPLAY && Options::current()->replayLog != NULL ) || Dump.isOn("clauses") ) { d_nodeCache[lit] = node; |