Run isl_basic_map_finalize after isl_{basic_,}map_eliminate
[platform/upstream/isl.git] / polyhedron_detect_equalities.c
1 /*
2  * Copyright 2008-2009 Katholieke Universiteit Leuven
3  *
4  * Use of this software is governed by the GNU LGPLv2.1 license
5  *
6  * Written by Sven Verdoolaege, K.U.Leuven, Departement
7  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8  */
9
10 #include <isl/set.h>
11
12 int main(int argc, char **argv)
13 {
14         struct isl_ctx *ctx = isl_ctx_alloc();
15         struct isl_basic_set *bset;
16
17         bset = isl_basic_set_read_from_file(ctx, stdin);
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);
22
23         return 0;
24 }