PIPS
entity.c
Go to the documentation of this file.
1 /*
2 
3  $Id: entity.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 closely related to the prettyprint of entity class
29  */
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <ctype.h>
34 
35 #include "linear.h"
36 
37 #include "genC.h"
38 #include "misc.h"
39 #include "properties.h"
40 #include "ri-util.h"
41 
42 #include "prettyprint.h"
43 
44 static void print_dimension(dimension d)
45 {
46  fprintf(stderr,"dimension :\n");
49 }
50 
51 /* print_entity_variable(e)
52  *
53  * if it is just a variable, the type is printed,
54  * otherwise just the entity name is printed
55  */
57 {
58  variable v;
59 
60  (void) fprintf(stderr,"name: %s\n",entity_name(e));
61 
63  return;
64 
65  v = type_variable(entity_type(e));
66 
67  fprintf(stderr,"basic %s\n",basic_to_string(variable_basic(v)));
69 }
void gen_map(gen_iter_func_t fp, const list l)
Definition: list.c:172
void(* gen_iter_func_t)(void *)
Definition: newgen_types.h:116
static void print_dimension(dimension d)
Functions closely related to the prettyprint of entity class.
Definition: entity.c:44
void print_entity_variable(entity e)
print_entity_variable(e)
Definition: entity.c:56
void print_expression(expression e)
no file descriptor is passed to make is easier to use in a debugging stage.
Definition: expression.c:58
string basic_to_string(basic)
Definition: type.c:87
#define dimension_lower(x)
Definition: ri.h:980
#define type_variable(x)
Definition: ri.h:2949
#define entity_name(x)
Definition: ri.h:2790
#define dimension_upper(x)
Definition: ri.h:982
#define variable_dimensions(x)
Definition: ri.h:3122
#define entity_type(x)
Definition: ri.h:2792
#define type_variable_p(x)
Definition: ri.h:2947
#define variable_basic(x)
Definition: ri.h:3120
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...