diff --git a/src/storm/builder/jit/ExplicitJitJaniModelBuilder.cpp b/src/storm/builder/jit/ExplicitJitJaniModelBuilder.cpp index 9844a64af..6df0210e9 100644 --- a/src/storm/builder/jit/ExplicitJitJaniModelBuilder.cpp +++ b/src/storm/builder/jit/ExplicitJitJaniModelBuilder.cpp @@ -1531,12 +1531,17 @@ namespace storm { } } } - + + std::set expressionLabelStrings; for (auto const& expression : this->options.getExpressionLabels()) { cpptempl::data_map label; - label["name"] = expression.toString(); - label["predicate"] = expressionTranslator.translate(shiftVariablesWrtLowerBound(expression), storm::expressions::ToCppTranslationOptions(variablePrefixes, variableToName, storm::expressions::ToCppTranslationMode::CastDouble)); - labels.push_back(label); + std::string expressionLabelString = expression.toString(); + if(expressionLabelStrings.count(expressionLabelString) == 0) { + label["name"] = expression.toString(); + label["predicate"] = expressionTranslator.translate(shiftVariablesWrtLowerBound(expression), storm::expressions::ToCppTranslationOptions(variablePrefixes, variableToName, storm::expressions::ToCppTranslationMode::CastDouble)); + labels.push_back(label); + expressionLabelStrings.insert(expressionLabelString); + } } modelData["labels"] = cpptempl::make_data(labels);