]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/clight/testTB_boucle.c
Imported Upstream version 0.2
[pkg-cerco/acc.git] / tests / clight / testTB_boucle.c
1 int t1[5] = {1,2,3,5,8};\r
2 int t2[5] = {13,21,34,55,89};\r
3 \r
4 void TB_Boucle (int tabEntree1[], int tabEntree2[],int tabSortie[], int size) {\r
5         int i;\r
6         for (i = 0; i < size; i++){\r
7                 tabSortie[i] = tabEntree1[i]+tabEntree2[i];\r
8         }\r
9 }\r
10 \r
11 int main(){\r
12         int out[5] = {0,0,0,0,0};\r
13         TB_Boucle(t1,t2,out,5);\r
14         return out[4];\r
15 }\r