public Set<?> getReadVariables(SootMethod caller, Stmt inv) { RWSet rwSet = sideEffectAnalysis.readSet(caller, inv); if (rwSet == null) return null; HashSet<Object> objSet = new HashSet<Object>(rwSet.getFields()); objSet.addAll(rwSet.getGlobals()); return objSet; }
public Set<?> getWriteVariables(SootMethod caller, Stmt inv) { RWSet rwSet = sideEffectAnalysis.writeSet(caller, inv); if (rwSet == null) return null; HashSet<Object> objSet = new HashSet<Object>(rwSet.getFields()); objSet.addAll(rwSet.getGlobals()); return objSet; }