export pet_expr_extract_affine
[pet.git] / tests / forward_substitution5.scop
blob8908b858955109d6e3f8407bcda78b744687a524
1 start: 36
2 end: 93
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ N[] }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ a[i0] : i0 >= 0 and i0 <= 9 }'
11   element_type: int
12   element_size: 4
13 - context: '{  :  }'
14   extent: '{ c[] }'
15   element_type: int
16   element_size: 4
17 statements:
18 - line: 5
19   domain: '{ S_0[] }'
20   schedule: '{ S_0[] -> [0] }'
21   body:
22     type: op
23     operation: =
24     arguments:
25     - type: access
26       relation: '{ S_0[] -> c[] }'
27       index: '{ S_0[] -> c[] }'
28       reference: __pet_ref_0
29       read: 0
30       write: 1
31     - type: access
32       relation: '{ S_0[] -> N[] }'
33       index: '{ S_0[] -> N[] }'
34       reference: __pet_ref_1
35       read: 1
36       write: 0
37 - line: 6
38   domain: '{ S_1[] }'
39   schedule: '{ S_1[] -> [1] }'
40   body:
41     type: op
42     operation: +=
43     arguments:
44     - type: access
45       relation: '{ S_1[] -> N[] }'
46       index: '{ S_1[] -> N[] }'
47       reference: __pet_ref_2
48       read: 1
49       write: 1
50     - type: int
51       value: 2
52 - line: 7
53   domain: '{ S_2[] }'
54   schedule: '{ S_2[] -> [2] }'
55   body:
56     type: op
57     operation: =
58     arguments:
59     - type: access
60       relation: '{ [S_2[] -> [i0]] -> a[i0] : i0 >= 0 }'
61       index: '{ [S_2[] -> [i0]] -> a[((i0) : i0 >= 0)] }'
62       reference: __pet_ref_4
63       read: 0
64       write: 1
65       arguments:
66       - type: access
67         relation: '{ S_2[] -> c[] }'
68         index: '{ S_2[] -> c[] }'
69         reference: __pet_ref_3
70         read: 1
71         write: 0
72     - type: int
73       value: 5