Search in sources :

Example 11 with EventB

use of de.prob.animator.domainobjects.EventB in project prob2 by bendisposto.

the class TheoryExtractor method addInfer.

private void addInfer(final Attributes attributes) {
    String predicate = attributes.getValue("org.eventb.core.predicate");
    infer = new EventB(predicate, typeEnv, FormulaExpand.EXPAND);
}
Also used : EventB(de.prob.animator.domainobjects.EventB)

Example 12 with EventB

use of de.prob.animator.domainobjects.EventB in project prob2 by bendisposto.

the class TheoryTranslator method printConstructor.

private void printConstructor(String name, List<Tuple2<String, String>> destructors, final IPrologTermOutput pto) {
    pto.openTerm("constructor");
    pto.printAtom(name);
    pto.openList();
    for (Tuple2<String, String> arg : destructors) {
        printTypedIdentifier("destructor", arg.getFirst(), new EventB(arg.getSecond(), typeEnv, FormulaExpand.EXPAND), pto);
    }
    pto.closeList();
    pto.closeTerm();
}
Also used : EventB(de.prob.animator.domainobjects.EventB)

Aggregations

EventB (de.prob.animator.domainobjects.EventB)12 CompoundPrologTerm (de.prob.prolog.term.CompoundPrologTerm)5 ClassicalB (de.prob.animator.domainobjects.ClassicalB)4 AAbstractConstantsContextClause (de.be4.classicalb.core.parser.node.AAbstractConstantsContextClause)1 AConstantsContextClause (de.be4.classicalb.core.parser.node.AConstantsContextClause)1 PContextClause (de.be4.classicalb.core.parser.node.PContextClause)1 PExpression (de.be4.classicalb.core.parser.node.PExpression)1 EventBConstant (de.prob.model.eventb.EventBConstant)1 RecursiveDefinitionCase (de.prob.model.eventb.theory.RecursiveDefinitionCase)1 ArrayList (java.util.ArrayList)1 Set (java.util.Set)1