Browse Source

Bugfix in handling of init/deadlock labels during constant processing - e.g. P=?[F "deadlock"&x=i] failed if i was a constant.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4085 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
a066e5db8e
  1. 4
      prism/src/parser/visitor/GetAllUndefinedConstantsRecursively.java

4
prism/src/parser/visitor/GetAllUndefinedConstantsRecursively.java

@ -72,6 +72,10 @@ public class GetAllUndefinedConstantsRecursively extends ASTTraverse
public void visitPost(ExpressionLabel e) throws PrismLangException
{
// Ignore special cases of labels (no constants there)
if (e.getName().equals("deadlock") || e.getName().equals("init")) {
return;
}
// Look up this label in the label list
int i = labelList.getLabelIndex(e.getName());
if (i == -1)

Loading…
Cancel
Save