From be1c8292b5eaa09c212974774bf78b506fd3a6b7 Mon Sep 17 00:00:00 2001 From: v4hn Date: Wed, 17 Mar 2021 10:13:29 +0100 Subject: [PATCH] add more (commented-out) debug statements Also print generator symbol for completeness. --- core/src/container.cpp | 6 ++++-- core/src/stage.cpp | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/src/container.cpp b/core/src/container.cpp index a1130106..2d5898f2 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -295,9 +295,9 @@ static void printChildrenInterfaces(const ContainerBase& container, bool success for (const auto& child : container.pimpl()->children()) { auto cimpl = child->pimpl(); - if (!cimpl->starts() && !cimpl->ends()) - continue; // skip generator os << std::setw(width) << std::left << child->name(); + if (!cimpl->starts() && !cimpl->ends()) + os << "↕ " << std::endl; if (cimpl->starts()) os << "↓ " << *child->pimpl()->starts() << std::endl; if (cimpl->starts() && cimpl->ends()) @@ -399,6 +399,7 @@ void SerialContainer::onNewSolution(const SolutionBase& current) { } } } + // printChildrenInterfaces(*this, true, *current.creator()); // finally, store + announce new solutions to external interface for (const auto& solution : sorted) @@ -429,6 +430,7 @@ void SerialContainer::onNewFailure(const Stage& child, const InterfaceState* fro } break; } + // printChildrenInterfaces(*this, false, child); } SerialContainer::SerialContainer(SerialContainerPrivate* impl) : ContainerBase(impl) {} diff --git a/core/src/stage.cpp b/core/src/stage.cpp index 860f89b0..9fd513e3 100644 --- a/core/src/stage.cpp +++ b/core/src/stage.cpp @@ -761,6 +761,9 @@ void ConnectingPrivate::newState(Interface::iterator it, bool updated) { } } } + // std::cerr << name_ << ": "; + // printPendingPairs(std::cerr); + // std::cerr << std::endl; } // Check whether there are pending feasible states that could connect to source.