projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix isl_union_{set,map}_lex_g{e,t}_union_map
[platform/upstream/isl.git]
/
polytope_scan.c
diff --git
a/polytope_scan.c
b/polytope_scan.c
index
41983aa
..
269bd81
100644
(file)
--- a/
polytope_scan.c
+++ b/
polytope_scan.c
@@
-11,6
+11,7
@@
#include "isl_equalities.h"
#include "isl_seq.h"
#include "isl_scan.h"
#include "isl_equalities.h"
#include "isl_seq.h"
#include "isl_scan.h"
+#include <isl_mat_private.h>
/* The input of this program is the same as that of the "polytope_scan"
* program from the barvinok distribution.
/* The input of this program is the same as that of the "polytope_scan"
* program from the barvinok distribution.
@@
-72,6
+73,9
@@
static struct isl_mat *isl_basic_set_samples(struct isl_basic_set *bset)
struct isl_mat *T;
struct isl_mat *samples;
struct isl_mat *T;
struct isl_mat *samples;
+ if (!bset)
+ return NULL;
+
if (bset->n_eq == 0)
return isl_basic_set_scan_samples(bset);
if (bset->n_eq == 0)
return isl_basic_set_scan_samples(bset);