examples/dependences/example02.c in bones-compiler-1.3.1 vs examples/dependences/example02.c in bones-compiler-1.6.0
- old
+ new
@@ -8,11 +8,11 @@
// Web address........http://parse.ele.tue.nl/bones/
//
// == File information
// Filename...........dependences/example02.c
// Author.............Cedric Nugteren
-// Last modified on...07-May-2013
+// Last modified on...11-October-2014
//
#include <stdio.h>
// This is 'example02', an element -> element example WITH dependences.
@@ -27,12 +27,14 @@
for(i=0;i<N;i++) {
A[i] = i;
}
// Perform the computation
+ #pragma scop
for (i=0; i<N; i++) { // Read-write dependence
A[2*i+6] = A[3*i+1];
}
+ #pragma endscop
// Clean-up and exit the function
fflush(stdout);
return 0;
}