scop.c: extract out pet_stmt_is_affine_assume and pet_stmt_assume_get_index
[pet.git] / tests / omega.scop
blob81c67bc53eacd670c230215d0bd46bd845546f26
1 start: 38
2 end: 140
3 indent: "\t"
4 context: '[N] -> {  : N >= 0 and N <= 2147483647 }'
5 arrays:
6 - context: '[N] -> {  : N >= 0 }'
7   extent: '[N] -> { a[i0] : i0 <= -1 + N and i0 >= 0 }'
8   element_type: int
9   element_size: 4
10 statements:
11 - line: 8
12   domain: '[N] -> { S_0[i] : 2i <= -2 + N and 3i >= N }'
13   schedule: '[N] -> { S_0[i] -> [0, i] }'
14   body:
15     type: op
16     operation: =
17     arguments:
18     - type: access
19       relation: '[N] -> { S_0[i] -> a[o0] : exists (e0 = floor((-i + o0)/5): 5e0 =
20         -i + o0 and o0 <= 4 and o0 >= 0) }'
21       index: '[N] -> { S_0[i] -> a[(i - 5*floor((i)/5))] }'
22       reference: __pet_ref_0
23       read: 0
24       write: 1
25     - type: access
26       relation: '[N] -> { S_0[i] -> [i] }'
27       index: '[N] -> { S_0[i] -> [(i)] }'
28       reference: __pet_ref_1
29       read: 1
30       write: 0