Class InstanceOfPiPolicy

java.lang.Object
com.ibm.wala.ssa.InstanceOfPiPolicy
All Implemented Interfaces:
SSAPiNodePolicy

public class InstanceOfPiPolicy extends Object implements SSAPiNodePolicy
A pi node policy with the following rule:

If we have the following code:

 S1: c = v1 instanceof T S2: if (c == 0) { ... } 
replace it with:
 S1: c = v1 instanceof T S2: if (c == 0) { v2 = PI(v1, S1) .... } 
The same pattern holds if the test is c == 1. This renaming allows SSA-based analysis to reason about the type of v2 depending on the outcome of the branch.