avoid overflows on signed integers
[pet.git] / tests / shortcut2.scop
blob5e5ac73cd566482b20e30ce7bb351cb4edb97eae
1 context: '[N] -> {  : N <= 429496729 and N >= -429496729 }'
2 arrays:
3 - context: '{  :  }'
4   extent: '[N] -> { a[] }'
5   element_type: int
6   element_size: 4
7 statements:
8 - line: 6
9   domain: '[N] -> { S_0[] : N >= 1 and N <= 99 }'
10   schedule: '{ S_0[] -> [0] }'
11   body:
12     type: binary
13     operation: =
14     arguments:
15     - type: access
16       relation: '[N] -> { S_0[] -> a[] }'
17       read: 0
18       write: 1
19     - type: access
20       relation: '[N] -> { S_0[] -> [1] }'
21       read: 1
22       write: 0