PIPS
prettyprint.c File Reference
#include <stdio.h>
#include <string.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "workspace-util.h"
#include "constants.h"
#include "misc.h"
#include "transformer.h"
+ Include dependency graph for prettyprint.c:

Go to the source code of this file.

Functions

string transformer_to_string (transformer tf)
 prettyprint.c More...
 
string precondition_to_string (transformer pre)
 
string arguments_to_string (string s, list args)
 
string relation_to_string (string s, Psysteme ps, char *(*variable_name)(entity))
 
const char * generic_value_name (entity e)
 

Function Documentation

◆ arguments_to_string()

string arguments_to_string ( string  s,
list  args 
)
Parameters
argsrgs

Definition at line 65 of file prettyprint.c.

66 {
67  pips_internal_error("not implemenented anymore, s=\"%s\", args=%p", s, args);
68  return string_undefined;
69 }
#define pips_internal_error
Definition: misc-local.h:149
#define string_undefined
Definition: newgen_types.h:40

References pips_internal_error, and string_undefined.

◆ generic_value_name()

const char* generic_value_name ( entity  e)

else if (entity_has_values_p(e)){

n = external_value_name(e);

Definition at line 81 of file prettyprint.c.

82 {
83  const char* n = string_undefined;
84 
85  if(e == (entity) TCST) {
86  n = "";
87  }
88  else {
89  (void) gen_check((gen_chunk *) e, entity_domain);
91  n = entity_minimal_name(e);
92  }
93  /* else if (entity_has_values_p(e)){ */
95  && value_entity_p(e)){
96  /* n = external_value_name(e); */
97  n = pips_user_value_name(e);
98  }
99  else {
100  n = entity_minimal_name(e);
101  }
102  }
103  return n;
104 }
gen_chunk * gen_check(gen_chunk *obj, int t)
GEN_CHECK checks that the gen_chunk received OBJ is of the appropriate TYPE.
Definition: genClib.c:2356
const char * entity_minimal_name(entity e)
Do preserve scope informations.
Definition: naming.c:214
#define entity_domain
newgen_syntax_domain_defined
Definition: ri.h:410
bool value_entity_p(entity)
Definition: value.c:976
const char * pips_user_value_name(entity)
This function is called many times when the constraints and the system of constraints are sorted usin...
Definition: value.c:815
bool local_temporary_value_entity_p(entity)
Definition: value.c:654
bool hash_value_to_name_undefined_p(void)
Definition: value.c:1199
A gen_chunk is used to store every object.
Definition: genC.h:58
#define TCST
VARIABLE REPRESENTANT LE TERME CONSTANT.

References entity_domain, entity_minimal_name(), gen_check(), hash_value_to_name_undefined_p(), local_temporary_value_entity_p(), pips_user_value_name(), string_undefined, TCST, and value_entity_p().

Referenced by varval_value_name_is_inferior_p().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ precondition_to_string()

string precondition_to_string ( transformer  pre)
Parameters
prere

Definition at line 58 of file prettyprint.c.

60 {
61  pips_internal_error("not implemenented anymore, pre=%p", pre);
62  return string_undefined;
63 }

References pips_internal_error, and string_undefined.

Referenced by comp_regions_of_implied_do(), and evaluate_var_to_complexity().

+ Here is the caller graph for this function:

◆ relation_to_string()

string relation_to_string ( string  s,
Psysteme  ps,
char *(*)(entity variable_name 
)

Definition at line 72 of file prettyprint.c.

76 {
77  pips_internal_error("not implemenented anymore, s=\"%s\", ps=%p, variable_name=%p", s, ps, variable_name);
78  return string_undefined;
79 }
char * variable_name(Variable v)
polynome_ri.c
Definition: polynome_ri.c:73

References pips_internal_error, string_undefined, and variable_name().

+ Here is the call graph for this function:

◆ transformer_to_string()

string transformer_to_string ( transformer  tf)

prettyprint.c

Parameters
tff

Definition at line 52 of file prettyprint.c.

53 {
54  pips_internal_error("not implemenented anymore, tf=%p", tf);
55  return string_undefined;
56 }

References pips_internal_error, and string_undefined.