postpone introduction of access relations
[pet.git] / tests / encapsulate / dynamic_condition.scop
blob60bf753e202d38ada4593852ec78b1c816923883
1 start: 50
2 end: 174
3 indent: '    '
4 context: '{  :  }'
5 arrays:
6 - context: '{  :  }'
7   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
8   element_type: int
9   element_size: 4
10 - context: '{  :  }'
11   extent: '{ j[] }'
12   element_type: int
13   element_size: 4
14 statements:
15 - line: 9
16   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
17   schedule: '{ S_0[i] -> [0, i, 0] }'
18   body:
19     type: expression
20     expr:
21       type: op
22       operation: =
23       arguments:
24       - type: access
25         index: '{ S_0[i] -> j[] }'
26         reference: __pet_ref_0
27         read: 0
28         write: 1
29       - type: call
30         name: f
31 - line: 10
32   domain: '{ S_3[i] : i >= 0 and i <= 99 }'
33   schedule: '{ S_3[i] -> [0, i, 1] }'
34   body:
35     type: if
36     condition:
37       type: op
38       operation: <=
39       arguments:
40       - type: access
41         index: '{ S_3[i] -> j[] }'
42         reference: __pet_ref_1
43         read: 1
44         write: 0
45       - type: int
46         value: 1
47     then:
48       type: block
49       block: 1
50       children:
51       - type: if
52         condition:
53           type: op
54           operation: '>='
55           arguments:
56           - type: access
57             index: '{ S_3[i] -> j[] }'
58             reference: __pet_ref_2
59             read: 1
60             write: 0
61           - type: int
62             value: 0
63         then:
64           type: expression
65           expr:
66             type: op
67             operation: =
68             arguments:
69             - type: access
70               index: '{ S_3[i] -> a[(i)] }'
71               reference: __pet_ref_3
72               read: 0
73               write: 1
74             - type: access
75               index: '{ S_3[i] -> [(i)] }'
76               reference: __pet_ref_4
77               read: 1
78               write: 0