avoid NULL pointer exception in isl_basic_map_n_*
[isl.git] / polyhedron_detect_equalities.c
blob7b069f9c86e35ea0716ea6b81df9e411ca815ea8
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #include "isl_set.h"
12 int main(int argc, char **argv)
14 struct isl_ctx *ctx = isl_ctx_alloc();
15 struct isl_basic_set *bset;
17 bset = isl_basic_set_read_from_file(ctx, stdin, 0);
18 bset = isl_basic_set_detect_equalities(bset);
19 isl_basic_set_print(bset, stdout, 0, "", "", ISL_FORMAT_POLYLIB);
20 isl_basic_set_free(bset);
21 isl_ctx_free(ctx);
23 return 0;