Browse Source

jani exporter: dont write null if no properties are given

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

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

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

Loading…
Cancel
Save