Go to the source code of this file.
Data Structures | |
| struct | _newgen_struct_sentence_ |
| struct | _newgen_struct_text_ |
| struct | _newgen_struct_unformatted_ |
Defines | |
| #define | _gen_text_start 92 |
| #define | sentence_domain (_gen_text_start+0) |
| #define | SENTENCE_NEWGEN_DOMAIN (sentence_domain) |
| #define | sentence_NEWGEN_DOMAIN (sentence_domain) |
| #define | text_domain (_gen_text_start+1) |
| _newgen_sentence_domain_defined_ | |
| #define | TEXT_NEWGEN_DOMAIN (text_domain) |
| #define | text_NEWGEN_DOMAIN (text_domain) |
| #define | unformatted_domain (_gen_text_start+2) |
| _newgen_text_domain_defined_ | |
| #define | UNFORMATTED_NEWGEN_DOMAIN (unformatted_domain) |
| #define | unformatted_NEWGEN_DOMAIN (unformatted_domain) |
| #define | SENTENCE(x) ((sentence)((x).p)) |
| _newgen_unformatted_domain_defined_ | |
| #define | sentence_CAST(x) SENTENCE(x) |
| #define | SENTENCE_CAST(x) SENTENCE(x) |
| #define | SENTENCE_(x) ((x).e) |
| #define | SENTENCE_TYPE sentence |
| #define | sentence_TYPE sentence |
| #define | sentence_undefined ((sentence)gen_chunk_undefined) |
| #define | sentence_undefined_p(x) ((x)==sentence_undefined) |
| #define | gen_SENTENCE_cons gen_sentence_cons |
| #define | sentence_domain_number(x) ((x)->_type_) |
| #define | sentence_tag(x) ((x)->_sentence_tag__) |
| #define | sentence_formatted_p(x) (sentence_tag(x)==is_sentence_formatted) |
| #define | sentence_formatted_(x) sentence_formatted(x) |
| #define | sentence_formatted(x) ((x)->_sentence_union_._sentence_formatted_) |
| #define | sentence_unformatted_p(x) (sentence_tag(x)==is_sentence_unformatted) |
| #define | sentence_unformatted_(x) sentence_unformatted(x) |
| #define | sentence_unformatted(x) ((x)->_sentence_union_._sentence_unformatted_) |
| #define | TEXT(x) ((text)((x).p)) |
| TEXT. | |
| #define | text_CAST(x) TEXT(x) |
| #define | TEXT_CAST(x) TEXT(x) |
| #define | TEXT_(x) ((x).e) |
| #define | TEXT_TYPE text |
| #define | text_TYPE text |
| #define | text_undefined ((text)gen_chunk_undefined) |
| #define | text_undefined_p(x) ((x)==text_undefined) |
| #define | gen_TEXT_cons gen_text_cons |
| #define | text_domain_number(x) ((x)->_type_) |
| #define | text_sentences(x) ((x)->_text_holder_) |
| #define | UNFORMATTED(x) ((unformatted)((x).p)) |
| UNFORMATTED. | |
| #define | unformatted_CAST(x) UNFORMATTED(x) |
| #define | UNFORMATTED_CAST(x) UNFORMATTED(x) |
| #define | UNFORMATTED_(x) ((x).e) |
| #define | UNFORMATTED_TYPE unformatted |
| #define | unformatted_TYPE unformatted |
| #define | unformatted_undefined ((unformatted)gen_chunk_undefined) |
| #define | unformatted_undefined_p(x) ((x)==unformatted_undefined) |
| #define | gen_UNFORMATTED_cons gen_unformatted_cons |
| #define | unformatted_domain_number(x) ((x)->_type_) |
| #define | unformatted_label_(x) unformatted_label(x) |
| #define | unformatted_label(x) ((x)->_unformatted_label_) |
| #define | unformatted_number_(x) unformatted_number(x) |
| #define | unformatted_number(x) ((x)->_unformatted_number_) |
| #define | unformatted_extra_margin_(x) unformatted_extra_margin(x) |
| #define | unformatted_extra_margin(x) ((x)->_unformatted_extra_margin_) |
| #define | unformatted_words_(x) unformatted_words(x) |
| #define | unformatted_words(x) ((x)->_unformatted_words_) |
| #define | text_spec "\--NEWGEN-START 92\n\sentence = formatted:string + unformatted:unformatted;\n\text = sentences:sentence*;\n\unformatted = label:string x number:int x extra_margin:int x words:string*;\n\" |
Typedefs | |
| typedef struct _newgen_struct_sentence_ * | sentence |
| typedef struct _newgen_struct_text_ * | text |
| typedef struct _newgen_struct_unformatted_ * | unformatted |
Enumerations | |
| enum | sentence_utype { is_sentence_formatted, is_sentence_unformatted } |
Functions | |
| sentence | copy_sentence (sentence) |
| SENTENCE. | |
| void | free_sentence (sentence) |
| sentence | check_sentence (sentence) |
| bool | sentence_consistent_p (sentence) |
| bool | sentence_defined_p (sentence) |
| list | gen_sentence_cons (sentence, list) |
| void | write_sentence (FILE *, sentence) |
| sentence | read_sentence (FILE *) |
| sentence | make_sentence (enum sentence_utype, void *) |
| sentence | make_sentence_formatted (string) |
| sentence | make_sentence_unformatted (unformatted) |
| text | copy_text (text) |
| TEXT. | |
| void | free_text (text) |
| text | check_text (text) |
| bool | text_consistent_p (text) |
| bool | text_defined_p (text) |
| list | gen_text_cons (text, list) |
| void | write_text (FILE *, text) |
| text | read_text (FILE *) |
| text | make_text (list) |
| unformatted | copy_unformatted (unformatted) |
| UNFORMATTED. | |
| void | free_unformatted (unformatted) |
| unformatted | check_unformatted (unformatted) |
| bool | unformatted_consistent_p (unformatted) |
| bool | unformatted_defined_p (unformatted) |
| list | gen_unformatted_cons (unformatted, list) |
| void | write_unformatted (FILE *, unformatted) |
| unformatted | read_unformatted (FILE *) |
| unformatted | make_unformatted (string, intptr_t, intptr_t, list) |
_newgen_unformatted_domain_defined_
SENTENCE
Definition at line 36 of file text.h.
Referenced by __attribute__(), add_words_to_text(), attach_to_sentence_up_to_end_of_text(), attach_to_text(), build_a_clone_for(), create_HRE_module(), generate_alternate_return_targets(), get_vertex_by_string(), include(), prettyprint_dot_label(), print_graph_of_text_to_daVinci(), print_marged_text_from_starting_node(), print_module_icfg(), print_text(), safe_make_successor(), stub_text(), text_entity_declaration(), text_instruction(), text_io_block_if(), text_loop_cmf(), text_of_parameters(), text_region(), text_region_no_action(), text_statement_enclosed(), and text_to_string().
| #define sentence_domain (_gen_text_start+0) |
Definition at line 10 of file text.h.
Referenced by check_sentence(), and make_sentence().
Definition at line 75 of file text.h.
Referenced by debug_sentence(), first_word_of_sentence(), last_word_of_sentence(), prettyprint_dot_label(), print_sentence(), and sentence_to_string().
Definition at line 73 of file text.h.
Referenced by add_words_to_text(), first_word_of_sentence(), last_word_of_sentence(), prettyprint_dot_label(), print_sentence(), and sentence_to_string().
| #define SENTENCE_NEWGEN_DOMAIN (sentence_domain) |
Definition at line 13 of file text.h.
Referenced by gen_sentence_cons().
Definition at line 72 of file text.h.
Referenced by debug_sentence().
| #define sentence_undefined ((sentence)gen_chunk_undefined) |
Definition at line 42 of file text.h.
Referenced by C_any_comment_to_text(), compilation_unit_text(), generate_alternate_return_targets(), sentence_area(), sentence_data(), text_loop_default(), and text_trail().
Definition at line 78 of file text.h.
Referenced by add_words_to_text(), debug_sentence(), first_word_of_sentence(), last_word_of_sentence(), prettyprint_dot_label(), print_sentence(), sentence_to_string(), and text_trail().
Definition at line 76 of file text.h.
Referenced by first_word_of_sentence(), and last_word_of_sentence().
| #define text_domain (_gen_text_start+1) |
_newgen_sentence_domain_defined_
Definition at line 18 of file text.h.
Referenced by check_text(), and make_text().
| #define TEXT_NEWGEN_DOMAIN (text_domain) |
Definition at line 21 of file text.h.
Referenced by gen_text_cons().
Definition at line 108 of file text.h.
Referenced by add_words_to_text(), attach_decoration_to_text(), attach_statement_information_to_text(), attach_to_sentence_up_to_end_of_text(), attach_to_text(), build_a_clone_for(), c_text_related_entities(), create_HRE_module(), debug_text(), get_text_proper_effects_flt(), get_vertex_by_string(), prettyprint_dot_label(), print_graph_of_text_to_daVinci(), print_marged_text_from_starting_node(), print_module_icfg(), print_text(), safe_make_successor(), stub_text(), text_block(), text_logical_if(), text_statement_enclosed(), and text_to_string().
| #define text_undefined ((text)gen_chunk_undefined) |
Definition at line 88 of file text.h.
Referenced by anyloop_rwt(), C_comment_to_text(), c_text_entities(), c_text_related_entities(), compilation_unit_text(), generate_alternate_return_targets(), insert_locals(), missing_file_initializer(), pragma_str_for(), print_code_semantics(), ProcessEntries(), ProcessEntry(), statement_to_text(), stub_text(), test_rwt(), text_cray(), text_for_a_transformer(), text_instruction(), text_loop(), text_loop_90(), text_loop_cmf(), text_named_module(), text_omp_directive(), text_statement_enclosed(), and text_test().
| #define UNFORMATTED | ( | x | ) | ((unformatted)((x).p)) |
| #define unformatted_domain (_gen_text_start+2) |
_newgen_text_domain_defined_
Definition at line 26 of file text.h.
Referenced by check_unformatted(), and make_unformatted().
Definition at line 146 of file text.h.
Referenced by debug_unformatted(), and print_sentence().
Definition at line 142 of file text.h.
Referenced by debug_unformatted(), print_sentence(), and text_trail().
| #define UNFORMATTED_NEWGEN_DOMAIN (unformatted_domain) |
Definition at line 29 of file text.h.
Referenced by gen_unformatted_cons().
Definition at line 144 of file text.h.
Referenced by debug_unformatted(), and print_sentence().
| #define unformatted_TYPE unformatted |
| #define UNFORMATTED_TYPE unformatted |
| #define unformatted_undefined ((unformatted)gen_chunk_undefined) |
Definition at line 118 of file text.h.
Referenced by text_trail().
Definition at line 148 of file text.h.
Referenced by add_words_to_text(), debug_unformatted(), first_word_of_sentence(), last_word_of_sentence(), prettyprint_dot_label(), print_sentence(), sentence_data_statement(), and sentence_to_string().
| typedef struct _newgen_struct_sentence_* sentence |
| typedef struct _newgen_struct_text_* text |
| typedef struct _newgen_struct_unformatted_* unformatted |
| enum sentence_utype |
Definition at line 54 of file text.h.
00054 { 00055 is_sentence_formatted, 00056 is_sentence_unformatted 00057 };
Definition at line 21 of file src/Libs/newgen/text.c.
References gen_check(), and sentence_domain.
Referenced by sentence_consistent_p().
00021 { 00022 return (sentence) gen_check((gen_chunk*) p, sentence_domain); 00023 }


