Class TestConstantStrategy

All Implemented Interfaces:
IContainerStrategy

public class TestConstantStrategy extends AbstractListStrategy
Strategy that reasons about maps with constant keys and lists with constant indices. Uses ListSizeAnalysis to retrieve the list size, thus, should only be used for testing the semantics of list operations.
Author:
Tim Lange
  • Constructor Details

  • Method Details

    • getNextPosition

      public ContainerContext getNextPosition(soot.Value value, soot.jimple.Stmt stmt)
      Description copied from interface: IContainerStrategy
      Retrieves a context given an implicit key after the given statement (i.e. a list where the key is dependent on the number of add calls before)
      Specified by:
      getNextPosition in interface IContainerStrategy
      Specified by:
      getNextPosition in class AbstractListStrategy
      Parameters:
      value - list
      stmt - statement that uses value
      Returns:
      new context definition
    • getLastPosition

      public ContainerContext getLastPosition(soot.Value value, soot.jimple.Stmt stmt)
      Description copied from interface: IContainerStrategy
      Retrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)
      Specified by:
      getLastPosition in interface IContainerStrategy
      Specified by:
      getLastPosition in class AbstractListStrategy
      Parameters:
      value - list
      stmt - statement that uses value
      Returns:
      new context definition