diff --git a/core/src/container.cpp b/core/src/container.cpp index 2d5898f2..ececf0dc 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -353,7 +353,13 @@ inline void updateStatePrios(const SolutionSequence::container_type& partial_sol } void SerialContainer::onNewSolution(const SolutionBase& current) { + // failures should never trigger this callback assert(!current.isFailure()); + + // states of solution must be active, otherwise this would not have been computed + assert(current.start()->priority().enabled()); + assert(current.end()->priority().enabled()); + auto impl = pimpl(); const Stage* creator = current.creator(); auto& children = impl->children();