PetScan::extract_unsigned: turn into a static function
[pet.git] / tests / continue4.scop
blob74bf536028031031f608af3b5b5a70023d89d9b1
1 start: 47
2 end: 216
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ __pet_test_0[i] : i >= 0 and i <= 99 }'
7   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
8   element_type: int
9   element_size: 4
10   uniquely_defined: 1
11 - context: '{  :  }'
12   extent: '{ __pet_test_1[i] : i >= 0 and i <= 99 }'
13   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
14   element_type: int
15   element_size: 4
16   uniquely_defined: 1
17 - context: '{  :  }'
18   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
19   element_type: int
20   element_size: 4
21 - context: '{  :  }'
22   extent: '{ j[] }'
23   element_type: int
24   element_size: 4
25 statements:
26 - line: 9
27   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
28   schedule: '{ S_0[i] -> [0, i, 0] }'
29   body:
30     type: op
31     operation: =
32     arguments:
33     - type: access
34       relation: '{ S_0[i] -> j[] }'
35       index: '{ S_0[i] -> j[] }'
36       reference: __pet_ref_0
37       read: 0
38       write: 1
39     - type: call
40       name: f
41 - line: 10
42   domain: '{ S_1[i] : i >= 0 and i <= 99 }'
43   schedule: '{ S_1[i] -> [0, i, 1, 0] }'
44   body:
45     type: op
46     operation: =
47     arguments:
48     - type: access
49       relation: '{ S_1[i] -> __pet_test_0[i] }'
50       index: '{ S_1[i] -> __pet_test_0[(i)] }'
51       reference: __pet_ref_1
52       read: 0
53       write: 1
54     - type: op
55       operation: ==
56       arguments:
57       - type: access
58         relation: '{ S_1[i] -> j[] }'
59         index: '{ S_1[i] -> j[] }'
60         reference: __pet_ref_2
61         read: 1
62         write: 0
63       - type: int
64         value: 0
65 - line: 12
66   domain: '{ [S_2[i] -> [0]] : i >= 0 and i <= 99 }'
67   schedule: '{ S_2[i] -> [0, i, 2] }'
68   body:
69     type: op
70     operation: =
71     arguments:
72     - type: access
73       relation: '{ S_2[i] -> a[i] }'
74       index: '{ S_2[i] -> a[(i)] }'
75       reference: __pet_ref_4
76       read: 0
77       write: 1
78     - type: access
79       relation: '{ S_2[i] -> [i] }'
80       index: '{ S_2[i] -> [(i)] }'
81       reference: __pet_ref_5
82       read: 1
83       write: 0
84   arguments:
85   - type: access
86     relation: '{ S_2[i] -> __pet_test_0[i] }'
87     index: '{ S_2[i] -> __pet_test_0[(i)] }'
88     reference: __pet_ref_3
89     read: 1
90     write: 0
91 - line: 13
92   domain: '{ [S_3[i] -> [0]] : i >= 0 and i <= 99 }'
93   schedule: '{ S_3[i] -> [0, i, 3] }'
94   body:
95     type: op
96     operation: =
97     arguments:
98     - type: access
99       relation: '{ S_3[i] -> j[] }'
100       index: '{ S_3[i] -> j[] }'
101       reference: __pet_ref_7
102       read: 0
103       write: 1
104     - type: call
105       name: f
106   arguments:
107   - type: access
108     relation: '{ S_3[i] -> __pet_test_0[i] }'
109     index: '{ S_3[i] -> __pet_test_0[(i)] }'
110     reference: __pet_ref_6
111     read: 1
112     write: 0
113 - line: -1
114   domain: '{ S_4[i] : i >= 0 and i <= 99 }'
115   schedule: '{ S_4[i] -> [0, i, 4, 1] }'
116   body:
117     type: op
118     operation: =
119     arguments:
120     - type: access
121       relation: '{ S_4[i] -> __pet_test_1[i] }'
122       index: '{ S_4[i] -> __pet_test_1[(i)] }'
123       reference: __pet_ref_8
124       read: 0
125       write: 1
126     - type: op
127       operation: '?:'
128       arguments:
129       - type: access
130         relation: '{ S_4[i] -> __pet_test_0[i] }'
131         index: '{ S_4[i] -> __pet_test_0[(i)] }'
132         reference: __pet_ref_9
133         read: 1
134         write: 0
135       - type: access
136         relation: '{ S_4[i] -> [1] }'
137         index: '{ S_4[i] -> [(1)] }'
138         reference: __pet_ref_10
139         read: 1
140         write: 0
141       - type: access
142         relation: '{ [S_4[i] -> [0]] -> [0] : i >= 58 or i <= 56; [S_4[57] -> [0]]
143           -> [1] }'
144         index: '{ [S_4[i] -> [__pet_test_0]] -> [((1) : i = 57; (0) : i <= 56 or i
145           >= 58)] }'
146         reference: __pet_ref_12
147         read: 1
148         write: 0
149         arguments:
150         - type: access
151           relation: '{ S_4[i] -> __pet_test_0[i] }'
152           index: '{ S_4[i] -> __pet_test_0[(i)] }'
153           reference: __pet_ref_11
154           read: 1
155           write: 0
156 - line: 16
157   domain: '{ [S_5[i] -> [0]] : i >= 0 and i <= 99 }'
158   schedule: '{ S_5[i] -> [0, i, 5] }'
159   body:
160     type: op
161     operation: =
162     arguments:
163     - type: access
164       relation: '{ S_5[i] -> a[i] }'
165       index: '{ S_5[i] -> a[(i)] }'
166       reference: __pet_ref_14
167       read: 0
168       write: 1
169     - type: op
170       operation: +
171       arguments:
172       - type: access
173         relation: '{ S_5[i] -> a[i] }'
174         index: '{ S_5[i] -> a[(i)] }'
175         reference: __pet_ref_15
176         read: 1
177         write: 0
178       - type: int
179         value: 1
180   arguments:
181   - type: access
182     relation: '{ S_5[i] -> __pet_test_1[i] }'
183     index: '{ S_5[i] -> __pet_test_1[(i)] }'
184     reference: __pet_ref_13
185     read: 1
186     write: 0