/*

  $Id$

  Copyright 1989-2016 MINES ParisTech

  This file is part of PIPS.

  PIPS is free software: you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  any later version.

  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.

  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with PIPS.  If not, see <http://www.gnu.org/licenses/>.

*/
#ifdef HAVE_CONFIG_H
    #include "pips_config.h"
#endif

/* functions to print a interprocedural control flow graph
 *
 * They should be called by pipsmake
 *
 * Lei Zhou, February 91
 */
#include <stdio.h>
#include <string.h>

#include "genC.h"
#include "linear.h"

#include "ri.h"
#include "text.h"

#include "icfg.h"

bool print_icfg(const string module_name)
{
  return generic_print_icfg(module_name, false, false, false, NULL);
}

bool print_icfg_with_loops(const string module_name)
{
  return generic_print_icfg(module_name, false, true, false, NULL);
}

bool print_icfg_with_control(const string module_name)
{
  return generic_print_icfg(module_name, true, true, false, NULL);
}
