PetScan::scan: fix check for scop being proper part of statement
[pet.git] / tests / continue.scop
blob37ea5891b3e726d1ebef081157f7991a6e9f26e4
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 <= 99 and i >= 0 and i <= 99 }'
10   schedule: '{ S_0[i, j] -> [0, i, j, 0] }'
11   body:
12     type: binary
13     operation: =
14     arguments:
15     - type: access
16       relation: '{ S_0[i, j] -> a[i] }'
17       read: 0
18       write: 1
19     - type: access
20       relation: '{ S_0[i, j] -> [0] }'
21       read: 1
22       write: 0
23 - line: 11
24   domain: '{ S_1[i, j] : (j <= 99 and j >= 1 + i and i >= 0) or (j >= 0 and j <= -1
25     + i and i <= 99) }'
26   schedule: '{ S_1[i, j] -> [0, i, j, 2] }'
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