Definition at line 58 of file src/Libs/newgen/text.c.
References gen_check(), and text_domain.
Referenced by text_consistent_p().
00058 { 00059 return (text) gen_check((gen_chunk*) p, text_domain); 00060 }


| unformatted check_unformatted | ( | unformatted | ) |
Definition at line 89 of file src/Libs/newgen/text.c.
References gen_check(), and unformatted_domain.
Referenced by unformatted_consistent_p().
00089 { 00090 return (unformatted) gen_check((gen_chunk*) p, unformatted_domain); 00091 }


SENTENCE.
Definition at line 15 of file src/Libs/newgen/text.c.
References gen_copy_tree().
00015 { 00016 return (sentence) gen_copy_tree((gen_chunk*) p); 00017 }

TEXT.
Definition at line 52 of file src/Libs/newgen/text.c.
References gen_copy_tree().
Referenced by test_rwt().
00052 { 00053 return (text) gen_copy_tree((gen_chunk*) p); 00054 }


| unformatted copy_unformatted | ( | unformatted | ) |
UNFORMATTED.
Definition at line 83 of file src/Libs/newgen/text.c.
References gen_copy_tree().
00083 { 00084 return (unformatted) gen_copy_tree((gen_chunk*) p); 00085 }

| void free_sentence | ( | sentence | ) |
Definition at line 18 of file src/Libs/newgen/text.c.
References gen_free().

