Class RecursiveOptimizer

java.lang.Object
org.kink_lang.kink.internal.program.itreeoptimize.RecursiveOptimizer
All Implemented Interfaces:
Function<Itree,Itree>, UnaryOperator<Itree>

public class RecursiveOptimizer extends Object implements UnaryOperator<Itree>
A recursive composite optimizer.

This optimizer optimizes sub itrees recursively, and optimizes the itree using the optimizers made by the factories.

  • Constructor Details

    • RecursiveOptimizer

      public RecursiveOptimizer(List<org.kink_lang.kink.internal.program.itreeoptimize.OptimizerFactory> optimizerFactories)
      Constructs a composite optimizer.
      Parameters:
      optimizerFactories - the factories of optimizers applied to the argument itree.
  • Method Details