示例#1
0
 @Override
 public String visit(IForall e) throws IVisitor.VisitorException {
   if (!isFormula) {
     throw new VisitorException(
         "Use of forall in a term position is not yet implemented in the Simplify adapter",
         e.pos()); // FIXME - booleans as terms
   }
   StringBuilder sb = new StringBuilder();
   sb.append("(FORALL (");
   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.parameter().accept(this));
     sb.append(" ");
   }
   sb.append(") ");
   sb.append(e.expr().accept(this));
   sb.append(")");
   return sb.toString();
 }
示例#2
0
 @Override
 public String visit(IDeclaration e) throws IVisitor.VisitorException {
   StringBuilder sb = new StringBuilder();
   sb.append(e.parameter().accept(this));
   return sb.toString();
 }