<commit_before>/*
 * Project:     libFIRM
 * File name:   ir/common/firm.c
 * Purpose:     Central firm functionality.
 * Author:      <NAME>, <NAME>
 * Modified by: <NAME>
 * Created:
 * CVS-ID:      $Id$
 * Copyright:   (c) 1998-2003 Universitt Karlsruhe
 * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
 */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

# include <stdio.h>
# include "ident_t.h"
# include "firm.h"
# include "mangle.h"
/* init functions are not public */
# include "tv_t.h"
# include "tpop_t.h"
# include "irnode_t.h"
# include "irmode_t.h"
# include "irgraph_t.h"
# include "type_t.h"
# include "firmstat.h"

void
init_firm (default_initialize_local_variable_func_t *func)
{
  /* initialize all ident stuff */
  id_init (1024);
  /* enhanced statistics, need idents */
  stat_init();
  /* create the type kinds. */
  init_tpop ();
  /* create an obstack and put all tarvals in a pdeq */
  init_tarval_1 ();
  /* initialize all modes an ir node can consist of */
  init_mode ();
  /* initialize tarvals, and floating point arithmetic */
  init_tarval_2 ();
  /* init graph construction */
  init_irgraph();<commit_msg>added needed header<commit_after>/*
 * Project:     libFIRM
 * File name:   ir/common/firm.c
 * Purpose:     Central firm functionality.
 * Author:      <NAME>, <NAME>
 * Modified by: <NAME>
 * Created:
 * CVS-ID:      $Id$
 * Copyright:   (c) 1998-2003 Universitt Karlsruhe
 * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
 */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

# include <stdio.h>
# include "ident_t.h"
# include "firm.h"
# include "mangle.h"
/* init functions are not public */
# include "tv_t.h"
# include "tpop_t.h"
# include "irnode_t.h"
# include "irmode_t.h"
# include "irgraph_t.h"
# include "type_t.h"
# include "type_identify.h"
# include "firmstat.h"

void
init_firm (default_initialize_local_variable_func_t *func)
{
  /* initialize all ident stuff */
  id_init (1024);
  /* enhanced statistics, need idents */
  stat_init();
  /* create the type kinds. */
  init_tpop ();
  /* create an obstack and put all tarvals in a pdeq */
  init_tarval_1 ();
  /* initialize all modes an ir node can consist of */
  init_mode ();
  /* initialize tarvals, and floating point arithmetic */
  init_tarval_2 ();
  /* init graph construction */
  init_irgraph();
{'fraction_non_alphanumeric': 0.13175675675675674, 'fraction_numerical': 0.011824324324324325, 'mean_word_length': 3.3627992633517496, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5784074', 'n_tokens_mistral': 862, 'n_tokens_neox': 817, 'n_words': 239}