A set of attributes have also been implemented in order to provide an access to data dependencies. These one rely on the usual notation to access to the various kind of dependencies which are the following:
In TSF, access to data dependencies requires two steps:
The following attributes are provided:
depList := currentStat.DEP() // by default get all the direct, anti and output dependencies directDepList := currentStat.DEP(DIRECT) antiDepList := currentStat.DEP(ANTI) outputDepList := currentStat.DEP(OUT) valueDepList := currentStat.DEP(VALUE) controlDEpList := currentStat.DEP(CONTROL) directAndAntiDepList := currentStat.DEP(DIRECT,ANTI) directAndOutputDepList := currentStat.DEP(DIRECT,OUT)as well as all the other combinations.
The predefined keywords DIRECT, ANTI, OUT, VALUE, CONTROL may be replaced directly by their corresponding values ("direct", "anti", "out", "value", "control").
Example 50:Example on the manipulation of the data dependencies.
Script | ||
SCRIPT DisplayOutputDependence () |
||
Fortran User Selection | Results | |
do 430 i = 1,nsize1 |
P1 : Kind of the dataDep: out |
P1 : Kind of the dataDep: out |