Examples of apply()


Examples of soot.jimple.Stmt.apply()

          Body body = method.getActiveBody();
          Collection<Unit> uc = body.getUnits();
          for (Unit u : uc) {
            if (u instanceof Stmt) {
              Stmt stmt = (Stmt)u;
              stmt.apply(this);
              if (stmt.containsInvokeExpr()) {
                createHotspotsFromInvokeExpr(stmt);
              }
            }
          }
View Full Code Here

Examples of test.Replace.apply()

    Nat N = make(n);
    Nat R = factory.makeNat_Fib(N);

    Nat res = null;
    while (res != R) {
      res = (Nat) replace.apply(R);
      R = res;
    }

    if (unmake(R) != r) {
      System.err.println("unexpected result of computation!");
View Full Code Here

Examples of wyautl.rw.IterativeRewriter.apply()

        automaton, Types.inferences);
    IterativeRewriter.Strategy<ReductionRule> reductionStrategy = new UnfairRuleStateRewriteStrategy<ReductionRule>(
        automaton, Types.reductions);
    IterativeRewriter rw = new IterativeRewriter(automaton,
        inferenceStrategy, reductionStrategy, Types.SCHEMA);
    rw.apply();
    //
//    try {
//      new PrettyAutomataWriter(System.err, SCHEMA, "And",
//          "Or").write(automaton);
//      System.out.println();
View Full Code Here

Examples of wyautl.rw.StrategyRewriter.apply()

        automaton, Arithmetic.inferences);
    StrategyRewriter.Strategy<ReductionRule> reductionStrategy = new SimpleRewriteStrategy<ReductionRule>(
        automaton, Arithmetic.reductions);
    StrategyRewriter rw = new StrategyRewriter(automaton,
        inferenceStrategy, reductionStrategy, Arithmetic.SCHEMA);
    rw.apply(10000);

    boolean result = automaton.get(automaton.getRoot(0)).equals(Arithmetic.False);
    if(result != unsat) {
      System.out.println("\n\n*** TEST FAILED: " + line + "\n");
    }
View Full Code Here

Examples of wycc.lang.Pipeline.apply()

      // whileydir can be null if a subclass of this task doesn't
      // necessarily require it.
      Pipeline wyilPipeline = initialisePipeline();

      if(pipelineModifiers != null) {
            wyilPipeline.apply(pipelineModifiers);
          }

      // ========================================================
      // Whiley => Wyil Compilation Rule
      // ========================================================
View Full Code Here

Examples of wycs.transforms.TypePropagation.apply()

    for(Pair<Path.Entry<?>,Path.Root> p : delta) {
      Path.Entry<?> f = p.first();
      if (f.contentType() == WyalFile.ContentType) {
        Path.Entry<WyalFile> sf = (Path.Entry<WyalFile>) f;
        WyalFile wf = sf.read();
        typer.apply(wf);
      }
    }

    logger.logTimedMessage("Typed " + count + " source file(s).",
        System.currentTimeMillis() - tmpTime, tmpMem - runtime.freeMemory());
View Full Code Here

Examples of xenon3d.scene.GraphicsContext3D.apply()

                gc.setTransform(tri_trans);
                gc.draw(tri_geo);
                gc.endTransform();
                gc.beginTransform();
                gc.setTransform(quad_trans);
                gc.apply(quad_app);
                gc.draw(quad_geo);
                gc.endTransform();
            }
           
            @Override
View Full Code Here

Examples of xerial.larray.LIntArray.apply()

        }
        for (int iter = 0; iter < 10; iter++) {
            long sum = 0;
            long start = System.currentTimeMillis();
            for (int i = 0; i < l.length(); i++) {
                sum += l.apply(i);
            }
            long end = System.currentTimeMillis();
            _logger.debug("time:" + (end - start) + " sum:" + sum);
        }
        _logger.debug("compressing the data");
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.