Class OpStackCalculator


  • public class OpStackCalculator
    extends Object
    Emulates the operation of the JVM stack to compute the expected types of the objects on the stack at each Unit in a BafBody.
    Author:
    Michael Batchelder, Timothy Hoffman
    • Method Detail

      • calculateStacks

        public static Map<Unit,​Stack<Type>> calculateStacks​(BafBody b)
        Parameters:
        b -
        Returns:
        Map of each Unit to the VM operand stack types prior to executing the Unit