PIPS
spaghettify.h
Go to the documentation of this file.
1 /*
2 
3  $Id: spaghettify.h 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 #ifndef SPAGHETTIFY_DEFS
25 #define SPAGHETTIFY_DEFS
26 
27 #define INDEX_VARIABLE_NAME "DO%d_INDEX"
28 #define BEGIN_VARIABLE_NAME "DO%d_BEGIN"
29 #define END_VARIABLE_NAME "DO%d_END"
30 #define INCREMENT_VARIABLE_NAME "DO%d_INCREMENT"
31 
33 
35 
37 
39 
41 
42 #endif
const char * module_name(const char *s)
Return the module part of an entity name.
Definition: entity_names.c:296
statement spaghettify_test(statement stat, const char *module_name)
test_spaghettify.c
statement spaghettify_statement(statement stat, const char *module_name)
The spaghettifier is used in context of PHRASE project while creating "Finite State Machine"-like cod...
Definition: spaghettify.c:85
statement spaghettify_loop(statement stat, const char *module_name)
This function takes the statement stat as parameter and return a new spaghettized statement,...
statement spaghettify_whileloop(statement stat, const char *module_name)
whileloop_spaghettify.c
statement spaghettify_forloop(statement stat, const char *module_name)
This function takes the statement stat as parameter and return a new spaghettized statement,...