aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/linear-algebra/solvers/durbin.c
diff options
context:
space:
mode:
authorNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-11-15 11:44:21 +0000
committerNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-11-15 11:44:21 +0000
commitaba1066919919bf068b723fca3741be6f3a1de97 (patch)
tree84fe16aa550b7cff31f16ea824bcac552773de02 /benchmarks/polybench-syn/linear-algebra/solvers/durbin.c
parent95861dbef966e2cb612b303615681fc29c3acd3d (diff)
downloadvericert-kvx-aba1066919919bf068b723fca3741be6f3a1de97.tar.gz
vericert-kvx-aba1066919919bf068b723fca3741be6f3a1de97.zip
some fixes
Diffstat (limited to 'benchmarks/polybench-syn/linear-algebra/solvers/durbin.c')
-rw-r--r--benchmarks/polybench-syn/linear-algebra/solvers/durbin.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/benchmarks/polybench-syn/linear-algebra/solvers/durbin.c b/benchmarks/polybench-syn/linear-algebra/solvers/durbin.c
index dd6d05e..4b1a87f 100644
--- a/benchmarks/polybench-syn/linear-algebra/solvers/durbin.c
+++ b/benchmarks/polybench-syn/linear-algebra/solvers/durbin.c
@@ -9,6 +9,9 @@
*/
/* durbin.c: this file is part of PolyBench/C */
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
unsigned int divider(unsigned int x, unsigned int y)
{
@@ -76,9 +79,13 @@ int print_array(int n,
int res = 0;
for (i = 0; i < n; plus(i)) {
- res += y[i];
+ res ^= y[i];
}
+#ifndef SYNTHESIS
+ printf("finished: %u\n", res);
+#endif
+
return res;
}