If an iteration variable is declared before the loop (c89 requires this to compile), the CLooG-generated code with its declaration inserted into the original code results in compilation error of variable redefinition.
int main() {
int i;
#pragma scop
/* Scattering iterators. */
int i;
for (i=0;i<=41;i++) {
S1(i);
}
#pragma endscop
return 0;
}
If an iteration variable is declared before the loop (c89 requires this to compile), the CLooG-generated code with its declaration inserted into the original code results in compilation error of variable redefinition.