Class DeadAssignmentEliminator

java.lang.Object
sootup.interceptors.DeadAssignmentEliminator
All Implemented Interfaces:
BodyInterceptor

public class DeadAssignmentEliminator extends Object implements BodyInterceptor
This interceptor eliminates assignment statements to locals whose values are not subsequently used, unless evaluating the right-hand side of the assignment may cause side-effects. Complexity is linear with respect to the statements.
Author:
Marcus Nachtigall
  • Constructor Details

    • DeadAssignmentEliminator

      public DeadAssignmentEliminator()
    • DeadAssignmentEliminator

      public DeadAssignmentEliminator(boolean eliminateOnlyStackLocals)
  • Method Details