From 9d4e654ec25caba55ecece8594e55d1a01430ae1 Mon Sep 17 00:00:00 2001 From: lukpo Date: Fri, 6 Aug 2021 11:26:28 +0200 Subject: [PATCH] fix for quantitative computations in computeUntilProb --- src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp b/src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp index 66bcd497b..17bef0ff8 100644 --- a/src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp +++ b/src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp @@ -631,7 +631,7 @@ namespace storm { std::vector maybeStateChoiceValues = std::vector(sizeMaybeStateChoiceValues, storm::utility::zero()); // Check whether we need to compute exact probabilities for some states. - if (qualitative || maybeStatesNotRelevant || !goal.isShieldingTask()) { + if ((qualitative || maybeStatesNotRelevant) && !goal.isShieldingTask()) { // Set the values for all maybe-states to 0.5 to indicate that their probability values are neither 0 nor 1. storm::utility::vector::setVectorValues(result, qualitativeStateSets.maybeStates, storm::utility::convertNumber(0.5)); } else {