Class SlicerUtil
java.lang.Object
com.ibm.wala.ipa.slicer.SlicerUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcountAllocations(Collection<Statement> slice, boolean applicationOnly) static intcountAloads(Collection<Statement> slice) static intstatic intcountConditionals(Collection<Statement> slice) static intcountGetfields(Collection<Statement> slice, boolean applicationOnly) static intcountGetstatics(Collection<Statement> slice) static intcountInvokes(Collection<Statement> slice) static intcountNormals(Collection<Statement> slice) static intcountPutfields(Collection<Statement> slice) static intcountPutstatics(Collection<Statement> slice) static intcountReturns(Collection<Statement> slice) static intcountThrows(Collection<Statement> slice, boolean applicationOnly) static voiddumpSlice(Collection<Statement> slice) static voiddumpSlice(Collection<Statement> slice, PrintWriter w) static voiddumpSliceToFile(Collection<Statement> slice, String fileName) static StatementfindCallTo(CGNode n, String methodName) Find call to method in CGNodestatic StatementFind the firstSSANewInstructionin a node
-
Method Details
-
findCallTo
Find call to method in CGNode- Parameters:
n- the nodemethodName- name of called method- Returns:
- Statement calling the method
- Throws:
UnimplementedError- if no such statement found
-
findFirstAllocation
Find the firstSSANewInstructionin a node- Parameters:
n- the node- Returns:
- Statement corresponding to first new instruction
- Throws:
UnimplementedError- if no new instruction is found
-
dumpSlice
-
dumpSlice
-
dumpSliceToFile
public static void dumpSliceToFile(Collection<Statement> slice, String fileName) throws FileNotFoundException - Throws:
FileNotFoundException
-
countAllocations
-
countThrows
-
countAloads
-
countNormals
-
countApplicationNormals
-
countConditionals
-
countInvokes
-
countPutfields
-
countReturns
-
countGetfields
-
countPutstatics
-
countGetstatics
-