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

Examples of org.openquark.cal.internal.runtime.lecc.RTValue$InternalException


      }

      case 1: {
        // Cal.Core.Prelude.Just
        // Decompose data type to access members.
        RTValue vertexNum = $case1.get_value();


        RTCons $case2 =
          ((RTCons)(java.lang.Object)oldGraph.evaluate($ec));

        // Cal.Utilities.DirectedGraph.DirectedGraph
        // Decompose data type to access members.
        TYPE_Directed_Graph.CAL_Directed_Graph $dcCaseVar2 =
          ((TYPE_Directed_Graph.CAL_Directed_Graph)(java.lang.Object)
            $case2);

        int nextVertexNum$U = $dcCaseVar2.get_nextVertexNum_As_Int();
        RTValue oldVertexMap = $dcCaseVar2.get_vertexMap();
        RTValue oldEdges = $dcCaseVar2.get_edges();

        return
          new TYPE_Directed_Graph.CAL_Directed_Graph(
            nextVertexNum$U,
            Delete.$instance.f2S(
View Full Code Here


   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.intToInt
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue $x0$L = $rootNode.getArgValue();

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

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.stableTopologicalSort
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue graph = $rootNode.getArgValue();
    RTValue $dictvarCal_Core_Prelude_Eq_39 =
      $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Samples.DirectedGraphLibrary.applyVertexFunction
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue $x1$L = $rootNode.getArgValue();
    RTValue $x0$L = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        ((UnaryFunction)(java.lang.Object)
          $x0$L.evaluate($ec).getOpaqueValue()),
        $x1$L.evaluate($ec).getOpaqueValue(),
        $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.filter
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue graph = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue filterFn =
      ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue $dictvarCal_Core_Prelude_Eq_15 =
      $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.notEqualsObject
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue y$L = $rootNode.getArgValue();
    RTValue x$L = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
        x$L.evaluate($ec).getOpaqueValue(),
        y$L.evaluate($ec).getOpaqueValue(),
        $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Samples.DirectedGraphLibrary.removeEdge
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue edge = $rootNode.getArgValue();
    RTValue graph = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.stableTopologicalSort$areDependenciesSatisfied$17
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue vertex = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue newSatisfiedSet =
      ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue reverseGraph = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f3S(
View Full Code Here

   * fUnboxed3S
   * This method implements the logic of the CAL function Cal.Utilities.DirectedGraph.stableTopologicalSort$areDependenciesSatisfied$17
   * This version of the logic returns an unboxed value.
   */
  public final boolean fUnboxed3S(RTValue reverseGraph, RTValue newSatisfiedSet, RTValue vertex, RTExecutionContext $ec) throws CALExecutorException {
    RTValue $result = f3S(reverseGraph, newSatisfiedSet, vertex, $ec);

    reverseGraph = null;
    newSatisfiedSet = null;
    vertex = null;
    return $result.evaluate($ec).getBooleanValue();
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Samples.DirectedGraphLibrary.foldReachableInDepthFirstSearchOrder
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue graph = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue init = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue finishVertexFn =
      ($currentRootNode = $currentRootNode.prevArg()).getArgValue();
    RTValue startVertexFn =
      ($currentRootNode = $currentRootNode.prevArg()).getArgValue();
    RTValue startVertex = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f5S(
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.runtime.lecc.RTValue$InternalException

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.