Class NeverRefineFieldsPolicy
java.lang.Object
com.ibm.wala.demandpa.alg.refinepolicy.NeverRefineFieldsPolicy
- All Implemented Interfaces:
FieldRefinePolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleannextPass()booleanshouldRefine(IField field, PointerKey basePtr, PointerKey val, IFlowLabel label, StateMachine.State state)
-
Constructor Details
-
NeverRefineFieldsPolicy
public NeverRefineFieldsPolicy()
-
-
Method Details
-
shouldRefine
public boolean shouldRefine(IField field, PointerKey basePtr, PointerKey val, IFlowLabel label, StateMachine.State state) - Specified by:
shouldRefinein interfaceFieldRefinePolicy- Parameters:
field- the accessed fieldbasePtr- the base pointer of the access- Returns:
trueif match edges for the field access should be refined. Otherwise,falseis returned, indicating that the field can be handled with match edges.
-
nextPass
public boolean nextPass()- Specified by:
nextPassin interfaceFieldRefinePolicy- Returns:
trueif more refinement can be done, and hence another pass can be attempted;falseotherwise
-