Class DexDefUseAnalysis

java.lang.Object
sootup.apk.frontend.interceptors.DexDefUseAnalysis

public class DexDefUseAnalysis extends Object
  • Field Details

    • localToNumber

      protected Map<Local,Integer> localToNumber
    • localToDefsBits

      protected BitSet[] localToDefsBits
    • localToUsesBits

      protected BitSet[] localToUsesBits
    • stmtList

      protected List<Stmt> stmtList
  • Constructor Details

  • Method Details

    • getUsesOf

      public Set<Stmt> getUsesOf(Local l)
    • collectDefinitionsWithAliases

      protected Set<Stmt> collectDefinitionsWithAliases(Local l)
      Collect definitions of l in body including the definitions of aliases of l. This analysis exploits that the problem is flow-insensitive anyway.

      In this context an alias is a local that propagates its value to l.

      Parameters:
      l - the local whose definitions are to collect
    • getDefsOf

      public List<Stmt> getDefsOf(Local l)