PDefinition orddef = node.getOrdRelation() == null ? null : node.getOrdRelation().getRelDef(); PDefinition mindef = node.getOrdRelation() == null ? null : node.getOrdRelation().getMinDef(); PDefinition maxdef = node.getOrdRelation() == null ? null : node.getOrdRelation().getMaxDef();
if (def.getOrdRelation() != null && def.getOrdRelation().getRelDef() != null) PExp found = def.getOrdRelation().getRelDef().apply(THIS, lineno); if (found != null) if (def.getOrdRelation() != null && def.getOrdRelation().getMinDef() != null) PExp found = def.getOrdRelation().getMinDef().apply(THIS, lineno); if (found != null) if (def.getOrdRelation() != null && def.getOrdRelation().getMaxDef() != null) PExp found = def.getOrdRelation().getMaxDef().apply(THIS, lineno); if (found != null)
if (def.getOrdRelation() != null && def.getOrdRelation().getRelDef() != null) FunctionValue func = new FunctionValue(def.getOrdRelation().getRelDef(), null, null, initialContext); nvl.add(new NameValuePair(def.getOrdRelation().getRelDef().getName(), func)); if (def.getOrdRelation() != null && def.getOrdRelation().getMinDef() != null) FunctionValue func = new FunctionValue(def.getOrdRelation().getMinDef(), null, null, initialContext); nvl.add(new NameValuePair(def.getOrdRelation().getMinDef().getName(), func)); if (def.getOrdRelation() != null && def.getOrdRelation().getMaxDef() != null) FunctionValue func = new FunctionValue(def.getOrdRelation().getMaxDef(), null, null, initialContext); nvl.add(new NameValuePair(def.getOrdRelation().getMaxDef().getName(), func));
if (node.getOrdRelation() != null) { node.getOrdRelation().setRelDef(getRelDef(node.getOrdRelation(),node,node.getName().getOrdName(node.getLocation().clone()))); node.getInvType().setOrdDef(node.getOrdRelation().getRelDef()); setMinMax(node.getOrdRelation(),node);
if(node.getOrdRelation() != null && !_visitedNodes.contains(node.getOrdRelation())) node.getOrdRelation().apply(this);
if(node.getOrdRelation() != null && !_visitedNodes.contains(node.getOrdRelation())) node.getOrdRelation().apply(this, question);
if(node.getOrdRelation() != null && !_visitedNodes.contains(node.getOrdRelation())) node.getOrdRelation().apply(this);
if (node.getOrdRelation() != null) node.getOrdRelation().getRelDef().apply(this, question); af.createPPatternAssistant().typeResolve(node.getOrdRelation().getLhsPattern(), question.rootVisitor, question.question); af.createPPatternAssistant().typeResolve(node.getOrdRelation().getRhsPattern(), question.rootVisitor, question.question); if (node.getOrdRelation().getMinDef() != null) node.getOrdRelation().getMinDef().apply(this, question); if (node.getOrdRelation().getMaxDef() != null) node.getOrdRelation().getMaxDef().apply(this, question);
@Override public IProofObligationList caseATypeDefinition(ATypeDefinition node, IPOContextStack question) throws AnalysisException { try { IProofObligationList list = new ProofObligationList(); AExplicitFunctionDefinition invDef = node.getInvdef(); if (invDef != null) { list.addAll(invDef.apply(mainVisitor, question)); list.add(new SatisfiabilityObligation(node, question, assistantFactory)); } if (node.getOrdRelation() != null) { list.addAll(node.getOrdRelation().getRelExp().apply(mainVisitor,question)); list.add(new StrictOrderRelationObligation(node, question, assistantFactory)); } if (node.getEqRelation() != null) { list.addAll(node.getEqRelation().getRelExp().apply(mainVisitor,question)); list.add(new EquivalenceRelationObligation(node,question,assistantFactory)); } return list; } catch (Exception e) { throw new POException(node, e.getMessage()); } }
if(node.getOrdRelation() != null && !_visitedNodes.contains(node.getOrdRelation())) mergeReturns(retVal,node.getOrdRelation().apply(this));
if(node.getOrdRelation() != null && !_visitedNodes.contains(node.getOrdRelation())) mergeReturns(retVal,node.getOrdRelation().apply(this, question));
if (node.getOrdRelation() != null) node.getOrdRelation().apply(THIS,question);