From 1d38f7d0707cc4375789d33ded8786e8f7f4724d Mon Sep 17 00:00:00 2001 From: Joachim Klein Date: Fri, 12 Oct 2018 14:26:06 +0200 Subject: [PATCH] imported patch rewardcounter-CTMC-extra-check-TODO.patch --- prism/src/explicit/CTMCModelChecker.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prism/src/explicit/CTMCModelChecker.java b/prism/src/explicit/CTMCModelChecker.java index ca7b6b59..51553779 100644 --- a/prism/src/explicit/CTMCModelChecker.java +++ b/prism/src/explicit/CTMCModelChecker.java @@ -55,6 +55,9 @@ public class CTMCModelChecker extends ProbModelChecker @Override protected StateValues checkProbPathFormulaLTL(Model model, Expression expr, boolean qual, MinMax minMax, BitSet statesOfInterest) throws PrismException { + if (Expression.containsTemporalRewardBounds(expr)) { + throw new PrismNotSupportedException("LTL formulas with reward bounds not supported for CTMCs"); + } if (Expression.containsTemporalTimeBounds(expr)) { throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); } @@ -77,6 +80,9 @@ public class CTMCModelChecker extends ProbModelChecker @Override protected StateValues checkRewardCoSafeLTL(Model model, Rewards modelRewards, Expression expr, MinMax minMax, BitSet statesOfInterest) throws PrismException { + if (Expression.containsTemporalRewardBounds(expr)) { + throw new PrismNotSupportedException("LTL formulas with reward bounds not supported for CTMCs"); + } if (Expression.containsTemporalTimeBounds(expr)) { throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); } @@ -105,6 +111,9 @@ public class CTMCModelChecker extends ProbModelChecker @Override protected StateValues checkExistsLTL(Model model, Expression expr, BitSet statesOfInterest) throws PrismException { + if (Expression.containsTemporalRewardBounds(expr)) { + throw new PrismNotSupportedException("LTL formulas with reward bounds not supported for CTMCs"); + } if (Expression.containsTemporalTimeBounds(expr)) { throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); }