Browse Source

Guard setInitialStates with hasInitialStatesRestriction

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
a48f90a523
  1. 8
      src/storm/storage/jani/Automaton.cpp

8
src/storm/storage/jani/Automaton.cpp

@ -444,9 +444,11 @@ namespace storm {
for (auto& location : this->getLocations()) {
location.substitute(substitution);
}
this->setInitialStatesRestriction(substituteJaniExpression(this->getInitialStatesRestriction(), substitution));
if (hasInitialStatesRestriction()) {
this->setInitialStatesRestriction(substituteJaniExpression(this->getInitialStatesRestriction(), substitution));
}
edges.substitute(substitution);
}
void Automaton::registerTemplateEdge(std::shared_ptr<TemplateEdge> const& te) {

Loading…
Cancel
Save