take into account that unsigned iterators may wrap
[pet.git] / tests / mod.scop
blobc5aa41a89f77320b8453d6596b6c80bfc4d3e843
1 context: '[N] -> { [] : N >= 0 }'
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: 9
8   domain: '[N] -> { S_0[i] : exists (e0 = [(i)/2]: 2e0 = i and i <= -1 + N and i >=
9     0) }'
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