Class VarCtx


  • public final class VarCtx
    extends Object
    One local-variable slot's contents during abstract execution.
    • Constructor Detail

      • VarCtx

        public VarCtx​(InsnContext storedBy,
                      boolean wide)
        A value stored into a local by storedBy.
        Parameters:
        storedBy - the context of the store instruction
        wide - true if the value occupies two slots
      • VarCtx

        public VarCtx​(boolean wide)
        An entry parameter (no storing instruction).
        Parameters:
        wide - true if the value occupies two slots
    • Method Detail

      • getInstructionWhichStored

        public InsnContext getInstructionWhichStored()
        Returns:
        the instruction which stored
      • isWide

        public boolean isWide()
        Returns:
        whether wide
      • isParameter

        public boolean isParameter()
        Returns:
        whether parameter
      • addRead

        public void addRead​(InsnContext ctx)
        Records a context that read this slot, ignoring duplicates.
        Parameters:
        ctx - the reading instruction-execution
      • markParameter

        public VarCtx markParameter()
        Flags this slot as an entry parameter.
        Returns:
        this context