Class StackDepthAnalysis

All Implemented Interfaces:
DataflowAnalysis<StackDepth>

public class StackDepthAnalysis extends ForwardDataflowAnalysis<StackDepth>
A really simple forward dataflow analysis to find the depth of the Java operand stack. This is more of a proof of concept for the dataflow analysis framework than anything useful.
See Also:
  • Field Details

  • Constructor Details

    • StackDepthAnalysis

      public StackDepthAnalysis(org.apache.bcel.generic.ConstantPoolGen cpg, DepthFirstSearch dfs)
      Constructor.
      Parameters:
      cpg - the ConstantPoolGen of the method whose CFG we're performing the analysis on
      dfs - DepthFirstSearch of the method's CFG
  • Method Details