pet_expr_filter: avoid introduction of constraints in index expression
[pet.git] / tests / dynamic_condition.scop
blob7d40222eff999aaac6e163cfb230abadccd93874
1 start: 50
2 end: 174
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ j[] }'
11   element_type: int
12   element_size: 4
13 statements:
14 - line: 9
15   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
16   schedule: '{ S_0[i] -> [0, i, 0] }'
17   body:
18     type: op
19     operation: =
20     arguments:
21     - type: access
22       relation: '{ S_0[i] -> j[] }'
23       index: '{ S_0[i] -> j[] }'
24       reference: __pet_ref_0
25       read: 0
26       write: 1
27     - type: call
28       name: f
29 - line: 12
30   domain: '{ [S_1[i] -> [j]] : i >= 0 and i <= 99 and j >= 0 and j <= 1 }'
31   schedule: '{ S_1[i] -> [0, i, 1, 0] }'
32   body:
33     type: op
34     operation: =
35     arguments:
36     - type: access
37       relation: '{ S_1[i] -> a[i] }'
38       index: '{ S_1[i] -> a[(i)] }'
39       reference: __pet_ref_2
40       read: 0
41       write: 1
42     - type: access
43       relation: '{ S_1[i] -> [i] }'
44       index: '{ S_1[i] -> [(i)] }'
45       reference: __pet_ref_3
46       read: 1
47       write: 0
48   arguments:
49   - type: access
50     relation: '{ S_1[i] -> j[] }'
51     index: '{ S_1[i] -> j[] }'
52     reference: __pet_ref_1
53     read: 1
54     write: 0