keep track of indentation of extracted code
[pet.git] / tests / struct8.scop
blob23ade7deecd5d286972b7fe561b4b2335a468079
1 start: 101
2 end: 225
3 indent: "\t"
4 context: '{  :  }'
5 types:
6 - name: s
7   definition: "struct s {\n    struct {\n        struct {\n            int a[10];\n
8     \       } f[10];\n        int b;\n    };\n}"
9 arrays:
10 - context: '{  :  }'
11   extent: '{ s[] }'
12   element_type: struct s
13   element_size: 404
14   element_is_record: 1
15 - context: '{  :  }'
16   extent: '{ s_b[s[] -> b[]] }'
17   element_type: int
18   element_size: 4
19 - context: '{  :  }'
20   extent: '{ s_f[s[] -> f[i0]] : i0 >= 0 and i0 <= 9 }'
21   element_type: <subfield>
22   element_size: 40
23   element_is_record: 1
24 - context: '{  :  }'
25   extent: '{ s_f_a[s_f[s[] -> f[i0]] -> a[i1]] : i0 >= 0 and i0 <= 9 and i1 >= 0 and
26     i1 <= 9 }'
27   element_type: int
28   element_size: 4
29 statements:
30 - line: 17
31   domain: '{ S_0[i, j] : i >= 0 and i <= 9 and j <= 9 and j >= 0 }'
32   schedule: '{ S_0[i, j] -> [0, i, j] }'
33   body:
34     type: op
35     operation: =
36     arguments:
37     - type: access
38       relation: '{ S_0[i, j] -> s_f_a[s_f[s[] -> f[i]] -> a[j]] }'
39       index: '{ S_0[i, j] -> s_f_a[s_f[s[] -> f[(i)]] -> a[(j)]] }'
40       reference: __pet_ref_0
41       read: 0
42       write: 1
43     - type: op
44       operation: '*'
45       arguments:
46       - type: access
47         relation: '{ S_0[i, j] -> [i] }'
48         index: '{ S_0[i, j] -> [(i)] }'
49         reference: __pet_ref_1
50         read: 1
51         write: 0
52       - type: access
53         relation: '{ S_0[i, j] -> [j] }'
54         index: '{ S_0[i, j] -> [(j)] }'
55         reference: __pet_ref_2
56         read: 1
57         write: 0
58 - line: 18
59   domain: '{ S_1[] }'
60   schedule: '{ S_1[] -> [1] }'
61   body:
62     type: op
63     operation: =
64     arguments:
65     - type: access
66       relation: '{ S_1[] -> s_b[s[] -> b[]] }'
67       index: '{ S_1[] -> s_b[s[] -> b[]] }'
68       reference: __pet_ref_3
69       read: 0
70       write: 1
71     - type: int
72       value: 1