summaryrefslogtreecommitdiff
path: root/src/theory/arith/nl/nonlinear_extension.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-02-02 09:49:25 -0600
committerGitHub <noreply@github.com>2021-02-02 09:49:25 -0600
commit4c1f67446ad59f1c5efe7230b96b0d3ccac0e692 (patch)
tree80fac75e5c9be8e0bb0cef37eed167307581fa86 /src/theory/arith/nl/nonlinear_extension.cpp
parent95add26e5210e53e03c55ee313279b87cc3d5660 (diff)
Improvements for NL traces (#5846)
This makes it so that -t nl-ext is a concise summary of what the nl-ext solver is doing, which I use frequently for debugging. This is a temporary solution, we should consider a deeper refactoring of traces throughout NL at some point.
Diffstat (limited to 'src/theory/arith/nl/nonlinear_extension.cpp')
-rw-r--r--src/theory/arith/nl/nonlinear_extension.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/theory/arith/nl/nonlinear_extension.cpp b/src/theory/arith/nl/nonlinear_extension.cpp
index c6787140d..49385294c 100644
--- a/src/theory/arith/nl/nonlinear_extension.cpp
+++ b/src/theory/arith/nl/nonlinear_extension.cpp
@@ -176,7 +176,7 @@ unsigned NonlinearExtension::filterLemmas(std::vector<NlLemma>& lemmas,
void NonlinearExtension::getAssertions(std::vector<Node>& assertions)
{
- Trace("nl-ext") << "Getting assertions..." << std::endl;
+ Trace("nl-ext-assert-debug") << "Getting assertions..." << std::endl;
bool useRelevance = false;
if (options::nlRlvMode() == options::NlRlvMode::INTERLEAVE)
{
@@ -197,8 +197,8 @@ void NonlinearExtension::getAssertions(std::vector<Node>& assertions)
++it)
{
const Assertion& assertion = *it;
- Trace("nl-ext") << "Loaded " << assertion.d_assertion << " from theory"
- << std::endl;
+ Trace("nl-ext-assert-debug")
+ << "Loaded " << assertion.d_assertion << " from theory" << std::endl;
Node lit = assertion.d_assertion;
if (useRelevance && !v.isRelevant(lit))
{
@@ -234,7 +234,7 @@ void NonlinearExtension::getAssertions(std::vector<Node>& assertions)
auto iait = init_assertions.find(lit);
if (iait != init_assertions.end())
{
- Trace("nl-ext") << "Adding " << lit << std::endl;
+ Trace("nl-ext-assert-debug") << "Adding " << lit << std::endl;
assertions.push_back(lit);
init_assertions.erase(iait);
}
@@ -243,7 +243,7 @@ void NonlinearExtension::getAssertions(std::vector<Node>& assertions)
// function by the code above.
for (const Node& a : init_assertions)
{
- Trace("nl-ext") << "Adding " << a << std::endl;
+ Trace("nl-ext-assert-debug") << "Adding " << a << std::endl;
assertions.push_back(a);
}
Trace("nl-ext") << "...keep " << assertions.size() << " / "
@@ -599,11 +599,11 @@ void NonlinearExtension::runStrategy(Theory::Effort effort,
{
++(d_stats.d_checkRuns);
- if (Trace.isOn("nl-ext"))
+ if (Trace.isOn("nl-strategy"))
{
for (const auto& a : assertions)
{
- Trace("nl-ext") << "Input assertion: " << a << std::endl;
+ Trace("nl-strategy") << "Input assertion: " << a << std::endl;
}
}
if (!d_strategy.isStrategyInit())
@@ -616,7 +616,7 @@ void NonlinearExtension::runStrategy(Theory::Effort effort,
while (!stop && steps.hasNext())
{
InferStep step = steps.next();
- Trace("nl-ext") << "Step " << step << std::endl;
+ Trace("nl-strategy") << "Step " << step << std::endl;
switch (step)
{
case InferStep::BREAK: stop = d_im.hasPendingLemma(); break;
@@ -676,6 +676,7 @@ void NonlinearExtension::runStrategy(Theory::Effort effort,
}
}
+ Trace("nl-ext") << "finished strategy" << std::endl;
Trace("nl-ext") << " ...finished with " << d_im.numWaitingLemmas()
<< " waiting lemmas." << std::endl;
Trace("nl-ext") << " ...finished with " << d_im.numPendingLemmas()
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback