Browse Source

do not add rate 0 edges to jani (but print a warning)

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
ca3b878654
  1. 4
      src/storm-gspn/builder/JaniGSPNBuilder.cpp

4
src/storm-gspn/builder/JaniGSPNBuilder.cpp

@ -141,6 +141,10 @@ namespace storm {
}
for (auto const& trans : gspn.getTimedTransitions()) {
if(storm::utility::isZero(trans.getRate())) {
STORM_LOG_WARN("Transitions with rate zero are not allowed in JANI. Skipping this transition");
continue;
}
storm::expressions::Expression guard = expressionManager->boolean(true);
std::vector<storm::jani::Assignment> assignments;

Loading…
Cancel
Save