Support for osl statement_extensions
[clay.git] / tests / unitary / dimreorder.c.clay.scop
blob34318af8840a24bd3291a425f9e216c082486220
2 <OpenScop>
4 # =============================================== Global
5 # Language
8 # Context
9 CONTEXT
10 0 4 0 0 0 2
12 # Parameters are provided
14 <strings>
15 N M
16 </strings>
18 # Number of statements
21 # =============================================== Statement 1
22 # Number of relations describing the statement:
25 # ----------------------------------------------  1.1 Domain
26 DOMAIN
27 6 6 2 0 0 2
28 # e/i|  i    j |  N    M |  1  
29    1    1    0    0    0    0    ## i >= 0
30    1   -1    0    1    0    0    ## -i+N >= 0
31    1    0    0    1    0    0    ## N >= 0
32    1    0    1    0    0    0    ## j >= 0
33    1    0   -1    0    1    0    ## -j+M >= 0
34    1    0    0    0    1    0    ## M >= 0
36 # ----------------------------------------------  1.2 Scattering
37 SCATTERING
38 5 11 5 2 0 2
39 # e/i| c1   c2   c3   c4   c5 |  i    j |  N    M |  1  
40    0   -1    0    0    0    0    0    0    0    0    0    ## c1 == 0
41    0    0   -1    0    0    0    1    0    0    0    0    ## c2 == i
42    0    0    0   -1    0    0    0    0    0    0    0    ## c3 == 0
43    0    0    0    0   -1    0    0    1    0    0    0    ## c4 == j
44    0    0    0    0    0   -1    0    0    0    0    0    ## c5 == 0
46 # ----------------------------------------------  1.3 Access
47 WRITE
48 3 9 3 2 0 2
49 # e/i| Arr  [1]  [2]|  i    j |  N    M |  1  
50    0   -1    0    0    0    0    0    0    5    ## Arr == a
51    0    0    0   -1    1    0    0    0    0    ## [2] == i
52    0    0   -1    0    0    4    0    0    0    ## [1] == 4*j
54 READ
55 3 9 3 2 0 2
56 # e/i| Arr  [1]  [2]|  i    j |  N    M |  1  
57    0   -1    0    0    0    0    0    0    5    ## Arr == a
58    0    0    0   -1    1    0    0    0    0    ## [2] == i
59    0    0   -1    0    0    1    1    2    5    ## [1] == j+N+2*M+5
61 # ----------------------------------------------  1.4 Statement Extensions
62 # Number of Statement Extensions
64 <body>
65 # Number of original iterators
67 # List of original iterators
68 i j
69 # Statement body expression
70 a[4*j][i] = a[j + N + 2*M + 5][i] * 2;
71 </body>
73 # =============================================== Extensions
74 <scatnames>
75 b0 i b1 j b2
76 </scatnames>
78 <arrays>
79 # Number of arrays
81 # Mapping array-identifiers/array-names
82 1 i
83 2 N
84 3 j
85 4 M
86 5 a
87 </arrays>
89 <coordinates>
90 # File name
91 ./unitary/dimreorder.c
92 # Starting line and column
93 2 0
94 # Ending line and column
95 12 0
96 # Indentation
98 </coordinates>
100 </OpenScop>