periscop / cloog

The CLooG Code Generator in the Polyhedral Model
GNU Lesser General Public License v2.1
40 stars 23 forks source link

Crash on parallel code generation (openscop) #29

Closed ftynse closed 9 years ago

ftynse commented 9 years ago

ClooG crashes when osl_loop extension has directive = 1 (omp), but does not crash if it is changed to other valid values.

<OpenScop>

# =============================================== Global
# Language
C

# Context
CONTEXT
0 3 0 0 0 1

# Parameters are provided
1
<strings>
N
</strings>

# Number of statements
1

# =============================================== Statement 1
# Number of relations describing the statement:
3

# ----------------------------------------------  1.1 Domain
DOMAIN
3 4 1 0 0 1
# e/i|  i |  N |  1  
   1    1    0    0    ## i >= 0
   1   -1    1   -1    ## -i+N-1 >= 0
   1    0    1   -1    ## N-1 >= 0

# ----------------------------------------------  1.2 Scattering
SCATTERING
3 7 3 1 0 1
# e/i| c1   c2   c3 |  i |  N |  1  
   0   -1    0    0    0    0    0    ## c1 == 0
   0    0   -1    0    1    0    0    ## c2 == i
   0    0    0   -1    0    0    0    ## c3 == 0

# ----------------------------------------------  1.3 Access
READ
1 5 1 1 0 1
# e/i| Arr|  i |  N |  1  
   0   -1    0    0    1    ## Arr == i

# ----------------------------------------------  1.4 Statement Extensions
# Number of Statement Extensions
1
<body>
# Number of original iterators
1
# List of original iterators
i
# Statement body expression
S(i);
</body>

# =============================================== Extensions
<scatnames>
b0 i b1
</scatnames>

<arrays>
# Number of arrays
3
# Mapping array-identifiers/array-names
1 i
2 N
3 S
</arrays>

<coordinates>
# File name
ttt.c
# Starting line and column
2 0
# Ending line and column
4 0
# Indentation
0
</coordinates>

<loop>
1
i
1
1
(null)
1
</loop>

</OpenScop>