PetScan::extract_for: explicitly keep track of when iterator is virtual
[pet.git] / tests / mod.scop
blob65e6f1ec2599200727d51afb314ccf06b942eea7
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: 9
8   domain: '[N] -> { S_0[i] : exists (e0 = [(i)/2]: 2e0 = i and i >= 0 and i <= -1
9     + 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