use of de.be4.classicalb.core.parser.node.ATheoremsContextClause in project prob2 by bendisposto.
the class ContextTranslator method processAxiomsAndTheorems.
private List<PContextClause> processAxiomsAndTheorems() {
List<PContextClause> axiomsAndThms = new ArrayList<>();
List<PPredicate> axioms = new ArrayList<>();
List<PPredicate> thms = new ArrayList<>();
for (EventBAxiom axiom : context.getAxioms()) {
PPredicate ppred = (PPredicate) ((EventB) axiom.getPredicate()).getAst();
nodeInfos.put(ppred, new Tuple2<>(context.getName(), axiom.getName()));
if (axiom.isTheorem()) {
thms.add(ppred);
} else {
axioms.add(ppred);
}
}
axiomsAndThms.add(new AAxiomsContextClause(axioms));
axiomsAndThms.add(new ATheoremsContextClause(thms));
return axiomsAndThms;
}
Aggregations