PIPS
print_code_as_a_graph.c
Go to the documentation of this file.
1 /*
2 
3  $Id: print_code_as_a_graph.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 /* Define all the entry points to generate the various graph
28  sequential view to be viewed later with a graph viewer such as
29  daVinci.
30 
31  Ronan.Keryell@cri.ensmp.fr, 5/09/1995. */
32 
33 #include <stdlib.h>
34 #include <stdio.h>
35 #include <string.h>
36 
37 #include "genC.h"
38 #include "linear.h"
39 
40 #include "misc.h"
41 #include "properties.h"
42 
43 #include "ri-util.h"
44 
45 #include "prettyprint.h"
46 
47 bool print_code_as_a_graph(const string mod_name)
48 {
49  bool success;
50 
51  set_bool_property("PRETTYPRINT_UNSTRUCTURED_AS_A_GRAPH", true);
52  success = print_code(mod_name);
53  set_bool_property("PRETTYPRINT_UNSTRUCTURED_AS_A_GRAPH", false);
54 
55  return success;
56 }
bool success
Definition: gpips-local.h:59
bool print_code(const string)
Definition: print.c:272
bool print_code_as_a_graph(const string mod_name)
Define all the entry points to generate the various graph sequential view to be viewed later with a g...
void set_bool_property(const char *, bool)