export pet_expr_new_cast
[pet.git] / tests / ternary.scop
blob8583e527d21fcd75952f07d08bd4ae632be882cf
1 start: 47
2 end: 141
3 indent: "\t"
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: 10
32   domain: '{ S_1[i] : i >= 0 and i <= 99 }'
33   schedule: '{ S_1[i] -> [0, i, 1] }'
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_1
43         read: 0
44         write: 1
45       - type: op
46         operation: '?:'
47         arguments:
48         - type: access
49           index: '{ S_1[i] -> j[] }'
50           reference: __pet_ref_2
51           read: 1
52           write: 0
53         - type: int
54           value: 40
55         - type: int
56           value: 90