Class OnlyArraysPolicy
java.lang.Object
com.ibm.wala.demandpa.alg.refinepolicy.OnlyArraysPolicy
- All Implemented Interfaces:
FieldRefinePolicy
Only refines for the array contents pseudo-field.
- Author:
- manu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
nextPass()
boolean
shouldRefine
(IField field, PointerKey basePtr, PointerKey val, IFlowLabel label, StateMachine.State state)
-
Constructor Details
-
OnlyArraysPolicy
public OnlyArraysPolicy()
-
-
Method Details
-
shouldRefine
public boolean shouldRefine(IField field, PointerKey basePtr, PointerKey val, IFlowLabel label, StateMachine.State state) - Specified by:
shouldRefine
in interfaceFieldRefinePolicy
- Parameters:
field
- the accessed fieldbasePtr
- the base pointer of the access- Returns:
true
if match edges for the field access should be refined. Otherwise,false
is returned, indicating that the field can be handled with match edges.
-
nextPass
public boolean nextPass()- Specified by:
nextPass
in interfaceFieldRefinePolicy
- Returns:
true
if more refinement can be done, and hence another pass can be attempted;false
otherwise
-