25 #include "pips_config.h"
54 #define REGION_BUFFER_SIZE 2048
56 #define REGION_FORESYS_PREFIX "C$REG"
57 #define PIPS_NORMAL_PREFIX "C"
128 string summary_resource_name,
135 (
"PRETTYPRINT_UNSTRUCTURED_AS_A_GRAPH") ?
139 DBR_GRAPH_PRINTED_FILE :
146 summary_resource_name,
156 string summary_resource_name,
159 list summary_comp_regions;
164 debug_on(
"COMP_REGIONS_DEBUG_LEVEL");
174 summary_comp_regions =
176 (summary_resource_name,
315 if (loose_p && one_p)
392 user_log(
"[region_to_string] unexpected effect undefined\n");
427 sprintf(
buffer,
"\nReference Template :: \n[ ");
428 for (i=0; i < Rank; i++) {
void user_log(const char *format,...)
sentence make_sentence(enum sentence_utype tag, void *val)
struct _newgen_struct_statement_ * statement
#define SEQUENTIAL_COMPSEC_SUFFIX
static text text_array_comp_regions(list)
}}
bool print_code_comp_regions(char *module_name) const
bool print_code_comp_regions(const char* module_name) input : the name of the current module modifies...
#define REGION_FORESYS_PREFIX
bool print_source_comp_regions(char *module_name) const
bool print_source_regions(const char* module_name) input : the name of the current module modifies : ...
text text_comp_regions(list l_reg)
}}
static text get_any_comp_regions_text(const char *, string, string, bool)
{{ get any comp_regions text
#define REGION_BUFFER_SIZE
print complementary sections
static bool is_user_view_p
static text text_statement_array_comp_regions(entity, int, statement)
static bool print_code_with_comp_regions(const char *, string, string, string)
bool print_code_with_comp_regions(const char* module_name, list summary_comp_regions) input : the nam...
text get_text_comp_regions(const char *module_name)
}}}
#define PIPS_NORMAL_PREFIX
static bool in_out_comp_regions_p
{{{ function prototype
text text_all_comp_regions(list l_reg)
}}
text text_comp_region(effect reg)
}}
list load_statement_local_comp_regions(statement)
statement_mapping comp_secs_map_to_listmap(statement_mapping)
void free_local_comp_regions_map(void)
tag GetRefTemp(simple_section, _int)
}}
void set_local_comp_regions_map(statement_mapping)
list comp_desc_set_to_list(comp_desc_set)
#define comp_desc_section(x)
#define simple_section_context(x)
#define context_info_rank(x)
#define USER_REGION_SUFFIX
void reset_proper_rw_effects(void)
void set_proper_rw_effects(statement_effects)
void set_cumulated_rw_effects(statement_effects)
void reset_cumulated_rw_effects(void)
list words_effect(effect)
entity effect_entity(effect)
cproto-generated files
const char * module_name(const char *s)
Return the module part of an entity name.
bool get_bool_property(const string)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
void reset_current_module_entity(void)
Reset the current module entity.
void reset_current_module_statement(void)
Reset the current module statement.
statement set_current_module_statement(statement)
Set the current module statement.
statement get_current_module_statement(void)
Get the current module statement.
entity set_current_module_entity(entity)
static.c
entity get_current_module_entity(void)
Get the entity of the current module.
#define NIL
The empty list (nil in Lisp)
#define list_undefined
Undefined list definition :-)
#define MAP(_map_CASTER, _map_item, _map_code, _map_list)
Apply/map an instruction block on all the elements of a list (old fashioned)
string db_get_memory_resource(const char *rname, const char *oname, bool pure)
Return the pointer to the resource, whatever it is.
hash_table allocate_number_to_statement(void)
hash_table build_number_to_statement(hash_table, statement)
void * hash_get(const hash_table htp, const void *key)
this function retrieves in the hash table pointed to by htp the couple whose key is equal to key.
void hash_table_free(hash_table htp)
this function deletes a hash table that is no longer useful.
string concatenate(const char *,...)
Return the concatenation of the given strings.
#define HASH_UNDEFINED_VALUE
value returned by hash_get() when the key is not found; could also be called HASH_KEY_NOT_FOUND,...
#define hash_table_undefined
Value of an undefined hash_table.
void close_prettyprint()
because some prettyprint functions may be used for debug, so the last hook set by somebody may have s...
void init_prettyprint(text(*hook)(entity, int, statement))
checks that the prettyprint hook was actually reset...
text text_module(entity, statement)
void print_number_to_statement(hash_table)
bool make_text_resource(const char *, const char *, const char *, text)
print.c
entity local_name_to_top_level_entity(const char *n)
This function try to find a top-level entity from a local name.
bool entity_scalar_p(entity)
The concrete type of e is a scalar type.
#define statement_number(x)
#define statement_undefined
void module_to_value_mappings(entity m)
void module_to_value_mappings(entity m): build hash tables between variables and values (old,...
sentence make_pred_commentary_sentence(string str_pred, string comment_prefix)
sentence make_pred_commentary_sentence(string str_pred, string comment_prefix) input : a substring fo...
text words_predicate_to_commentary(list w_pred, string comment_prefix)
text words_predicate_to_commentary(list w_pred, string comment_prefix) input : a list of strings,...
static bool __attribute__((unused))
The structure used to build lists in NewGen.
#define CHAIN_SWORD(l, s)
#define MERGE_TEXTS(r, t)
#define ADD_SENTENCE_TO_TEXT(t, p)