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