pet_expr_filter: avoid introduction of constraints in index expression
[pet.git] / tests / ternary.scop
blob5e605d19d926bfabc22b0ccc3e41d115960a4c4e
1 start: 47
2 end: 141
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ j[] }'
11   element_type: int
12   element_size: 4
13 statements:
14 - line: 9
15   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
16   schedule: '{ S_0[i] -> [0, i, 0] }'
17   body:
18     type: op
19     operation: =
20     arguments:
21     - type: access
22       relation: '{ S_0[i] -> j[] }'
23       index: '{ S_0[i] -> j[] }'
24       reference: __pet_ref_0
25       read: 0
26       write: 1
27     - type: call
28       name: f
29 - line: 10
30   domain: '{ S_1[i] : i >= 0 and i <= 99 }'
31   schedule: '{ S_1[i] -> [0, i, 1] }'
32   body:
33     type: op
34     operation: =
35     arguments:
36     - type: access
37       relation: '{ S_1[i] -> a[i] }'
38       index: '{ S_1[i] -> a[(i)] }'
39       reference: __pet_ref_1
40       read: 0
41       write: 1
42     - type: op
43       operation: '?:'
44       arguments:
45       - type: access
46         relation: '{ S_1[i] -> j[] }'
47         index: '{ S_1[i] -> j[] }'
48         reference: __pet_ref_2
49         read: 1
50         write: 0
51       - type: int
52         value: 40
53       - type: int
54         value: 90