From b6d67e7995ae69cf14bd4f320ba4effe06a6b3b8 Mon Sep 17 00:00:00 2001 From: Joachim Klein Date: Fri, 8 Jun 2018 16:59:03 +0200 Subject: [PATCH] properties.cpp: Output warning if we filter away all properties --- src/storm/api/properties.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/storm/api/properties.cpp b/src/storm/api/properties.cpp index 71fab4d79..163679013 100644 --- a/src/storm/api/properties.cpp +++ b/src/storm/api/properties.cpp @@ -78,6 +78,11 @@ namespace storm { std::set const& propertyNameSet = propertyFilter.get(); std::vector result; std::set reducedPropertyNames; + + if (propertyNameSet.empty()) { + STORM_LOG_WARN("Filtering all properties."); + } + for (auto const& property : properties) { if (propertyNameSet.find(property.getName()) != propertyNameSet.end()) { result.push_back(property);