export pet_expr_new_cast
[pet.git] / tests / cast.scop
blob53726de7486466f045feac25b81df6767aed609e
1 start: 37
2 end: 80
3 indent: "\t"
4 context: '[c] -> {  : c <= 127 and c >= -128 }'
5 arrays:
6 - context: '{  :  }'
7   extent: '[c] -> { a[] }'
8   element_type: int
9   element_size: 4
10 statements:
11 - line: 7
12   domain: '[c] -> { S_0[] }'
13   schedule: '{ S_0[] -> [0] }'
14   body:
15     type: expression
16     expr:
17       type: op
18       operation: =
19       arguments:
20       - type: access
21         index: '[c] -> { S_0[] -> a[] }'
22         reference: __pet_ref_0
23         read: 0
24         write: 1
25       - type: cast
26         type_name: int
27         arguments:
28         - type: access
29           index: '[c] -> { S_0[] -> [(c)] }'
30           reference: __pet_ref_1
31           read: 1
32           write: 0