Browse Source

fix bug in parser

Former-commit-id: bb3c305b78 [formerly 97289aeb30]
Former-commit-id: 1b516b4b0d
tempestpy_adaptions
sjunges 8 years ago
parent
commit
400ed9ead0
  1. 2
      src/parser/JaniParser.cpp

2
src/parser/JaniParser.cpp

@ -655,7 +655,7 @@ namespace storm {
for(auto const& destEntry : edgeEntry.at("destinations")) { for(auto const& destEntry : edgeEntry.at("destinations")) {
// target location // target location
STORM_LOG_THROW(edgeEntry.count("location") == 1, storm::exceptions::InvalidJaniException, "Each destination in edge from '" << sourceLoc << "' in automaton '" << name << "' must have a target location"); STORM_LOG_THROW(edgeEntry.count("location") == 1, storm::exceptions::InvalidJaniException, "Each destination in edge from '" << sourceLoc << "' in automaton '" << name << "' must have a target location");
std::string targetLoc = getString(edgeEntry.at("location"), "target location for edge from '" + sourceLoc + "' in automaton '" + name + "'");
std::string targetLoc = getString(destEntry.at("location"), "target location for edge from '" + sourceLoc + "' in automaton '" + name + "'");
STORM_LOG_THROW(locIds.count(targetLoc) == 1, storm::exceptions::InvalidJaniException, "Target of edge has unknown location '" << targetLoc << "' in automaton '" << name << "'."); STORM_LOG_THROW(locIds.count(targetLoc) == 1, storm::exceptions::InvalidJaniException, "Target of edge has unknown location '" << targetLoc << "' in automaton '" << name << "'.");
// probability // probability
storm::expressions::Expression probExpr; storm::expressions::Expression probExpr;

Loading…
Cancel
Save