Add sanity check that every match has active occurrence in its head (MPSCR-59)

This commit is contained in:
Grigorii Kirgizov 2020-04-22 19:18:14 +03:00
parent 14e4385382
commit 3f2b7df7b4
1 changed files with 3 additions and 3 deletions

View File

@ -249,10 +249,10 @@ internal class ConstraintsProcessing(private var dispatchingFront: Dispatcher.Di
// TODO: paranoid check. should be isAlive() instead
// FIXME: move this check elsewhere
if (status.operational && active.stored && match.allStored())
if (status.operational && active.stored && match.allStored()) {
assert(match.allHeads().contains(active))
processMatch(controller, match, parent, status)
else
status
} else status
}
// TODO: should be isAlive()