repo.or.cz
/
converter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modified autogen.sh to remove reference to osl/
[converter.git]
/
tests
/
c_files
/
dummy.c
blob
61f0af87668dfd63707525c6632fde3976002067
1
/* dummy.c for testing purposes */
2
#include <stdio.h>
3
4
int
main
()
5
{
6
int
i
,
j
,
k
;
7
float
a
[
N
][
N
],
b
[
N
][
N
],
c
[
N
][
N
];
8
9
/* We read matrix a */
10
for
(
i
=
0
;
i
<
N
;
i
++)
11
for
(
j
=
0
;
j
<
N
;
j
++)
12
scanf
(
" %f"
,&
a
[
i
][
j
]);
13
14
/* We read matrix b */
15
for
(
i
=
0
;
i
<
N
;
i
++)
16
for
(
j
=
0
;
j
<
N
;
j
++)
17
scanf
(
" %f"
,&
b
[
i
][
j
]);
18
19
/* c = a * b */
20
#pragma scop
21
for
(
i
=
0
;
i
<
N
;
i
++)
22
;
23
#pragma endscop
24
25
/* We print matrix c */
26
for
(
i
=
0
;
i
<
N
;
i
++)
27
{
28
for
(
j
=
0
;
j
<
N
;
j
++)
29
printf
(
"%6.2f "
,
c
[
i
][
j
]);
30
printf
(
"
\n
"
);
31
}
32
33
return
0
;
34
}