support modulo operation in statements
[pet.git] / tests / dec4.scop
blob6281c6ddb4cd6def5025fdebc963385292aaf338
1 context: '[N] -> {  : N >= 0 and N <= 2147483647 }'
2 arrays:
3 - context: '[N] -> {  : N >= 0 }'
4   extent: '[N] -> { a[i0] : i0 >= 0 and i0 <= -1 + N }'
5   element_type: int
6 statements:
7 - line: 8
8   domain: '[N] -> { S_0[i] : exists (e0 = [(-2 - N + i)/3]: 3e0 = -2 - N + i and i
9     >= 0 and i <= -1 + N) }'
10   schedule: '[N] -> { S_0[i] -> [0, -i] }'
11   body:
12     type: binary
13     operation: =
14     arguments:
15     - type: access
16       relation: '[N] -> { S_0[i] -> a[i] }'
17       read: 0
18       write: 1
19     - type: access
20       relation: '[N] -> { S_0[i] -> [i] }'
21       read: 1
22       write: 0