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

throw exception when no Init found

parent 05ebcc88
Branches
Tags
No related merge requests found
......@@ -348,6 +348,9 @@ public class BAstCreator extends BuiltInOPs
for (ExprNode node : specAnalyser.getInits()) {
predList.add(visitExprNodePredicate(node));
}
if (predList.isEmpty()) {
throw new NotImplementedException("Could not find a definition of Init.");
}
becomes.setPredicate(createConjunction(predList));
AInitialisationMachineClause initClause = new AInitialisationMachineClause(becomes);
machineClauseList.add(initClause);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment