Browse Source

Comment tweak

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6221 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
4d9d778515
  1. 3
      prism/src/parser/visitor/SemanticCheck.java

3
prism/src/parser/visitor/SemanticCheck.java

@ -368,7 +368,8 @@ public class SemanticCheck extends ASTTraverse
if (op == ExpressionTemporal.P_X && (operand1 != null || operand2 == null || lBound != null || uBound != null)) {
throw new PrismLangException("Cannot attach bounds to " + e.getOperatorSymbol() + " operator", e);
}
if (op == ExpressionTemporal.R_C && (operand1 != null || operand2 != null || lBound != null)) { //NB we allow uBound to be null in multi-objective
if (op == ExpressionTemporal.R_C && (operand1 != null || operand2 != null || lBound != null)) {
// NB: upper bound is optional (e.g. multi-objective allows R...[C] operator)
throw new PrismLangException("Badly formed " + e.getOperatorSymbol() + " operator", e);
}
if (op == ExpressionTemporal.R_I && (operand1 != null || operand2 != null || lBound != null || uBound == null)) {

Loading…
Cancel
Save