diff --git a/src/storm/abstraction/LocalExpressionInformation.cpp b/src/storm/abstraction/LocalExpressionInformation.cpp index 0bb62e8d8..d7002169c 100644 --- a/src/storm/abstraction/LocalExpressionInformation.cpp +++ b/src/storm/abstraction/LocalExpressionInformation.cpp @@ -59,10 +59,10 @@ namespace storm { blocksToMerge.insert(getBlockIndexOfVariable(variable)); } - STORM_LOG_ASSERT(!blocksToMerge.empty(), "Found no blocks to merge."); + STORM_LOG_ASSERT(variables.empty() || !blocksToMerge.empty(), "Found no blocks to merge."); // If we found a single block only, there is nothing to do. - if (blocksToMerge.size() == 1) { + if (blocksToMerge.size() <= 1) { std::map identity; for (uint64_t i = 0; i < getNumberOfBlocks(); ++i) { identity.emplace_hint(identity.end(), i, i);