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