PetScan::extract_scop: clear writes at outer level
[pet.git] / tests / break2.scop
blob6c7923452762d03ac5358f02d62bb90a78a0d466
1 start: 33
2 end: 208
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
7   element_type: int
8   element_size: 4
9 statements:
10 - line: 8
11   domain: '{ S_0[i, j] : (i >= 0 and i <= 99 and j >= 0 and j <= 99 and j <= i) or
12     (i >= 0 and i <= 9 and j >= 0 and j <= 99 and j >= 1 + i) }'
13   schedule: '{ S_0[i, j] -> [0, i, j, 0] }'
14   body:
15     type: op
16     operation: =
17     arguments:
18     - type: access
19       relation: '{ S_0[i, j] -> a[i] }'
20       index: '{ S_0[i, j] -> a[(i)] }'
21       reference: __pet_ref_0
22       read: 0
23       write: 1
24     - type: int
25       value: 0
26 - line: 13
27   domain: '{ S_1[i, j] : i >= 10 and i <= 99 and j >= 0 and j <= 99 and j <= -1 +
28     i }'
29   schedule: '{ S_1[i, j] -> [0, i, j, 3] }'
30   body:
31     type: op
32     operation: =
33     arguments:
34     - type: access
35       relation: '{ S_1[i, j] -> a[i] }'
36       index: '{ S_1[i, j] -> a[(i)] }'
37       reference: __pet_ref_1
38       read: 0
39       write: 1
40     - type: op
41       operation: +
42       arguments:
43       - type: access
44         relation: '{ S_1[i, j] -> [i] }'
45         index: '{ S_1[i, j] -> [(i)] }'
46         reference: __pet_ref_2
47         read: 1
48         write: 0
49       - type: access
50         relation: '{ S_1[i, j] -> [j] }'
51         index: '{ S_1[i, j] -> [(j)] }'
52         reference: __pet_ref_3
53         read: 1
54         write: 0