Browse Source

restrictions are now topo-sorted correctly

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
349b0404ba
  1. 8
      src/storm-dft/storage/dft/DFTBuilder.cpp

8
src/storm-dft/storage/dft/DFTBuilder.cpp

@ -175,7 +175,13 @@ namespace storm {
} else if(visited[n] == topoSortColour::WHITE) { } else if(visited[n] == topoSortColour::WHITE) {
if(n->isGate()) { if(n->isGate()) {
visited[n] = topoSortColour::GREY; visited[n] = topoSortColour::GREY;
for(DFTElementPointer const& c : std::static_pointer_cast<DFTGate<ValueType>>(n)->children()) {
for (DFTElementPointer const& c : std::static_pointer_cast<DFTGate<ValueType>>(n)->children()) {
topoVisit(c, visited, L);
}
}
if(n->isRestriction()) {
visited[n] = topoSortColour::GREY;
for (DFTElementPointer const& c : std::static_pointer_cast<DFTRestriction<ValueType>>(n)->children()) {
topoVisit(c, visited, L); topoVisit(c, visited, L);
} }
} }

Loading…
Cancel
Save