Exemple #1
0
 @Override
 public String visit(IExists e) throws IVisitor.VisitorException {
   if (!isFormula) {
     throw new VisitorException(
         "Use of exists in a term position is not yet implemented in the Simplify adapter",
         e.pos()); // FIXME - booleans as terms
   }
   StringBuilder sb = new StringBuilder();
   sb.append("(EXISTS (");
   for (IDeclaration d : e.parameters()) {
     if (d.sort().isBool()) {
       throw new VisitorException(
           "Boolean quantifiers are not implemented in the Simplify adapter",
           e.pos()); // FIXME - booleans as terms
     }
     sb.append(d.accept(this));
     sb.append(" ");
   }
   sb.append(") ");
   sb.append(e.expr().accept(this));
   sb.append(")");
   return sb.toString();
 }
Exemple #2
0
 @Override
 public String visit(IDeclaration e) throws IVisitor.VisitorException {
   StringBuilder sb = new StringBuilder();
   sb.append(e.parameter().accept(this));
   return sb.toString();
 }