Constructor and Description |
---|
BanerjeeTest(SubscriptPair pair)
Constructs a new test problem with the specified
SubscriptPair . |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<Loop> |
getCommonEnclosingLoops()
Returns a list of loops from outermost to innermost that are common to
the two expressions being tested for dependence, whether they are a pair
of subscripts or a pair of whole array accesses
|
boolean |
isTestEligible()
Returns whether the constructor for the dependence test determined
whether it would be eligible to run the test on the pair of
subscripts or not
|
boolean |
testDependence(DependenceVector dependence_vector)
Runs the dependence test on a direction vector
|
public BanerjeeTest(SubscriptPair pair)
SubscriptPair
.pair
- the input SubscriptPair
object.public boolean isTestEligible()
DDTest
isTestEligible
in interface DDTest
public boolean testDependence(DependenceVector dependence_vector)
DDTest
testDependence
in interface DDTest
dependence_vector
- The dependence vector under which test needs to be performedpublic java.util.LinkedList<Loop> getCommonEnclosingLoops()
DDTest
getCommonEnclosingLoops
in interface DDTest