Package org.openquark.cal.internal.runtime.lecc

Examples of org.openquark.cal.internal.runtime.lecc.RTValue.evaluate()


  public final List fUnboxed2S(RTValue graph, RTValue startVertex, RTExecutionContext $ec) throws CALExecutorException {
    RTValue $result = f2S(graph, startVertex, $ec);

    graph = null;
    startVertex = null;
    return ((List)(java.lang.Object)$result.evaluate($ec).getOpaqueValue());
  }

}
View Full Code Here


   */
  public final List fUnboxed1S(RTValue graph, RTExecutionContext $ec) throws CALExecutorException {
    RTValue $result = f1S(graph, $ec);

    graph = null;
    return ((List)(java.lang.Object)$result.evaluate($ec).getOpaqueValue());
  }

}
View Full Code Here

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        $x0$L.evaluate($ec).getOrdinalValue(),
        $x1$L.evaluate($ec).getOrdinalValue(),
        $ec);
  }

  /**
 
View Full Code Here

    // Arguments
    RTValue $i$L = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S($i$L.evaluate($ec).getOrdinalValue(), $ec);
  }

  /**
   * f1L
   * This method implements the function logic of the CAL function Cal.Core.Prelude.$dictCal.Core.Prelude.Ord#Cal.Core.Prelude.Int
View Full Code Here

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f1S(
        ((Pair)(java.lang.Object)
          edge$L.evaluate($ec).getOpaqueValue()),
        $ec);
  }

  /**
   * f1L
 
View Full Code Here

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        RTValue.lastRef(list1.evaluate($ec), list1 = null),
        RTValue.lastRef(list2, list2 = null),
        $ec);
  }

  /**
 
View Full Code Here

              stackTop.evaluate($ec));
          RTValue vertexNum =
            $recordCase2.getOrdinalFieldValue(1);
          RTValue finished = $recordCase2.getOrdinalFieldValue(2);

          if (finished.evaluate($ec).getBooleanValue()) {
            stack = stackBottom.evaluate($ec);
              accum =
              finishVertexFn.f2L(
                accum.getValue(),
                vertexNum,
View Full Code Here

    // Arguments
    RTValue list = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(RTValue.lastRef(list.evaluate($ec), list = null), $ec);
  }

  /**
   * f1L
   * This method implements the function logic of the CAL function Cal.Core.Prelude.isEmptyList
View Full Code Here

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        acc$L.evaluate($ec).getOrdinalValue(),
        RTValue.lastRef(list.evaluate($ec), list = null),
        $ec);
  }

  /**
 
View Full Code Here

          // Cal.Core.Prelude.Cons
          // Decompose data type to access members.
          RTValue listTail = $case1.get_tail();

          acc = (acc + 1);
          list = listTail.evaluate($ec);
          continue TRLoop;
        }

        default: {
          return
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.