/*! \file engine_output_channel.cpp
** \verbatim
** Top contributors (to current version):
- ** Andrew Reynolds, Guy Katz, Tim King
+ ** Andrew Reynolds, Tim King, Morgan Deters
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
- ** in the top-level source directory) and their institutional affiliations.
+ ** in the top-level source directory and their institutional affiliations.
** All rights reserved. See the file COPYING in the top-level source
** directory for licensing information.\endverbatim
**
theory::LemmaStatus EngineOutputChannel::lemma(TNode lemma, LemmaProperty p)
{
- Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
+ Trace("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
<< lemma << ")"
<< ", properties = " << p << std::endl;
++d_statistics.lemmas;
TrustNode tlem = TrustNode::mkTrustLemma(lemma);
theory::LemmaStatus result = d_engine->lemma(
- tlem.getNode(),
- false,
+ tlem,
p,
- isLemmaPropertySendAtoms(p) ? d_theory : theory::THEORY_LAST);
+ isLemmaPropertySendAtoms(p) ? d_theory : theory::THEORY_LAST,
+ d_theory);
return result;
}
theory::LemmaStatus EngineOutputChannel::splitLemma(TNode lemma, bool removable)
{
- Debug("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
+ Trace("theory::lemma") << "EngineOutputChannel<" << d_theory << ">::lemma("
<< lemma << ")" << std::endl;
++d_statistics.lemmas;
d_engine->d_outputChannelUsed = true;
- Debug("pf::explain") << "EngineOutputChannel::splitLemma( " << lemma << " )"
+ Trace("pf::explain") << "EngineOutputChannel::splitLemma( " << lemma << " )"
<< std::endl;
TrustNode tlem = TrustNode::mkTrustLemma(lemma);
LemmaProperty p = removable ? LemmaProperty::REMOVABLE : LemmaProperty::NONE;
- theory::LemmaStatus result =
- d_engine->lemma(tlem.getNode(), false, p, d_theory);
+ theory::LemmaStatus result = d_engine->lemma(tlem, p, d_theory);
return result;
}
bool EngineOutputChannel::propagate(TNode literal)
{
- Debug("theory::propagate") << "EngineOutputChannel<" << d_theory
+ Trace("theory::propagate") << "EngineOutputChannel<" << d_theory
<< ">::propagate(" << literal << ")" << std::endl;
++d_statistics.propagations;
d_engine->d_outputChannelUsed = true;
++d_statistics.conflicts;
d_engine->d_outputChannelUsed = true;
TrustNode tConf = TrustNode::mkTrustConflict(conflictNode);
- d_engine->conflict(tConf.getNode(), d_theory);
+ d_engine->conflict(tConf, d_theory);
}
void EngineOutputChannel::demandRestart()
void EngineOutputChannel::requirePhase(TNode n, bool phase)
{
- Debug("theory") << "EngineOutputChannel::requirePhase(" << n << ", " << phase
+ Trace("theory") << "EngineOutputChannel::requirePhase(" << n << ", " << phase
<< ")" << std::endl;
++d_statistics.requirePhase;
d_engine->getPropEngine()->requirePhase(n, phase);
}
++d_statistics.conflicts;
d_engine->d_outputChannelUsed = true;
- d_engine->conflict(pconf.getNode(), d_theory);
+ d_engine->conflict(pconf, d_theory);
}
LemmaStatus EngineOutputChannel::trustedLemma(TrustNode plem, LemmaProperty p)
{
- Debug("theory::lemma") << "EngineOutputChannel<" << d_theory
+ Trace("theory::lemma") << "EngineOutputChannel<" << d_theory
<< ">::trustedLemma(" << plem << ")" << std::endl;
Assert(plem.getKind() == TrustNodeKind::LEMMA);
if (plem.getGenerator() != nullptr)
d_engine->d_outputChannelUsed = true;
// now, call the normal interface for lemma
return d_engine->lemma(
- plem.getNode(),
- false,
+ plem,
p,
- isLemmaPropertySendAtoms(p) ? d_theory : theory::THEORY_LAST);
+ isLemmaPropertySendAtoms(p) ? d_theory : theory::THEORY_LAST,
+ d_theory);
}
} // namespace theory