From bd475e99eb256aafacfcea9f1a136ad42271bfb1 Mon Sep 17 00:00:00 2001 From: TimQu Date: Thu, 16 Aug 2018 17:37:16 +0200 Subject: [PATCH] fixed flattening models with constants --- src/storm/storage/jani/Model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/storm/storage/jani/Model.cpp b/src/storm/storage/jani/Model.cpp index 089ac7f0e..c74d049a2 100644 --- a/src/storm/storage/jani/Model.cpp +++ b/src/storm/storage/jani/Model.cpp @@ -446,6 +446,10 @@ namespace storm { variableRemapping.emplace(&variable, flattenedModel.addVariable(*renamedVariable)); } + for (auto const& constant : getConstants()) { + flattenedModel.addConstant(constant); + } + std::vector> composedAutomata; for (auto const& element : parallelComposition.getSubcompositions()) { STORM_LOG_THROW(element->isAutomatonComposition(), storm::exceptions::WrongFormatException, "Cannot flatten recursive (not standard-compliant) composition.");