Examples of quantify()


Examples of kodkod.ast.Formula.quantify()

   
      final Decls newDecls = visit((Decls)qf.decls());
      if (skolemDepth>=nonSkolems.size()+newDecls.size()) { // could skolemize below
        for(Decl d: newDecls) { nonSkolems.add(new DeclInfo(d)); }
        final Formula formula = qf.formula().accept(this);
        ret = ((newDecls==decls && formula==qf.formula()) ? qf : formula.quantify(quant, newDecls));
        for(int i = newDecls.size(); i > 0; i--) { nonSkolems.remove(nonSkolems.size()-1); }
      } else { // can't skolemize below
        final int oldDepth = skolemDepth;
        skolemDepth = -1;
        final Formula formula = qf.formula().accept(this);
View Full Code Here

Examples of kodkod.ast.Formula.quantify()

        for(int i = newDecls.size(); i > 0; i--) { nonSkolems.remove(nonSkolems.size()-1); }
      } else { // can't skolemize below
        final int oldDepth = skolemDepth;
        skolemDepth = -1;
        final Formula formula = qf.formula().accept(this);
        ret = ((newDecls==decls && formula==qf.formula()) ? qf : formula.quantify(quant, newDecls));
        skolemDepth = oldDepth;
      }       
    } 
   
    repEnv = oldRepEnv;
View Full Code Here

Examples of kodkod.ast.Formula.quantify()

    if (ret!=null) return ret;
   
    final Decls decls = (Decls)quantFormula.decls().accept(this);
    final Formula formula = quantFormula.formula().accept(this);
    ret = (decls==quantFormula.decls() && formula==quantFormula.formula()) ?
        quantFormula : formula.quantify(quantFormula.quantifier(), decls);
    return cache(quantFormula,ret);
  }
 
  /**
   * Calls lookup(formula) and returns the cached value, if any. 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.