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