diff --git a/src/storm-gspn/storage/gspn/GSPN.cpp b/src/storm-gspn/storage/gspn/GSPN.cpp index f26c71540..37ac640b0 100644 --- a/src/storm-gspn/storage/gspn/GSPN.cpp +++ b/src/storm-gspn/storage/gspn/GSPN.cpp @@ -533,6 +533,11 @@ namespace storm { stream << space3 << "" << std::endl; stream << space4 << "Default," << place.getNumberOfInitialTokens() << "" << std::endl; stream << space3 << "" << std::endl; + if(place.hasRestrictedCapacity()) { + stream << space3 << "" << std::endl; + stream << space4 << "Default," << place.getCapacity() << "" << std::endl; + stream << space3 << "" << std::endl; + } stream << space2 << "" << std::endl; } diff --git a/src/storm-gspn/storage/gspn/Place.cpp b/src/storm-gspn/storage/gspn/Place.cpp index d60ace5f6..ca9a4a9e1 100644 --- a/src/storm-gspn/storage/gspn/Place.cpp +++ b/src/storm-gspn/storage/gspn/Place.cpp @@ -34,6 +34,7 @@ namespace storm { } uint64_t Place::getCapacity() const { + assert(hasRestrictedCapacity()); return capacity.get(); }