Package kodkod.ast.operator

Examples of kodkod.ast.operator.Quantifier


  public final Formula visit(QuantifiedFormula qf) {
    Formula ret = lookup(qf);
    if (ret!=null) return ret;
   
    final Environment<Expression> oldRepEnv = repEnv; 
    final Quantifier quant = qf.quantifier();
    final Decls decls = qf.decls();
   
    if (skolemDepth>=0 && (negated && quant==ALL || !negated && quant==SOME)) { // skolemizable formula
      final List<Formula> rangeConstraints = new LinkedList<Formula>();
      final List<Formula> domConstraints = new LinkedList<Formula>();
View Full Code Here


   */
  public final BooleanValue visit(QuantifiedFormula quantFormula) {
    BooleanValue ret = lookup(quantFormula);
    if (ret!=null) return ret;

    final Quantifier quantifier = quantFormula.quantifier();

    switch(quantifier) {
    case ALL    :
      final BooleanAccumulator and = BooleanAccumulator.treeGate(Operator.AND);
      all(quantFormula.decls(), quantFormula.formula(), 0, BooleanConstant.FALSE, and);
View Full Code Here

  public final void visit(QuantifiedFormula qf) {
    if (visited(qf)) return;
   
    if (breakupQuantifiers) {
     
      final Quantifier quant = qf.quantifier();
     
      if ((!negated && quant==ALL) || (negated && quant==SOME)) { // may break down further
        final Map<Formula, Node> oldConjuncts = conjuncts;
        conjuncts = new LinkedHashMap<Formula, Node>();
        qf.formula().accept(this);
View Full Code Here

TOP

Related Classes of kodkod.ast.operator.Quantifier

Copyright © 2018 www.massapicom. 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.