PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "linear.h"
#include "genC.h"
#include "misc.h"
#include "properties.h"
#include "text-util.h"
#include "ri-util.h"
#include "prettyprint.h"
Go to the source code of this file.
Functions | |
static void | rewrite_modulo_expression (expression exp) |
Prettyprinter for CRAFT loops. More... | |
expression | remove_modulo (expression exp) |
===================================================================== More... | |
text | text_loop_craft (entity module, const char *label, int margin, loop obj, int n, list lr, list lidx) |
===================================================================== More... | |
expression remove_modulo | ( | expression | exp | ) |
=====================================================================
exp | xp |
Definition at line 83 of file craft.c.
References exp, expression_domain, gen_recurse, gen_true(), and rewrite_modulo_expression().
Referenced by text_loop_craft().
|
static |
Prettyprinter for CRAFT loops.
There are memory leaks here since a new expression is constructed. ====================================================================== void rewrite_modulo_expression(exp):
filter on the call "ca". It removes all the call to the modulo function.
AP 94/12/20
Definition at line 57 of file craft.c.
References call_arguments, call_function, CAR, entity_local_name(), exp, EXPRESSION, expression_syntax, gen_length(), is_syntax_call, MODULO_OPERATOR_NAME, syntax_call, syntax_tag, and user_error.
Referenced by remove_modulo().
text text_loop_craft | ( | entity | module, |
const char* | label, | ||
int | margin, | ||
loop | obj, | ||
int | n, | ||
list | lr, | ||
list | lidx | ||
) |
=====================================================================
module | odule |
label | abel |
margin | argin |
obj | bj |
lr | r |
lidx | idx |
Definition at line 92 of file craft.c.
References ADD_SENTENCE_TO_TEXT, call_arguments, CAR, CDR, CHAIN_SWORD, comment(), CONS, copy_expression(), ENDP, ENTITY, entity_local_name(), EXPRESSION, expression_syntax, expression_undefined, gen_free_list(), gen_length(), gen_nconc(), INDENTATION, instruction_assign_p(), instruction_call, instruction_loop, instruction_loop_p, is_sentence_formatted, is_sentence_unformatted, is_syntax_reference, loop_body, loop_index, loop_range, MAKE_ONE_WORD_SENTENCE, make_sentence(), make_text(), make_unformatted(), malloc(), MERGE_TEXTS, module, NIL, POP, RANGE, reference_indices, remove_modulo(), statement_instruction, strdup(), syntax_reference, syntax_tag, text_statement(), user_error, words_expression(), words_loop_range(), words_to_string(), and x.
Referenced by text_loop().