expr.c: access_add_ref_id: avoid using access relation
[pet.git] / tests / if1.scop
blob42ec817759c8b51f5696b15d4382516ddcffceaa
1 start: 22
2 end: 73
3 indent: "\t"
4 context: '{  :  }'
5 arrays:
6 - context: '{  :  }'
7   extent: '{ __pet_test_0[] }'
8   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
9   element_type: int
10   element_size: 4
11   uniquely_defined: 1
12 - context: '{  :  }'
13   extent: '{ a[] }'
14   element_type: int
15   element_size: 4
16 statements:
17 - line: 6
18   domain: '{ S_0[] }'
19   schedule: '{ S_0[] -> [0, 0] }'
20   body:
21     type: expression
22     expr:
23       type: op
24       operation: =
25       arguments:
26       - type: access
27         relation: '{ S_0[] -> __pet_test_0[] }'
28         index: '{ S_0[] -> __pet_test_0[] }'
29         reference: __pet_ref_0
30         read: 0
31         write: 1
32       - type: op
33         operation: <<
34         arguments:
35         - type: int
36           value: 1
37         - type: int
38           value: 0
39 - line: 7
40   domain: '{ [S_1[] -> [1]] }'
41   schedule: '{ S_1[] -> [0, 1] }'
42   body:
43     type: expression
44     expr:
45       type: op
46       operation: =
47       arguments:
48       - type: access
49         relation: '{ S_1[] -> a[] }'
50         index: '{ S_1[] -> a[] }'
51         reference: __pet_ref_2
52         read: 0
53         write: 1
54       - type: int
55         value: 1
56   arguments:
57   - type: access
58     relation: '{ S_1[] -> __pet_test_0[] }'
59     index: '{ S_1[] -> __pet_test_0[] }'
60     reference: __pet_ref_1
61     read: 1
62     write: 0