PIPS
convex_hull.c
Go to the documentation of this file.
1 /*
2 
3  $Id: convex_hull.c 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 #ifdef HAVE_CONFIG_H
25  #include "pips_config.h"
26 #endif
27 /*
28  * Functions which should/could be in linear...
29  */
30 
31 #include <stdio.h>
32 
33 #include "linear.h"
34 #include "genC.h"
35 #include "misc.h"
36 #include "ri.h"
37 #include "ri-util.h"
38 
39 /* debug messages before calling the version in polyedre.
40  */
42 {
43  Psysteme s;
44 
45  ifdebug(9) {
46  pips_debug(9, "IN\nS1 and S2:\n");
49  }
50 
51  s = sc_cute_convex_hull(s1, s2);
52 
53  ifdebug(9) {
54  pips_debug(9, "S =\n");
56  pips_debug(9, "OUT\n");
57  }
58 
59  return s;
60 }
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
Definition: misc-local.h:145
Psysteme sc_cute_convex_hull(Psysteme, Psysteme)
returns s1 v s2.
Definition: sc_enveloppe.c:369
Psysteme cute_convex_union(Psysteme s1, Psysteme s2)
debug messages before calling the version in polyedre.
Definition: convex_hull.c:41
const char * entity_local_name(entity e)
entity_local_name modified so that it does not core when used in vect_fprint, since someone thought t...
Definition: entity.c:453
void sc_fprint(FILE *fp, Psysteme ps, get_variable_name_t nom_var)
void sc_fprint(FILE * f, Psysteme ps, char * (*nom_var)()): cette fonction imprime dans le fichier po...
Definition: sc_io.c:220
s1
Definition: set.c:247
#define ifdebug(n)
Definition: sg.c:47
char *(* get_variable_name_t)(Variable)
Definition: vecteur-local.h:62