Class InstructionsFlow<T extends org.eolang.jeo.representation.bytecode.InstructionsFlow.Reducible<T>>
java.lang.Object
org.eolang.jeo.representation.bytecode.InstructionsFlow<T>
- Type Parameters:
T
- Type of the reducible element.
public final class InstructionsFlow<T extends org.eolang.jeo.representation.bytecode.InstructionsFlow.Reducible<T>>
extends Object
Data-flow analysis.
This class knows how to compute the maximum value of a reducible element based
on the instruction flow.
- Since:
- 0.6
-
Method Summary
-
Method Details
-
max
Compute the maximum value.- Parameters:
initial
- Initial value.generator
- Function to generate the reducible element from the instruction.- Returns:
- Maximum value.
-