export pet_expr_new_cast
[pet.git] / tests / for_while_inc.scop
blob1e1df34ff443833c1b8a15e09143ef2fe9180189
1 start: 83
2 end: 234
3 indent: "\t"
4 context: '[n] -> {  : n <= 2147483647 and n >= -2147483648 }'
5 arrays:
6 - context: '{  :  }'
7   extent: '[n] -> { __pet_test_0[x1, x2] : exists (e0 = floor((-1 + x2)/2): 2e0 =
8     -1 + x2 and x1 <= -1 + n and x1 >= 0 and x2 >= 9) }'
9   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
10   element_type: int
11   element_size: 4
12   uniquely_defined: 1
13 - context: '{  :  }'
14   extent: '[n] -> { s[] }'
15   element_type: int
16   element_size: 4
17 statements:
18 - line: 12
19   domain: '[n] -> { S1[x1] : x1 <= -1 + n and x1 >= 0 }'
20   schedule: '[n] -> { S1[x1] -> [0, x1, 0] }'
21   body:
22     type: expression
23     expr:
24       type: op
25       operation: =
26       arguments:
27       - type: access
28         index: '[n] -> { S1[x1] -> s[] }'
29         reference: __pet_ref_0
30         read: 0
31         write: 1
32       - type: call
33         name: f
34 - line: 13
35   domain: '[n] -> { [S_1[x1, x2] -> [1]] : exists (e0 = floor((-1 + x2)/2): 2e0 =
36     -1 + x2 and x1 <= -1 + n and x1 >= 0 and x2 >= 9) }'
37   schedule: '[n] -> { S_1[x1, x2] -> [0, x1, 1, x2, 0] }'
38   body:
39     type: expression
40     expr:
41       type: op
42       operation: =
43       arguments:
44       - type: access
45         index: '[n] -> { S_1[x1, x2] -> __pet_test_0[(x1), (x2)] }'
46         reference: __pet_ref_2
47         read: 0
48         write: 1
49       - type: call
50         name: P
51         arguments:
52         - type: access
53           index: '[n] -> { S_1[x1, x2] -> [(x1)] }'
54           reference: __pet_ref_3
55           read: 1
56           write: 0
57         - type: access
58           index: '[n] -> { S_1[x1, x2] -> [(x2)] }'
59           reference: __pet_ref_4
60           read: 1
61           write: 0
62   arguments:
63   - type: access
64     index: '[n] -> { S_1[x1, x2] -> __pet_test_0[(x1), ((-2 + x2) : x2 >= 11)] }'
65     reference: __pet_ref_1
66     read: 1
67     write: 0
68 - line: 14
69   domain: '[n] -> { [S2[x1, x2] -> [1]] : exists (e0 = floor((-1 + x2)/2): 2e0 = -1
70     + x2 and x1 <= -1 + n and x1 >= 0 and x2 >= 9) }'
71   schedule: '[n] -> { S2[x1, x2] -> [0, x1, 1, x2, 1, 0] }'
72   body:
73     type: expression
74     expr:
75       type: op
76       operation: =
77       arguments:
78       - type: access
79         index: '[n] -> { S2[x1, x2] -> s[] }'
80         reference: __pet_ref_6
81         read: 0
82         write: 1
83       - type: call
84         name: g
85         arguments:
86         - type: access
87           index: '[n] -> { S2[x1, x2] -> s[] }'
88           reference: __pet_ref_7
89           read: 1
90           write: 0
91   arguments:
92   - type: access
93     index: '[n] -> { S2[x1, x2] -> __pet_test_0[(x1), (x2)] }'
94     reference: __pet_ref_5
95     read: 1
96     write: 0
97 - line: 16
98   domain: '[n] -> { R[x1] : x1 <= -1 + n and x1 >= 0 }'
99   schedule: '[n] -> { R[x1] -> [0, x1, 2] }'
100   body:
101     type: expression
102     expr:
103       type: call
104       name: h
105       arguments:
106       - type: access
107         index: '[n] -> { R[x1] -> s[] }'
108         reference: __pet_ref_8
109         read: 1
110         write: 0
111 implications:
112 - satisfied: 1
113   extension: '[n] -> { __pet_test_0[x1, x2] -> __pet_test_0[x1, x2''] : exists (e0
114     = floor((-1 + x2'')/2): 2e0 = -1 + x2'' and x2'' <= x2 and x1 >= 0 and x1 <= -1
115     + n and x2'' >= 9) }'