diff --git a/orio/module/loop/cfg.py b/orio/module/loop/cfg.py index 7add60fe..ebee90e7 100644 --- a/orio/module/loop/cfg.py +++ b/orio/module/loop/cfg.py @@ -112,6 +112,7 @@ def visit(self, nodes, params={}): try: for node in nodes: if not node: continue + v = CFGVertex(node.id, node) if isinstance(node, ast.ForStmt): self.display(node) # Children: header: node.init, node.test, node.iter; body: node.stmt diff --git a/testsuite/SPAPT/lu/lu.src1.c b/testsuite/SPAPT/lu/lu.src1.c index bf038ae5..b9c81647 100644 --- a/testsuite/SPAPT/lu/lu.src1.c +++ b/testsuite/SPAPT/lu/lu.src1.c @@ -34,6 +34,7 @@ + param U1_K[] = [1]; param U1_J[] = range(1,31); param VEC1[] = [False,True]; @@ -77,12 +78,12 @@ int iii, jjj, kkk; /*@ begin Loop ( -for (k=0; k<=N-1; k++) { transform Composite( - unrolljam = (['j'],[U1_J]), + unrolljam = (['k','j'],[U1_K,U1_J]), scalarreplace = (SCR, 'double'), vector = (VEC1, ['ivdep','vector always']) ) + for (k=0; k<=N-1; k++) { for (j=k+1; j<=N-1; j++) A[k][j] = A[k][j]/A[k][k];