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.");