Browse Source

JaniParser: Fixed a syntax check.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
9b05861324
  1. 2
      src/storm-parsers/parser/JaniParser.cpp

2
src/storm-parsers/parser/JaniParser.cpp

@ -1506,7 +1506,7 @@ namespace storm {
std::vector<std::pair<uint64_t, storm::expressions::Expression>> destinationLocationsAndProbabilities; std::vector<std::pair<uint64_t, storm::expressions::Expression>> destinationLocationsAndProbabilities;
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(destEntry.count("location") == 1, storm::exceptions::InvalidJaniException, "Each destination in edge from '" << sourceLoc << "' in automaton '" << name << "' must have a target location");
std::string targetLoc = getString<ValueType>(destEntry.at("location"), "target location for edge from '" + sourceLoc + "' in automaton '" + name + "'"); std::string targetLoc = getString<ValueType>(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

Loading…
Cancel
Save