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