pet_scop_add_array: take into account context of added array
[pet.git] / tests / decl4.scop
blobddec6d417d03c4c837efcb81789e584133fbccb4
1 start: 16
2 end: 107
3 indent: "\t"
4 context: '[n] -> {  : n >= 0 and n <= 2147483647 }'
5 schedule: '{ domain: "[n] -> { S_0[]; S_2[i] : i >= 0 and i <= -1 + n; S_1[i] : i
6   >= 0 and i <= -1 + n }", child: { sequence: [ { filter: "[n] -> { S_0[] }" }, {
7   filter: "[n] -> { S_2[i]; S_1[i] }", child: { schedule: "[n] -> L_0[{ S_2[i] ->
8   [(i)]; S_1[i] -> [(i)] }]", child: { sequence: [ { filter: "[n] -> { S_1[i] }" },
9   { filter: "[n] -> { S_2[i] }" } ] } } } ] } }'
10 arrays:
11 - context: '[n] -> {  : n >= 0 }'
12   extent: '[n] -> { a[i0] : i0 >= 0 and i0 <= -1 + n }'
13   element_type: float
14   element_size: 4
15   declared: 1
16   exposed: 1
17 - context: '[n] -> {  : n >= 0 }'
18   extent: '[n] -> { b[i0] : i0 >= 0 and i0 <= -1 + n }'
19   element_type: float
20   element_size: 4
21   declared: 1
22 statements:
23 - line: 4
24   domain: '[n] -> { S_0[] }'
25   body:
26     type: expression
27     expr:
28       type: op
29       operation: kill
30       arguments:
31       - type: access
32         killed: '[n] -> { S_0[] -> a[o0] : o0 >= 0 and o0 <= -1 + n }'
33         index: '[n] -> { S_0[] -> a[] }'
34         depth: 1
35         reference: __pet_ref_0
36         kill: 1
37 - line: 7
38   domain: '[n] -> { S_1[i] : i >= 0 and i <= -1 + n }'
39   body:
40     type: expression
41     expr:
42       type: op
43       operation: kill
44       arguments:
45       - type: access
46         killed: '[n] -> { S_1[i] -> b[o0] : o0 <= -1 + n and o0 >= 0 }'
47         index: '[n] -> { S_1[i] -> b[] }'
48         depth: 1
49         reference: __pet_ref_1
50         kill: 1
51 - line: 7
52   domain: '[n] -> { S_2[i] : i >= 0 and i <= -1 + n }'
53   body:
54     type: expression
55     expr:
56       type: op
57       operation: kill
58       arguments:
59       - type: access
60         killed: '[n] -> { S_2[i] -> b[o0] : o0 <= -1 + n and o0 >= 0 }'
61         index: '[n] -> { S_2[i] -> b[] }'
62         depth: 1
63         reference: __pet_ref_2
64         kill: 1