| void free_text | ( | text | ) |
Definition at line 55 of file src/Libs/newgen/text.c.
References gen_free().
Referenced by generate_hpf_remapping_file(), get_text_proper_effects_flt(), hpfc_print_code(), hpfc_print_common(), init_host_and_node_entities(), make_text_resource_and_free(), print_code_or_source(), print_code_semantics(), print_loops(), print_parallelized_code_common(), print_region(), print_statement(), simple_effects_to_text(), subtitute_induction_statement_in(), text_block(), text_comp_region(), text_logical_if(), and text_statement_enclosed().


| void free_unformatted | ( | unformatted | ) |
Definition at line 86 of file src/Libs/newgen/text.c.
References gen_free().

Definition at line 31 of file src/Libs/newgen/text.c.
References gen_typed_cons(), and SENTENCE_NEWGEN_DOMAIN.
00031 { 00032 return gen_typed_cons(SENTENCE_NEWGEN_DOMAIN, p, l); 00033 }

Definition at line 68 of file src/Libs/newgen/text.c.
References gen_typed_cons(), and TEXT_NEWGEN_DOMAIN.
00068 { 00069 return gen_typed_cons(TEXT_NEWGEN_DOMAIN, p, l); 00070 }

| list gen_unformatted_cons | ( | unformatted | , | |
| list | ||||
| ) |
Definition at line 99 of file src/Libs/newgen/text.c.
References gen_typed_cons(), and UNFORMATTED_NEWGEN_DOMAIN.
00099 { 00100 return gen_typed_cons(UNFORMATTED_NEWGEN_DOMAIN, p, l); 00101 }

