Module org.kink_lang.kink
Class RecursiveOptimizer
java.lang.Object
org.kink_lang.kink.internal.program.itreeoptimize.RecursiveOptimizer
- All Implemented Interfaces:
Function<Itree,
,Itree> UnaryOperator<Itree>
A recursive composite optimizer.
This optimizer optimizes sub itrees recursively, and optimizes the itree using the optimizers made by the factories.
-
Constructor Summary
ConstructorDescriptionRecursiveOptimizer
(List<org.kink_lang.kink.internal.program.itreeoptimize.OptimizerFactory> optimizerFactories) Constructs a composite optimizer. -
Method Summary
-
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