Browse Source

imported patch rewardcounter-CTMC-extra-check-TODO.patch

tud-infrastructure-2018-10-12
Joachim Klein 7 years ago
parent
commit
a911a2eb88
  1. 9
      prism/src/explicit/CTMCModelChecker.java

9
prism/src/explicit/CTMCModelChecker.java

@ -53,6 +53,9 @@ public class CTMCModelChecker extends ProbModelChecker
@Override @Override
protected StateValues checkProbPathFormulaLTL(Model model, Expression expr, boolean qual, MinMax minMax, BitSet statesOfInterest) throws PrismException 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)) { if (Expression.containsTemporalTimeBounds(expr)) {
throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs");
} }
@ -75,6 +78,9 @@ public class CTMCModelChecker extends ProbModelChecker
@Override @Override
protected StateValues checkRewardCoSafeLTL(Model model, Rewards modelRewards, Expression expr, MinMax minMax, BitSet statesOfInterest) throws PrismException 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)) { if (Expression.containsTemporalTimeBounds(expr)) {
throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs");
} }
@ -103,6 +109,9 @@ public class CTMCModelChecker extends ProbModelChecker
@Override @Override
protected StateValues checkExistsLTL(Model model, Expression expr, BitSet statesOfInterest) throws PrismException 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)) { if (Expression.containsTemporalTimeBounds(expr)) {
throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs"); throw new PrismNotSupportedException("LTL formulas with time bounds not supported for CTMCs");
} }

Loading…
Cancel
Save