Examples of forall()


Examples of edu.mit.csail.sdg.alloy4compiler.ast.Expr.forAll()

                   if (!cform(ExprList.makeDISJOINT(null, null, d.names))) return "Fields must be disjoint.";
                }
                if (d.disjoint2!=null) for(ExprHasName f: d.names) {
                   Decl that = s.oneOf("that");
                   Expr formula = s.decl.get().equal(that.get()).not().implies(s.decl.get().join(f).intersect(that.get().join(f)).no());
                   if (!cform(formula.forAll(that).forAll(s.decl))) return "Fields must be disjoint.";
                }
             }
             for(Expr f: s.getFacts()) {
                if (!cform(f.forAll(s.decl))) {
                   f = f.deNOP(); if (f instanceof ExprUnary) {
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Expr.forAll()

         for(Decl d: s.getFieldDecls()) {
            k2pos_enabled = false;
            for(ExprHasName n: d.names) {
               Field f = (Field)n;
               Expr form = s.decl.get().join(f).in(d.expr);
               form = s.isOne==null ? form.forAll(s.decl) : ExprLet.make(null, (ExprVar)(s.decl.get()), s, form);
               frame.addFormula(cform(form), f);
               // Given the above, we can be sure that every column is well-bounded (except possibly the first column).
               // Thus, we need to add a bound that the first column is a subset of s.
               if (s.isOne==null) {
                   Expression sr = a2k(s), fr = a2k(f);
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Expr.forAll()

               }
            }
            if (s.isOne==null && d.disjoint2!=null) for(ExprHasName f: d.names) {
               Decl that = s.oneOf("that");
               Expr formula = s.decl.get().equal(that.get()).not().implies(s.decl.get().join(f).intersect(that.get().join(f)).no());
               frame.addFormula(cform(formula.forAll(that).forAll(s.decl)), d.disjoint2);
            }
            if (d.names.size()>1 && d.disjoint!=null) {  frame.addFormula(cform(ExprList.makeDISJOINT(d.disjoint, null, d.names)), d.disjoint)}
         }
         k2pos_enabled = true;
         for(Expr f: s.getFacts()) {
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Sig.Field.forAll()

            }
            if (d.names.size()>1 && d.disjoint!=null) {  frame.addFormula(cform(ExprList.makeDISJOINT(d.disjoint, null, d.names)), d.disjoint)}
         }
         k2pos_enabled = true;
         for(Expr f: s.getFacts()) {
            Expr form = s.isOne==null ? f.forAll(s.decl) : ExprLet.make(null, (ExprVar)(s.decl.get()), s, f);
            frame.addFormula(cform(form), f);
         }
      }
      k2pos_enabled = true;
      recursiveAddFormula(facts);
View Full Code Here

Examples of kodkod.ast.Formula.forAll()

      if (op==ExprQt.Op.SOME) {
         if (guards.size()==0) return ans.forSome(dd);
         guards.add(ans);
         return Formula.and(guards).forSome(dd);
      } else {
         if (guards.size()==0) return ans.forAll(dd);
         return Formula.and(guards).implies(ans).forAll(dd);
      }
   }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of soot.jimple.spark.sets.PointsToSetInternal.forall()

                        } else if( lhs instanceof FieldRef ) {
                            v = pag.findGlobalVarNode( ((FieldRef) lhs).getField() );
                        }
                        if( v != null ) {
                            PointsToSetInternal p2set = v.getP2Set();
                            p2set.forall( new P2SetVisitor() {
                            public final void visit( Node n ) {
                                addTag( s, n, nodeToTag, unknown );
                            }} );
                            Node[] simpleSources = pag.simpleInvLookup(v);
                            for (Node element : simpleSources) {
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.