Browse Source

DRNParser: Check if target state is valid

tempestpy_adaptions
Matthias Volk 5 years ago
parent
commit
779e5ce5ae
  1. 1
      src/storm-parsers/parser/DirectEncodingParser.cpp

1
src/storm-parsers/parser/DirectEncodingParser.cpp

@ -255,6 +255,7 @@ namespace storm {
std::string valueStr = line.substr(posColon+2);
ValueType value = valueParser.parseValue(valueStr);
STORM_LOG_TRACE("Transition " << row << " -> " << target << ": " << value);
STORM_LOG_THROW(target < stateSize, storm::exceptions::WrongFormatException, "Target state " << target << " is greater than state size " << stateSize);
builder.addNextValue(row, target, value);
}
}

Loading…
Cancel
Save