Skip to content
Snippets Groups Projects
Commit d0026401 authored by Daniel Maier's avatar Daniel Maier
Browse files

reverse inner loop

parent 697f8fb3
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,10 @@ int main(int argc, char *argv[]) {
fclose(fp);
int i = 0;
for(auto s = scop->statement; s; s = s->next) {
int j = s->domain->nb_output_dims;
while(j > 0) {
std::cout << i << " " << --j << "\n";
for(auto s = scop->statement; s; s = s->next, i++) {
for(int j = 0; j < s->domain->nb_output_dims; j++) {
std::cout << i << " " << j << "\n";
}
i++;
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment