source: Deliverables/D2.3/8051/tests/clight/testTB_boucle.Clight.expected @ 453

Last change on this file since 453 was 453, checked in by ayache, 10 years ago

Import of the Paris's sources.

File size: 6.9 KB
Line 
1int t1[5] = { 1, 2, 3, 5, 8, };
2
3int t2[5] = { 13, 21, 34, 55, 89, };
4
5extern void *__builtin___memcpy_chk(void *, void *, unsigned int, unsigned int);
6
7extern void *__builtin___memmove_chk(void *, void *, unsigned int, unsigned int);
8
9extern void *__builtin___mempcpy_chk(void *, void *, unsigned int, unsigned int);
10
11extern void *__builtin___memset_chk(void *, int, unsigned int, unsigned int);
12
13extern unsigned char *__builtin___stpcpy_chk(unsigned char *, unsigned char *, unsigned int);
14
15extern unsigned char *__builtin___strcat_chk(unsigned char *, unsigned char *, unsigned int);
16
17extern unsigned char *__builtin___strcpy_chk(unsigned char *, unsigned char *, unsigned int);
18
19extern unsigned char *__builtin___strncat_chk(unsigned char *, unsigned char *, unsigned int, unsigned int);
20
21extern unsigned char *__builtin___strncpy_chk(unsigned char *, unsigned char *, unsigned int, unsigned int);
22
23extern int __builtin___vfprintf_chk(void *, int, unsigned char *, void *);
24
25extern int __builtin___vprintf_chk(int, unsigned char *, void *);
26
27extern int __builtin___vsnprintf_chk(unsigned char *, unsigned int, int, unsigned int, unsigned char *, void *);
28
29extern int __builtin___vsprintf_chk(unsigned char *, int, unsigned int, unsigned char *, void *);
30
31extern double __builtin_acos(double);
32
33extern float __builtin_acosf(float);
34
35extern double __builtin_acosl(double);
36
37extern void *__builtin_alloca(unsigned int);
38
39extern double __builtin_asin(double);
40
41extern float __builtin_asinf(float);
42
43extern double __builtin_asinl(double);
44
45extern double __builtin_atan(double);
46
47extern float __builtin_atanf(float);
48
49extern double __builtin_atanl(double);
50
51extern double __builtin_atan2(double, double);
52
53extern float __builtin_atan2f(float, float);
54
55extern double __builtin_atan2l(double, double);
56
57extern double __builtin_ceil(double);
58
59extern float __builtin_ceilf(float);
60
61extern double __builtin_ceill(double);
62
63extern double __builtin_cos(double);
64
65extern float __builtin_cosf(float);
66
67extern double __builtin_cosl(double);
68
69extern double __builtin_cosh(double);
70
71extern float __builtin_coshf(float);
72
73extern double __builtin_coshl(double);
74
75extern int __builtin_clz(unsigned int);
76
77extern int __builtin_clzl(unsigned int);
78
79extern int __builtin_clzll(unsigned int);
80
81extern int __builtin_constant_p(int);
82
83extern int __builtin_ctz(unsigned int);
84
85extern int __builtin_ctzl(unsigned int);
86
87extern int __builtin_ctzll(unsigned int);
88
89extern double __builtin_exp(double);
90
91extern float __builtin_expf(float);
92
93extern double __builtin_expl(double);
94
95extern int __builtin_expect(int, int);
96
97extern double __builtin_fabs(double);
98
99extern float __builtin_fabsf(float);
100
101extern double __builtin_fabsl(double);
102
103extern int __builtin_ffs(unsigned int);
104
105extern int __builtin_ffsl(unsigned int);
106
107extern int __builtin_ffsll(unsigned int);
108
109extern void *__builtin_frame_address(unsigned int);
110
111extern double __builtin_floor(double);
112
113extern float __builtin_floorf(float);
114
115extern double __builtin_floorl(double);
116
117extern double __builtin_huge_val(void);
118
119extern float __builtin_huge_valf(void);
120
121extern double __builtin_huge_vall(void);
122
123extern double __builtin_inf(void);
124
125extern float __builtin_inff(void);
126
127extern double __builtin_infl(void);
128
129extern void *__builtin_memcpy(void *, void *, unsigned int);
130
131extern void *__builtin_mempcpy(void *, void *, unsigned int);
132
133extern double __builtin_fmod(double);
134
135extern float __builtin_fmodf(float);
136
137extern double __builtin_fmodl(double);
138
139extern double __builtin_frexp(double, int *);
140
141extern float __builtin_frexpf(float, int *);
142
143extern double __builtin_frexpl(double, int *);
144
145extern double __builtin_ldexp(double, int);
146
147extern float __builtin_ldexpf(float, int);
148
149extern double __builtin_ldexpl(double, int);
150
151extern double __builtin_log(double);
152
153extern float __builtin_logf(float);
154
155extern double __builtin_logl(double);
156
157extern double __builtin_log10(double);
158
159extern float __builtin_log10f(float);
160
161extern double __builtin_log10l(double);
162
163extern float __builtin_modff(float, float *);
164
165extern double __builtin_modfl(double, double *);
166
167extern double __builtin_nan(unsigned char *);
168
169extern float __builtin_nanf(unsigned char *);
170
171extern double __builtin_nanl(unsigned char *);
172
173extern double __builtin_nans(unsigned char *);
174
175extern float __builtin_nansf(unsigned char *);
176
177extern double __builtin_nansl(unsigned char *);
178
179extern void *__builtin_next_arg(void);
180
181extern unsigned int __builtin_object_size(void *, int);
182
183extern int __builtin_parity(unsigned int);
184
185extern int __builtin_parityl(unsigned int);
186
187extern int __builtin_parityll(unsigned int);
188
189extern int __builtin_popcount(unsigned int);
190
191extern int __builtin_popcountl(unsigned int);
192
193extern int __builtin_popcountll(unsigned int);
194
195extern double __builtin_powi(double, int);
196
197extern float __builtin_powif(float, int);
198
199extern double __builtin_powil(double, int);
200
201extern void __builtin_return(void *);
202
203extern void *__builtin_return_address(unsigned int);
204
205extern double __builtin_sin(double);
206
207extern float __builtin_sinf(float);
208
209extern double __builtin_sinl(double);
210
211extern double __builtin_sinh(double);
212
213extern float __builtin_sinhf(float);
214
215extern double __builtin_sinhl(double);
216
217extern double __builtin_sqrt(double);
218
219extern float __builtin_sqrtf(float);
220
221extern double __builtin_sqrtl(double);
222
223extern unsigned char *__builtin_stpcpy(unsigned char *, unsigned char *);
224
225extern unsigned char *__builtin_strchr(unsigned char *, unsigned char);
226
227extern int __builtin_strcmp(unsigned char *, unsigned char *);
228
229extern unsigned char *__builtin_strcpy(unsigned char *, unsigned char *);
230
231extern unsigned int __builtin_strcspn(unsigned char *, unsigned char *);
232
233extern unsigned char *__builtin_strncat(unsigned char *, unsigned char *, unsigned int);
234
235extern int __builtin_strncmp(unsigned char *, unsigned char *, unsigned int);
236
237extern unsigned char *__builtin_strncpy(unsigned char *, unsigned char *, unsigned int);
238
239extern int __builtin_strspn(unsigned char *, unsigned char *);
240
241extern unsigned char *__builtin_strpbrk(unsigned char *, unsigned char *);
242
243extern int __builtin_types_compatible_p(unsigned int, unsigned int);
244
245extern double __builtin_tan(double);
246
247extern float __builtin_tanf(float);
248
249extern double __builtin_tanl(double);
250
251extern double __builtin_tanh(double);
252
253extern float __builtin_tanhf(float);
254
255extern double __builtin_tanhl(double);
256
257extern void __builtin_va_end(void *);
258
259extern void __builtin_varargs_start(void *);
260
261extern void __builtin_va_start(void *, void *);
262
263extern void __builtin_stdarg_start(void *);
264
265extern void __builtin_va_arg(void *, unsigned int);
266
267extern void __builtin_va_copy(void *, void *);
268
269void TB_Boucle(int *tabEntree1, int *tabEntree2, int *tabSortie, int size)
270{
271  int i;
272  c4:
273  for (({ c3: i = 0; }); (/* c2 */ i < size); ({ c1: i = i + 1; })) {
274    c0:
275    tabSortie[i] = tabEntree1[i] + tabEntree2[i];
276  }
277}
278
279int main(void)
280{
281  int out[5];
282  c11:
283  out[0] = 0;
284  c10:
285  out[1] = 0;
286  c9:
287  out[2] = 0;
288  c8:
289  out[3] = 0;
290  c7:
291  out[4] = 0;
292  c6:
293  TB_Boucle(t1, t2, out, 5);
294  c5:
295  return out[4];
296}
297
298
Note: See TracBrowser for help on using the repository browser.