scop.c: expr_writes: use pet_expr_is_affine
[pet.git] / tests / min2.scop
blobb88510a3a0a6bc830830a4cf2fa6254d3178c7f2
1 start: 83
2 end: 166
3 context: '[N] -> {  : N <= 1073741823 and N >= 0 }'
4 arrays:
5 - context: '[N] -> {  : N >= 0 }'
6   extent: '[N] -> { a[i0] : i0 <= -1 + N and i0 >= 0 }'
7   element_type: int
8   element_size: 4
9 statements:
10 - line: 10
11   domain: '[N] -> { S_0[i] : (i <= -11 + 2N and i >= 0 and N <= 10) or (N >= 11 and
12     i >= 0 and i <= -1 + N) }'
13   schedule: '[N] -> { S_0[i] -> [0, i] }'
14   body:
15     type: binary
16     operation: =
17     arguments:
18     - type: access
19       relation: '[N] -> { S_0[i] -> a[i] }'
20       reference: __pet_ref_0
21       read: 0
22       write: 1
23     - type: access
24       relation: '[N] -> { S_0[i] -> [i] }'
25       reference: __pet_ref_1
26       read: 1
27       write: 0