Updated osl submodule
[clay.git] / tests / unitary / dimreorder.c.orig.scop
blob99a7e253c3427dff10a1c902c81dc6ddc19a0d3c
1 [Clan] Info: parsing file #1 (./unitary/dimreorder.c)
2 #                                                     
3 #          <|                                         
4 #           A                                         
5 #          /.\                                       
6 #     <|  [""M#                                     
7 #      A   | #            Clan McCloog Castle         
8 #     /.\ [""M#           [Generated by Clan 0.7.1]
9 #    [""M# | #  U"U#U                              
10 #     | #  | #  \ .:/                                
11 #     | #  | #___| #                                  
12 #     | "--'     .-"                                
13 #   |"-"-"-"-"-#-#-##                            
14 #   |     # ## ######                                 
15 #    \       .::::'/                                 
16 #     \      ::::'/                                  
17 #   :8a|    # # ##                                    
18 #   ::88a      ###                                    
19 #  ::::888a  8a ##::.                                 
20 #  ::::::888a88a[]::::                                
21 # :::::::::SUNDOGa8a::::. ..                          
22 # :::::8::::888:Y8888:::::::::...                     
23 #::':::88::::888::Y88a______________________________________________________
24 #:: ::::88a::::88a:Y88a                                  __---__-- __
25 #' .: ::Y88a:::::8a:Y88a                            __----_-- -------_-__
26 #  :' ::::8P::::::::::88aa.                   _ _- --  --_ --- __  --- __--
27 #.::  :::::::::::::::::::Y88as88a...s88aa.
29 # [File generated by the OpenScop Library 0.8.4]
31 <OpenScop>
33 # =============================================== Global
34 # Language
37 # Context
38 CONTEXT
39 0 4 0 0 0 2
41 # Parameters are provided
43 <strings>
44 N M
45 </strings>
47 # Number of statements
50 # =============================================== Statement 1
51 # Number of relations describing the statement:
54 # ----------------------------------------------  1.1 Domain
55 DOMAIN
56 6 6 2 0 0 2
57 # e/i|  i    j |  N    M |  1  
58    1    1    0    0    0    0    ## i >= 0
59    1   -1    0    1    0    0    ## -i+N >= 0
60    1    0    0    1    0    0    ## N >= 0
61    1    0    1    0    0    0    ## j >= 0
62    1    0   -1    0    1    0    ## -j+M >= 0
63    1    0    0    0    1    0    ## M >= 0
65 # ----------------------------------------------  1.2 Scattering
66 SCATTERING
67 5 11 5 2 0 2
68 # e/i| c1   c2   c3   c4   c5 |  i    j |  N    M |  1  
69    0   -1    0    0    0    0    0    0    0    0    0    ## c1 == 0
70    0    0   -1    0    0    0    1    0    0    0    0    ## c2 == i
71    0    0    0   -1    0    0    0    0    0    0    0    ## c3 == 0
72    0    0    0    0   -1    0    0    1    0    0    0    ## c4 == j
73    0    0    0    0    0   -1    0    0    0    0    0    ## c5 == 0
75 # ----------------------------------------------  1.3 Access
76 WRITE
77 3 9 3 2 0 2
78 # e/i| Arr  [1]  [2]|  i    j |  N    M |  1  
79    0   -1    0    0    0    0    0    0    5    ## Arr == a
80    0    0   -1    0    1    0    0    0    0    ## [1] == i
81    0    0    0   -1    0    4    0    0    0    ## [2] == 4*j
83 READ
84 3 9 3 2 0 2
85 # e/i| Arr  [1]  [2]|  i    j |  N    M |  1  
86    0   -1    0    0    0    0    0    0    5    ## Arr == a
87    0    0   -1    0    1    0    0    0    0    ## [1] == i
88    0    0    0   -1    0    1    1    2    5    ## [2] == j+N+2*M+5
90 # ----------------------------------------------  1.4 Statement Extensions
91 # Number of Statement Extensions
93 <body>
94 # Number of original iterators
96 # List of original iterators
97 i j
98 # Statement body expression
99 a[i] [j*4] = a[i][j + N + 2*M + 5] * 2;
100 </body>
102 <extbody>
103 # Number of accesses
105 # Access coordinates (start/length)
106 0 10
107 13 21
108 # Number of original iterators
110 # List of original iterators
111 i j
112 # Statement body expression
113 a[i] [j*4] = a[i][j + N + 2*M + 5] * 2;
114 </extbody>
116 # =============================================== Extensions
117 <scatnames>
118 b0 i b1 j b2
119 </scatnames>
121 <arrays>
122 # Number of arrays
124 # Mapping array-identifiers/array-names
125 1 i
126 2 N
127 3 j
128 4 M
129 5 a
130 </arrays>
132 <coordinates>
133 # File name
134 ./unitary/dimreorder.c
135 # Starting line and column
136 2 0
137 # Ending line and column
138 12 0
139 # Indentation
141 </coordinates>
143 <clay>
144   dimreorder([0,0], 5, [1, 0]); # 5 == a
145 </clay>
147 </OpenScop>