| sentence make_sentence | ( | enum | sentence_utype, | |
| void * | ||||
| ) |
Definition at line 40 of file src/Libs/newgen/text.c.
References gen_alloc(), GEN_CHECK_ALLOC, and sentence_domain.
Referenced by add_one_unformated_printf_to_text(), add_to_current_line(), aliases_text(), append_marged_text(), build_a_clone_for(), C_any_comment_to_text(), c_text_related_entities(), close_current_line(), compilation_unit_text(), create_HRE_module(), generate_alternate_return_targets(), get_declaration_comments(), get_header_comments(), include(), init_text_statement(), make_pred_commentary_sentence(), make_sentence_formatted(), make_sentence_unformatted(), sentence_area(), sentence_basic_declaration(), sentence_data(), sentence_data_statement(), sentence_external(), sentence_goto_label(), sentence_head(), sentence_symbolic(), sentence_variable(), store_sc_text_line(), stub_head(), stub_text(), stub_var_decl(), text_array_comp_regions(), text_array_regions(), text_block(), text_block_elseif(), text_block_if(), text_block_ifthen(), text_complexity(), text_continuation_conditions(), text_entity_declaration(), text_forloop(), text_initializations(), text_instruction(), text_io_block_if(), text_logical_if(), text_loop(), text_loop_cmf(), text_loop_craft(), text_loop_default(), text_microtasked_loop(), text_named_module(), text_region(), text_region_no_action(), text_statement_enclosed(), text_summary_complexity(), text_trail(), text_transformer(), text_unstructured(), text_vectorized_loop(), and text_whileloop().
00040 { 00041 return (sentence) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, sentence_domain, tag, val); 00042 }

Definition at line 43 of file src/Libs/newgen/text.c.
References is_sentence_formatted, and make_sentence().
00043 { 00044 return make_sentence(is_sentence_formatted, (void*) _field_); 00045 }

| sentence make_sentence_unformatted | ( | unformatted | ) |
Definition at line 46 of file src/Libs/newgen/text.c.
References is_sentence_unformatted, and make_sentence().
00046 { 00047 return make_sentence(is_sentence_unformatted, (void*) _field_); 00048 }

Definition at line 77 of file src/Libs/newgen/text.c.
References gen_alloc(), GEN_CHECK_ALLOC, and text_domain.
Referenced by __attribute__(), aliases_text(), anyloop_rwt(), C_any_comment_to_text(), C_standard_comment_to_text(), c_text_entities(), c_text_related_entities(), callgraph_module_name(), compilation_unit_text(), empty_text(), find_simple_for_like_variable(), generate_alternate_return_targets(), get_any_comp_regions_text(), get_any_effects_text(), get_continuation_condition_text(), get_real_call_filtered_proper_effects(), get_semantic_text(), get_text_proper_effects_flt(), include(), init_text_statement(), instruction_rwt(), print_code_or_source(), print_code_or_source_comp(), print_code_static_control(), print_loops(), print_module_icfg(), print_parallelized_code_common(), print_parallelizedCMF_code(), print_parallelizedCRAFT_code(), simple_effects_to_text(), statement_flt(), store_sc_text_line(), string_predicate_to_commentary(), stub_text(), test_rwt(), text_all_comp_regions(), text_array_comp_regions(), text_array_regions(), text_block(), text_block_else(), text_block_elseif(), text_block_if(), text_block_ifthen(), text_comp_region(), text_comp_regions(), text_complexity(), text_continuation(), text_continuation_conditions(), text_cray(), text_directive(), text_entity_declaration(), text_equivalence_class(), text_equivalences(), text_forloop(), text_initializations(), text_instruction(), text_io_block_if(), text_logical_if(), text_loop(), text_loop_cmf(), text_loop_craft(), text_loop_default(), text_microtasked_loop(), text_named_module(), text_of_parameters(), text_points_to(), text_reductions(), text_region(), text_region_no_action(), text_statement_any_effect_type(), text_statement_enclosed(), text_summary_any_effect_type(), text_summary_complexity(), text_trail(), text_transformer(), text_unstructured(), text_vectorized_loop(), and text_whileloop().
00077 { 00078 return (text) gen_alloc(2*sizeof(gen_chunk), GEN_CHECK_ALLOC, text_domain, a); 00079 }

