Skip to content
Snippets Groups Projects
Commit 00cf8d22 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

allow a few more variations of Init, Spec and Next

parent 8980d4c2
No related branches found
No related tags found
No related merge requests found
...@@ -95,11 +95,31 @@ public class SpecAnalyser extends BuiltInOPs implements ASTConstants, ToolGlobal ...@@ -95,11 +95,31 @@ public class SpecAnalyser extends BuiltInOPs implements ASTConstants, ToolGlobal
for (int i = 0; i < m.getOpDefs().length; i++) { for (int i = 0; i < m.getOpDefs().length; i++) {
definitions.put(m.getOpDefs()[i].getName().toString(), m.getOpDefs()[i]); definitions.put(m.getOpDefs()[i].getName().toString(), m.getOpDefs()[i]);
} }
if (definitions.containsKey("Spec")) {
specAnalyser.spec = definitions.get("Spec"); specAnalyser.spec = definitions.get("Spec");
} else if (definitions.containsKey("SPEC")) {
specAnalyser.spec = definitions.get("SPEC");
}
if (definitions.containsKey("Init")) {
specAnalyser.init = definitions.get("Init"); specAnalyser.init = definitions.get("Init");
} else if (definitions.containsKey("INIT")) {
specAnalyser.init = definitions.get("INIT");
} else if (definitions.containsKey("Initialisation")) {
specAnalyser.init = definitions.get("Initialisation");
}
if (definitions.containsKey("Next")) {
specAnalyser.next = definitions.get("Next"); specAnalyser.next = definitions.get("Next");
} else if (definitions.containsKey("NEXT")) {
specAnalyser.next = definitions.get("NEXT");
}
if (definitions.containsKey("Inv")) { if (definitions.containsKey("Inv")) {
specAnalyser.invariants.add(definitions.get("Inv")); specAnalyser.invariants.add(definitions.get("Inv"));
} else if (definitions.containsKey("INV")) {
specAnalyser.invariants.add(definitions.get("INV"));
} else if (definitions.containsKey("Invariant")) { } else if (definitions.containsKey("Invariant")) {
specAnalyser.invariants.add(definitions.get("Invariant")); specAnalyser.invariants.add(definitions.get("Invariant"));
} else if (definitions.containsKey("Invariants")) { } else if (definitions.containsKey("Invariants")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment