Polly 20.0.0git
polyhedron_remove_redundant_equalities.c
Go to the documentation of this file.
1/*
2 * Copyright 2016 Sven Verdoolaege
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege.
7 */
8
9/* This program takes a (possibly parametric) polyhedron as input and
10 * prints print a full-dimensional polyhedron with the same number
11 * of integer points.
12 */
13
14#include <isl/options.h>
15#include <isl/printer.h>
16#include <isl/set.h>
17
18#include "isl_morph.h"
19
20int main(int argc, char **argv)
21{
22 isl_ctx *ctx;
24 isl_basic_set *bset;
25 isl_morph *morph;
26 struct isl_options *options;
27
28 options = isl_options_new_with_defaults();
29 argc = isl_options_parse(options, argc, argv, ISL_ARG_ALL);
30 ctx = isl_ctx_alloc_with_options(&isl_options_args, options);
31
32 bset = isl_basic_set_read_from_file(ctx, stdin);
33
35 bset = isl_morph_basic_set(morph, bset);
36
37 p = isl_printer_to_file(ctx, stdout);
41
43 isl_ctx_free(ctx);
44 return 0;
45}
#define ISL_ARG_ALL
Definition: arg.h:288
isl_ctx * isl_ctx_alloc_with_options(struct isl_args *args, __isl_take void *opt)
void isl_ctx_free(isl_ctx *ctx)
Definition: isl_ctx.c:288
__isl_give isl_morph * isl_basic_set_variable_compression(__isl_keep isl_basic_set *bset, enum isl_dim_type type)
Definition: isl_morph.c:472
__isl_give isl_basic_set * isl_morph_basic_set(__isl_take isl_morph *morph, __isl_take isl_basic_set *bset)
Definition: isl_morph.c:641
const char * p
Definition: isl_test.c:8643
struct isl_basic_set isl_basic_set
Definition: map_type.h:20
__isl_null isl_printer * isl_printer_free(__isl_take isl_printer *printer)
Definition: isl_printer.c:269
__isl_give isl_printer * isl_printer_to_file(isl_ctx *ctx, FILE *file)
Definition: isl_printer.c:217
__isl_give isl_printer * isl_printer_end_line(__isl_take isl_printer *p)
Definition: isl_printer.c:667
__isl_give isl_basic_set * isl_basic_set_read_from_file(isl_ctx *ctx, FILE *input)
Definition: isl_input.c:3296
__isl_null isl_basic_set * isl_basic_set_free(__isl_take isl_basic_set *bset)
Definition: isl_map.c:1523
__isl_give isl_printer * isl_printer_print_basic_set(__isl_take isl_printer *printer, __isl_keep isl_basic_set *bset)
Definition: isl_output.c:1550
@ isl_dim_set
Definition: space_type.h:18