Class InstructionsFlow<T extends org.eolang.jeo.representation.bytecode.InstructionsFlow.Reducible<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 Detail

      • max

        public Optional<T> max​(T initial,
                               Function<BytecodeEntry,​T> generator)
        Compute the maximum value for stack or variables.
        Parameters:
        initial - Initial value.
        generator - Function to generate the reducible element from the instruction.
        Returns:
        Maximum value.