Skip to content

Commit 3b6c13e

Browse files
committed
only run propagators on enabled solutions
resolve simple pruning test
1 parent 3e5e1da commit 3b6c13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/stage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ InterfaceFlags PropagatingEitherWayPrivate::requiredInterface() const {
562562
}
563563

564564
inline bool PropagatingEitherWayPrivate::hasStartState() const {
565-
return starts_ && !starts_->empty();
565+
return starts_ && !starts_->empty() && starts_->front()->priority().enabled();
566566
}
567567

568568
const InterfaceState& PropagatingEitherWayPrivate::fetchStartState() {
@@ -571,7 +571,7 @@ const InterfaceState& PropagatingEitherWayPrivate::fetchStartState() {
571571
}
572572

573573
inline bool PropagatingEitherWayPrivate::hasEndState() const {
574-
return ends_ && !ends_->empty();
574+
return ends_ && !ends_->empty() && ends_->front()->priority().enabled();
575575
}
576576

577577
const InterfaceState& PropagatingEitherWayPrivate::fetchEndState() {

0 commit comments

Comments
 (0)