From 6b6f44100ee66aaac7550f3fbf63b3ac9db02665 Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Mon, 8 Mar 2021 16:16:39 -0800 Subject: [PATCH] allow building parametric models of the form s --p-->, s--q--> --- src/storm/generator/JaniNextStateGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/generator/JaniNextStateGenerator.cpp b/src/storm/generator/JaniNextStateGenerator.cpp index 4710dd432..66f69c9cb 100644 --- a/src/storm/generator/JaniNextStateGenerator.cpp +++ b/src/storm/generator/JaniNextStateGenerator.cpp @@ -741,7 +741,7 @@ namespace storm { if (this->options.isExplorationChecksSet()) { // Check that the resulting distribution is in fact a distribution. - STORM_LOG_THROW(!this->isDiscreteTimeModel() || this->comparator.isOne(probabilitySum), storm::exceptions::WrongFormatException, "Probabilities do not sum to one for edge (actually sum to " << probabilitySum << ")."); + STORM_LOG_THROW(!this->isDiscreteTimeModel() || (!storm::utility::isConstant(probabilitySum) || this->comparator.isOne(probabilitySum)), storm::exceptions::WrongFormatException, "Probabilities do not sum to one for edge (actually sum to " << probabilitySum << ")."); } return choice;