Skip to content

Commit

Permalink
Bug fix in DTMCFromMDPAndMDStrategy, related to recent changes to suc…
Browse files Browse the repository at this point in the history
…cessors info in explicit engine.
  • Loading branch information
davexparker committed Dec 27, 2017
1 parent 7edb481 commit 748c097
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prism/src/explicit/DTMCFromMDPAndMDStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ public int getNumTransitions()

public SuccessorsIterator getSuccessors(final int s)
{
return mdp.getSuccessors(s, strat.getChoiceIndex(s));
if (strat.isChoiceDefined(s)) {
return mdp.getSuccessors(s, strat.getChoiceIndex(s));
} else {
return SuccessorsIterator.empty();
}
}

public int getNumChoices(int s)
Expand Down

0 comments on commit 748c097

Please sign in to comment.