Browse Source

jani exporter: dont write null if no properties are given

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
41e7932b18
  1. 4
      src/storm/storage/jani/JSONExporter.cpp

4
src/storm/storage/jani/JSONExporter.cpp

@ -1118,6 +1118,10 @@ namespace storm {
// Unset model-features that only relate to properties. These are only set if such properties actually exist.
modelFeatures.remove(storm::jani::ModelFeature::StateExitRewards);
if (formulas.empty()) {
jsonStruct["properties"] = modernjson::json(modernjson::json::value_t::array);
return;
}
uint64_t index = 0;
for(auto const& f : formulas) {

Loading…
Cancel
Save