| unformatted make_unformatted | ( | string | , | |
| intptr_t | , | |||
| intptr_t | , | |||
| list | ||||
| ) |
Definition at line 108 of file src/Libs/newgen/text.c.
References gen_alloc(), GEN_CHECK_ALLOC, and unformatted_domain.
Referenced by C_any_comment_to_text(), c_text_related_entities(), generate_alternate_return_targets(), mark_block(), sentence_area(), sentence_basic_declaration(), sentence_data(), sentence_data_statement(), sentence_external(), sentence_goto_label(), sentence_head(), sentence_symbolic(), sentence_variable(), stub_head(), stub_text(), stub_var_decl(), text_block_elseif(), text_block_if(), text_block_ifthen(), text_forloop(), text_instruction(), text_io_block_if(), text_logical_if(), text_loop_cmf(), text_loop_craft(), text_loop_default(), text_microtasked_loop(), text_trail(), text_unstructured(), text_vectorized_loop(), and text_whileloop().
00108 { 00109 return (unformatted) gen_alloc(5*sizeof(gen_chunk), GEN_CHECK_ALLOC, unformatted_domain, a1, a2, a3, a4); 00110 }


| sentence read_sentence | ( | FILE * | ) |
Definition at line 37 of file src/Libs/newgen/text.c.
References gen_read().

| text read_text | ( | FILE * | ) |
Definition at line 74 of file src/Libs/newgen/text.c.
References gen_read().

| unformatted read_unformatted | ( | FILE * | ) |
Definition at line 105 of file src/Libs/newgen/text.c.
References gen_read().
00105 { 00106 return (unformatted) gen_read(f); 00107 }

Definition at line 24 of file src/Libs/newgen/text.c.
References check_sentence(), and gen_consistent_p().
00024 { 00025 check_sentence(p); 00026 return gen_consistent_p((gen_chunk*) p); 00027 }

Definition at line 28 of file src/Libs/newgen/text.c.
References gen_defined_p().
00028 { 00029 return gen_defined_p((gen_chunk*) p); 00030 }

Definition at line 61 of file src/Libs/newgen/text.c.
References check_text(), and gen_consistent_p().
Referenced by add_words_to_text(), and get_semantic_text().
00061 { 00062 check_text(p); 00063 return gen_consistent_p((gen_chunk*) p); 00064 }


Definition at line 65 of file src/Libs/newgen/text.c.
References gen_defined_p().
00065 { 00066 return gen_defined_p((gen_chunk*) p); 00067 }

| bool unformatted_consistent_p | ( | unformatted | ) |
Definition at line 92 of file src/Libs/newgen/text.c.
References check_unformatted(), and gen_consistent_p().
00092 { 00093 check_unformatted(p); 00094 return gen_consistent_p((gen_chunk*) p); 00095 }

| bool unformatted_defined_p | ( | unformatted | ) |
Definition at line 96 of file src/Libs/newgen/text.c.
References gen_defined_p().
00096 { 00097 return gen_defined_p((gen_chunk*) p); 00098 }

| void write_sentence | ( | FILE * | , | |
| sentence | ||||
| ) |
Definition at line 34 of file src/Libs/newgen/text.c.
References gen_write().

| void write_text | ( | FILE * | , | |
| text | ||||
| ) |
Definition at line 71 of file src/Libs/newgen/text.c.
References gen_write().

| void write_unformatted | ( | FILE * | , | |
| unformatted | ||||
| ) |
Definition at line 102 of file src/Libs/newgen/text.c.
References gen_write().

1.6.2-20100208