diff options
author | Nadesh Ramanathan <nadeshramanathan88@gmail.com> | 2020-11-15 11:44:21 +0000 |
---|---|---|
committer | Nadesh Ramanathan <nadeshramanathan88@gmail.com> | 2020-11-15 11:44:21 +0000 |
commit | aba1066919919bf068b723fca3741be6f3a1de97 (patch) | |
tree | 84fe16aa550b7cff31f16ea824bcac552773de02 /benchmarks/polybench-syn/linear-algebra/solvers/durbin.c | |
parent | 95861dbef966e2cb612b303615681fc29c3acd3d (diff) | |
download | vericert-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.c | 9 |
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; } |