Browse Source

ToJaniConverter: Fixed detection of accessing modules of variables: The likelihood expression was not taken into account before.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
f4135fbd14
  1. 1
      src/storm/storage/prism/ToJaniConverter.cpp

1
src/storm/storage/prism/ToJaniConverter.cpp

@ -166,6 +166,7 @@ namespace storm {
for (auto const& command : module.getCommands()) { for (auto const& command : module.getCommands()) {
command.getGuardExpression().getBaseExpression().gatherVariables(variables); command.getGuardExpression().getBaseExpression().gatherVariables(variables);
for (auto const& update : command.getUpdates()) { for (auto const& update : command.getUpdates()) {
update.getLikelihoodExpression().gatherVariables(variables);
for (auto const& assignment : update.getAssignments()) { for (auto const& assignment : update.getAssignments()) {
assignment.getExpression().getBaseExpression().gatherVariables(variables); assignment.getExpression().getBaseExpression().gatherVariables(variables);
variables.insert(assignment.getVariable()); variables.insert(assignment.getVariable());

Loading…
Cancel
Save