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::stringtargetLoc=getString<ValueType>(destEntry.at("location"),"target location for edge from '"+sourceLoc+"' in automaton '"+name+"'");
std::stringtargetLoc=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<<"'.");