Class ReachabilityFunctions<T>
java.lang.Object
com.ibm.wala.ipa.slicer.ReachabilityFunctions<T>
- All Implemented Interfaces:
IFlowFunctionMap<T>
Trivial flow functions to represent simple reachability. All functions simply return "0"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VectorGenFlowFunction
static final IUnaryFlowFunction
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ReachabilityFunctions
<T> getCallFlowFunction
(T src, T dest, T ret) getCallNoneToReturnFlowFunction
(T src, T dest) getCallToReturnFlowFunction
(T src, T dest) getNormalFlowFunction
(T src, T dest) getReturnFlowFunction
(T src, T dest) getReturnFlowFunction
(T call, T src, T dest)
-
Field Details
-
FLOW_REACHES
-
KILL_FLOW
-
-
Method Details
-
createReachabilityFunctions
-
getCallNoneToReturnFlowFunction
- Specified by:
getCallNoneToReturnFlowFunction
in interfaceIFlowFunctionMap<T>
- Returns:
- the flow function for a "call-to-return" edge in the supergraph from src -> dest, when the supergraph does not contain any callees of src. This happens via, e.g., slicing.
-
getCallToReturnFlowFunction
- Specified by:
getCallToReturnFlowFunction
in interfaceIFlowFunctionMap<T>
- Returns:
- the flow function for a "call-to-return" edge in the supergraph from src -> dest
-
getNormalFlowFunction
- Specified by:
getNormalFlowFunction
in interfaceIFlowFunctionMap<T>
- Returns:
- the flow function for a "normal" edge in the supergraph from src -> dest
-
getReturnFlowFunction
- Specified by:
getReturnFlowFunction
in interfaceIFlowFunctionMap<T>
- Parameters:
call
- supergraph node of the call instruction for this return edge.- Returns:
- the flow function for a "return" edge in the supergraph from src -> dest
-
getReturnFlowFunction
-
getCallFlowFunction
- Specified by:
getCallFlowFunction
in interfaceIFlowFunctionMap<T>
- Parameters:
src
- the call blockdest
- the entry of the calleeret
- the block that will be returned to, in the caller. This can be null .. signifying that facts can flow into the callee but not return- Returns:
- the flow function for a "call" edge in the supergraph from src -> dest
-