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

info2: fix one-off level

parent c6d0b3a2
No related branches found
No related tags found
No related merge requests found
......@@ -29,16 +29,16 @@ int main(int argc, char *argv[]) {
*/
int i = 0, i_ = 0, j = 0;
auto s = scop->statement;
osl_statement_p current_scop = NULL;
auto print_scop = [&s, &i, &i_, &j]() {
auto print_scop = [&i, &i_, &j, &current_scop]() {
std::cout << "scop" << j << ";";
for(int x = i_; x < i; x++) {
std::cout << " " << x;
}
std::cout << ";" << s->domain->nb_output_dims << "\n";
std::cout << ";" << current_scop->domain->nb_output_dims << "\n";
};
osl_statement_p current_scop = NULL;
while(s) {
if(!current_scop || !osl_relation_equal(current_scop->domain, s->domain)) {
/* new scop */
......
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