use an isl_multi_pw_aff to represent a skip condition
[pet.git] / tests / ternary.scop
blob0e22cd179fe605cba692119d60f51e3af862cb02
1 start: 47
2 end: 141
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ j[] }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
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: binary
19     operation: =
20     arguments:
21     - type: access
22       relation: '{ S_0[i] -> j[] }'
23       reference: __pet_ref_0
24       read: 0
25       write: 1
26     - type: call
27       name: f
28 - line: 10
29   domain: '{ S_1[i] : i >= 0 and i <= 99 }'
30   schedule: '{ S_1[i] -> [0, i, 1] }'
31   body:
32     type: binary
33     operation: =
34     arguments:
35     - type: access
36       relation: '{ S_1[i] -> a[i] }'
37       reference: __pet_ref_1
38       read: 0
39       write: 1
40     - type: ternary
41       arguments:
42       - type: access
43         relation: '{ S_1[i] -> j[] }'
44         reference: __pet_ref_2
45         read: 1
46         write: 0
47       - type: access
48         relation: '{ S_1[i] -> [40] }'
49         reference: __pet_ref_3
50         read: 1
51         write: 0
52       - type: access
53         relation: '{ S_1[i] -> [90] }'
54         reference: __pet_ref_4
55         read: 1
56         write: 0