scop.c: expr_embed: use pet_expr_foreach_access_expr
[pet.git] / tests / break2.scop
blobc496cfdff22f38de38f9c3af52a4ccafe00c05e1
1 context: '{  :  }'
2 arrays:
3 - context: '{  :  }'
4   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
5   element_type: int
6   element_size: 4
7 statements:
8 - line: 8
9   domain: '{ S_0[i, j] : (j >= 0 and j <= i and i <= 99) or (j <= 99 and j >= 1 +
10     i and i >= 0 and i <= 9) }'
11   schedule: '{ S_0[i, j] -> [0, i, j, 0] }'
12   body:
13     type: binary
14     operation: =
15     arguments:
16     - type: access
17       relation: '{ S_0[i, j] -> a[i] }'
18       read: 0
19       write: 1
20     - type: access
21       relation: '{ S_0[i, j] -> [0] }'
22       read: 1
23       write: 0
24 - line: 13
25   domain: '{ S_1[i, j] : j >= 0 and i >= 10 and j <= -1 + i and i <= 99 }'
26   schedule: '{ S_1[i, j] -> [0, i, j, 3] }'
27   body:
28     type: binary
29     operation: =
30     arguments:
31     - type: access
32       relation: '{ S_1[i, j] -> a[i] }'
33       read: 0
34       write: 1
35     - type: binary
36       operation: +
37       arguments:
38       - type: access
39         relation: '{ S_1[i, j] -> [i] }'
40         read: 1
41         write: 0
42       - type: access
43         relation: '{ S_1[i, j] -> [j] }'
44         read: 1
45         write: 0