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

exception when expression in recursive op case empty

parent 890e9374
Branches
Tags
No related merge requests found
Pipeline #98680 passed
......@@ -377,8 +377,13 @@ public class Theories {
prologOutput.openTerm("case");
prologOutput.printAtom(indArg);
prologOutput.openList();
if(ex==null) {
throw new IllegalStateException("Empty expression for axiomatic recursive definition case " + es +
" and inductive argument " + indArg);
} else {
for (FreeIdentifier fi : ex.getFreeIdentifiers()) {
prologOutput.printAtom(fi.getName());
}
}
prologOutput.closeList();
printExpression(prologOutput, ex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment