Browse Source

graph::computeSchedulerProb1E: Only set choices if they are not defined already.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
d098c2d27c
  1. 4
      src/storm/utility/graph.cpp

4
src/storm/utility/graph.cpp

@ -552,7 +552,9 @@ namespace storm {
// set an arbitrary (valid) choice for the psi states. // set an arbitrary (valid) choice for the psi states.
for (auto const& psiState : psiStates) { for (auto const& psiState : psiStates) {
for (uint_fast64_t memState = 0; memState < scheduler.getNumberOfMemoryStates(); ++memState) { for (uint_fast64_t memState = 0; memState < scheduler.getNumberOfMemoryStates(); ++memState) {
scheduler.setChoice(0, psiState, memState);
if (!scheduler.getChoice(psiState, memState).isDefined()) {
scheduler.setChoice(0, psiState, memState);
}
} }
} }

Loading…
Cancel
Save