Commit eb7e004a authored by kruger's avatar kruger

correction des bug du gnuplot

parent 9b2022e6
......@@ -167,73 +167,69 @@ int YYLEXNAME::yyaction(int action)
char sFileName[1000];
strcpy(sFileName, sRAW_PROJECT_NAME);
switch (TARGET) {
case STD :
case CUDA : strcat(sFileName,".cpp"); break;
default : strcat(sFileName,".cpp");
}
strcat(sFileName,".cpp");
fpOutputFile=fopen(sFileName,"w");
#line 178 "EaseaLex.cpp"
#line 174 "EaseaLex.cpp"
}
break;
case 4:
{
#line 144 "EaseaLex.l"
#line 140 "EaseaLex.l"
fprintf(fpOutputFile,"EASEA");
#line 185 "EaseaLex.cpp"
#line 181 "EaseaLex.cpp"
}
break;
case 5:
{
#line 145 "EaseaLex.l"
#line 141 "EaseaLex.l"
fprintf(fpOutputFile,"%s",sPROJECT_NAME);
#line 192 "EaseaLex.cpp"
#line 188 "EaseaLex.cpp"
}
break;
case 6:
{
#line 146 "EaseaLex.l"
#line 142 "EaseaLex.l"
fprintf(fpOutputFile,"%s",sEZ_PATH);
#line 199 "EaseaLex.cpp"
#line 195 "EaseaLex.cpp"
}
break;
case 7:
{
#line 147 "EaseaLex.l"
#line 143 "EaseaLex.l"
fprintf(fpOutputFile,"%s",sTPL_DIR);
#line 206 "EaseaLex.cpp"
#line 202 "EaseaLex.cpp"
}
break;
case 8:
{
#line 148 "EaseaLex.l"
#line 144 "EaseaLex.l"
fprintf(fpOutputFile,"%s",sEO_DIR);
#line 213 "EaseaLex.cpp"
#line 209 "EaseaLex.cpp"
}
break;
case 9:
{
#line 149 "EaseaLex.l"
#line 145 "EaseaLex.l"
fprintf(fpOutputFile,"%s",sLOWER_CASE_PROJECT_NAME);
#line 220 "EaseaLex.cpp"
#line 216 "EaseaLex.cpp"
}
break;
case 10:
{
#line 150 "EaseaLex.l"
#line 146 "EaseaLex.l"
switch (OPERATING_SYSTEM) {
case UNIX : fprintf(fpOutputFile,"UNIX_OS"); break;
case WINDOWS : fprintf(fpOutputFile,"WINDOWS_OS"); break;
case UNKNOWN_OS : fprintf(fpOutputFile,"UNKNOWN_OS"); break;
}
#line 232 "EaseaLex.cpp"
#line 228 "EaseaLex.cpp"
}
break;
case 11:
{
#line 156 "EaseaLex.l"
#line 152 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting user declarations.\n");
yyreset();
......@@ -241,24 +237,24 @@ switch (OPERATING_SYSTEM) {
lineCounter=1;
BEGIN COPY_USER_DECLARATIONS;
#line 245 "EaseaLex.cpp"
#line 241 "EaseaLex.cpp"
}
break;
case 12:
{
#line 163 "EaseaLex.l"
#line 159 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting initialisation function.\n");
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_INITIALISATION_FUNCTION;
#line 257 "EaseaLex.cpp"
#line 253 "EaseaLex.cpp"
}
break;
case 13:
{
#line 170 "EaseaLex.l"
#line 166 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting generation before reduce function.\n");
yyreset();
......@@ -266,12 +262,12 @@ switch (OPERATING_SYSTEM) {
bGenerationFunctionBeforeReplacement = true;
BEGIN COPY_GENERATION_FUNCTION_BEFORE_REPLACEMENT;
#line 270 "EaseaLex.cpp"
#line 266 "EaseaLex.cpp"
}
break;
case 14:
{
#line 179 "EaseaLex.l"
#line 175 "EaseaLex.l"
//DEBUG_PRT_PRT("insert beg");
if (bVERBOSE) printf ("Inserting at the begining of each generation function.\n");
......@@ -281,12 +277,12 @@ switch (OPERATING_SYSTEM) {
bEndGeneration = false;
BEGIN COPY_BEG_GENERATION_FUNCTION;
#line 285 "EaseaLex.cpp"
#line 281 "EaseaLex.cpp"
}
break;
case 15:
{
#line 190 "EaseaLex.l"
#line 186 "EaseaLex.l"
//DEBUG_PRT_PRT("insert beg");
yyreset();
......@@ -294,12 +290,12 @@ switch (OPERATING_SYSTEM) {
if (bVERBOSE) printf ("Evaluation population in a single function!!.\n");
BEGIN COPY_INSTEAD_EVAL;
#line 298 "EaseaLex.cpp"
#line 294 "EaseaLex.cpp"
}
break;
case 16:
{
#line 199 "EaseaLex.l"
#line 195 "EaseaLex.l"
//DEBUG_PRT_PRT("insert end");
if (bVERBOSE) printf ("Inserting at the end of each generation function.\n");
......@@ -309,36 +305,36 @@ switch (OPERATING_SYSTEM) {
bBeginGeneration = false;
BEGIN COPY_END_GENERATION_FUNCTION;
#line 313 "EaseaLex.cpp"
#line 309 "EaseaLex.cpp"
}
break;
case 17:
{
#line 210 "EaseaLex.l"
#line 206 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting Bound Checking function.\n");
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_BOUND_CHECKING_FUNCTION;
#line 325 "EaseaLex.cpp"
#line 321 "EaseaLex.cpp"
}
break;
case 18:
{
#line 218 "EaseaLex.l"
#line 214 "EaseaLex.l"
if (bVERBOSE) printf ("Analysing user classes.\n");
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN ANALYSE_USER_CLASSES;
#line 337 "EaseaLex.cpp"
#line 333 "EaseaLex.cpp"
}
break;
case 19:
{
#line 225 "EaseaLex.l"
#line 221 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting User classes.\n");
fprintf (fpOutputFile,"// User classes\n");
......@@ -363,12 +359,12 @@ switch (OPERATING_SYSTEM) {
//DEBUG_PRT_PRT("\n");
}
#line 367 "EaseaLex.cpp"
#line 363 "EaseaLex.cpp"
}
break;
case 20:
{
#line 249 "EaseaLex.l"
#line 245 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Inserting default genome constructor.\n");
......@@ -380,12 +376,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 384 "EaseaLex.cpp"
#line 380 "EaseaLex.cpp"
}
break;
case 21:
{
#line 261 "EaseaLex.l"
#line 257 "EaseaLex.l"
size_t size_of_genome=0;
if (bVERBOSE) printf ("Inserting default genome size.\n");
......@@ -406,12 +402,12 @@ switch (OPERATING_SYSTEM) {
}
fprintf(fpOutputFile,"%d",size_of_genome);
#line 410 "EaseaLex.cpp"
#line 406 "EaseaLex.cpp"
}
break;
case 22:
{
#line 282 "EaseaLex.l"
#line 278 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Inserting default genome constructor.\n");
......@@ -427,17 +423,17 @@ switch (OPERATING_SYSTEM) {
}
#line 431 "EaseaLex.cpp"
#line 427 "EaseaLex.cpp"
}
break;
#line 300 "EaseaLex.l"
#line 296 "EaseaLex.l"
#line 314 "EaseaLex.l"
#line 310 "EaseaLex.l"
#line 438 "EaseaLex.cpp"
#line 434 "EaseaLex.cpp"
case 23:
{
#line 321 "EaseaLex.l"
#line 317 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Inserting default genome serializer.\n");
......@@ -447,12 +443,12 @@ switch (OPERATING_SYSTEM) {
fprintf(fpOutputFile," ar & %s;\n",pSym->Object->sName);
}
#line 451 "EaseaLex.cpp"
#line 447 "EaseaLex.cpp"
}
break;
case 24:
{
#line 331 "EaseaLex.l"
#line 327 "EaseaLex.l"
if (pGENOME->sString) {
if (bVERBOSE) printf ("Inserting Methods into Genome Class.\n");
......@@ -462,12 +458,12 @@ switch (OPERATING_SYSTEM) {
if (bVERBOSE) printf ("Inserting genome.\n");
pGENOME->print(fpOutputFile);
#line 466 "EaseaLex.cpp"
#line 462 "EaseaLex.cpp"
}
break;
case 25:
{
#line 340 "EaseaLex.l"
#line 336 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default assignment constructor.\n");
......@@ -485,12 +481,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 489 "EaseaLex.cpp"
#line 485 "EaseaLex.cpp"
}
break;
case 26:
{
#line 357 "EaseaLex.l"
#line 353 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default clone method.\n");
......@@ -508,12 +504,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 512 "EaseaLex.cpp"
#line 508 "EaseaLex.cpp"
}
break;
case 27:
{
#line 375 "EaseaLex.l"
#line 371 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default copy constructor.\n");
......@@ -540,12 +536,12 @@ switch (OPERATING_SYSTEM) {
}
#line 544 "EaseaLex.cpp"
#line 540 "EaseaLex.cpp"
}
break;
case 28:
{
#line 402 "EaseaLex.l"
#line 398 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default copy constructor.\n");
......@@ -561,12 +557,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 565 "EaseaLex.cpp"
#line 561 "EaseaLex.cpp"
}
break;
case 29:
{
#line 418 "EaseaLex.l"
#line 414 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default destructor.\n");
......@@ -583,12 +579,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 587 "EaseaLex.cpp"
#line 583 "EaseaLex.cpp"
}
break;
case 30:
{
#line 435 "EaseaLex.l"
#line 431 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default diversity test.\n");
......@@ -611,12 +607,12 @@ switch (OPERATING_SYSTEM) {
}
#line 615 "EaseaLex.cpp"
#line 611 "EaseaLex.cpp"
}
break;
case 31:
{
#line 457 "EaseaLex.l"
#line 453 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default genome comparator.\n");
......@@ -633,12 +629,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 637 "EaseaLex.cpp"
#line 633 "EaseaLex.cpp"
}
break;
case 32:
{
#line 473 "EaseaLex.l"
#line 469 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (bVERBOSE) printf ("Creating default read command.\n");
......@@ -648,36 +644,36 @@ switch (OPERATING_SYSTEM) {
if (pSym->Object->ObjectQualifier==1) continue; // 1=Static
}
#line 652 "EaseaLex.cpp"
#line 648 "EaseaLex.cpp"
}
break;
case 33:
{
#line 482 "EaseaLex.l"
#line 478 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting genome display function.\n");
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_DISPLAY;
#line 664 "EaseaLex.cpp"
#line 660 "EaseaLex.cpp"
}
break;
case 34:
{
#line 490 "EaseaLex.l"
#line 486 "EaseaLex.l"
if( bVERBOSE ) printf("Inserting user LDFLAGS.\n");
yyreset();
yyin = fpGenomeFile;
BEGIN COPY_MAKEFILE_OPTION;
#line 676 "EaseaLex.cpp"
#line 672 "EaseaLex.cpp"
}
break;
case 35:
{
#line 497 "EaseaLex.l"
#line 493 "EaseaLex.l"
CListItem<CSymbol*> *pSym;
if (!bDisplayFunction){
......@@ -703,12 +699,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 707 "EaseaLex.cpp"
#line 703 "EaseaLex.cpp"
}
break;
case 36:
{
#line 522 "EaseaLex.l"
#line 518 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting user functions.\n");
yyreset();
......@@ -716,12 +712,12 @@ switch (OPERATING_SYSTEM) {
lineCounter=2; // switch to .ez file and analyser
BEGIN COPY_USER_FUNCTIONS;
#line 720 "EaseaLex.cpp"
#line 716 "EaseaLex.cpp"
}
break;
case 37:
{
#line 529 "EaseaLex.l"
#line 525 "EaseaLex.l"
yyreset();
bWithinEO_Function=1;
......@@ -730,83 +726,83 @@ switch (OPERATING_SYSTEM) {
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_EO_INITIALISER; // not implemented as a function !
#line 734 "EaseaLex.cpp"
#line 730 "EaseaLex.cpp"
}
break;
case 38:
{
#line 538 "EaseaLex.l"
#line 534 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_INITIALISER;
#line 745 "EaseaLex.cpp"
#line 741 "EaseaLex.cpp"
}
break;
case 39:
{
#line 544 "EaseaLex.l"
#line 540 "EaseaLex.l"
if (bVERBOSE) printf ("Inserting Finalization function.\n");
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN COPY_FINALIZATION_FUNCTION;
#line 757 "EaseaLex.cpp"
#line 753 "EaseaLex.cpp"
}
break;
case 40:
{
#line 551 "EaseaLex.l"
#line 547 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
lineCounter=1;
BEGIN COPY_CROSSOVER;
#line 769 "EaseaLex.cpp"
#line 765 "EaseaLex.cpp"
}
break;
case 41:
{
#line 557 "EaseaLex.l"
#line 553 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
lineCounter=1;
BEGIN COPY_MUTATOR;
#line 781 "EaseaLex.cpp"
#line 777 "EaseaLex.cpp"
}
break;
case 42:
{
#line 563 "EaseaLex.l"
#line 559 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
lineCounter=1;
BEGIN COPY_EVALUATOR;
#line 793 "EaseaLex.cpp"
#line 789 "EaseaLex.cpp"
}
break;
case 43:
{
#line 569 "EaseaLex.l"
#line 565 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
lineCounter=1;
BEGIN COPY_OPTIMISER;
#line 805 "EaseaLex.cpp"
#line 801 "EaseaLex.cpp"
}
break;
case 44:
{
#line 575 "EaseaLex.l"
#line 571 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
......@@ -814,12 +810,12 @@ switch (OPERATING_SYSTEM) {
lineCounter=1;
BEGIN COPY_EVALUATOR;
#line 818 "EaseaLex.cpp"
#line 814 "EaseaLex.cpp"
}
break;
case 45:
{
#line 582 "EaseaLex.l"
#line 578 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
......@@ -827,23 +823,23 @@ switch (OPERATING_SYSTEM) {
lineCounter=1;
BEGIN COPY_OPTIMISER;
#line 831 "EaseaLex.cpp"
#line 827 "EaseaLex.cpp"
}
break;
case 46:
{
#line 590 "EaseaLex.l"
#line 586 "EaseaLex.l"
yyreset();
yyin = fpGenomeFile; // switch to .ez file and analyser
BEGIN PARAMETERS_ANALYSIS;
#line 842 "EaseaLex.cpp"
#line 838 "EaseaLex.cpp"
}
break;
case 47:
{
#line 595 "EaseaLex.l"
#line 591 "EaseaLex.l"
if (bGenerationReplacementFunction) {
if( bVERBOSE ) fprintf(stdout,"Inserting generation function call\n");
......@@ -852,12 +848,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 856 "EaseaLex.cpp"
#line 852 "EaseaLex.cpp"
}
break;
case 48:
{
#line 604 "EaseaLex.l"
#line 600 "EaseaLex.l"
if( bEndGenerationFunction ) {
if( bVERBOSE ) fprintf(stdout,"Inserting end generation function call\n");
......@@ -866,12 +862,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 870 "EaseaLex.cpp"
#line 866 "EaseaLex.cpp"
}
break;
case 49:
{
#line 613 "EaseaLex.l"
#line 609 "EaseaLex.l"
if( bBeginGenerationFunction ) {
if( bVERBOSE ) fprintf(stdout,"Inserting beginning generation function call\n");
......@@ -880,12 +876,12 @@ switch (OPERATING_SYSTEM) {
}
}
#line 884 "EaseaLex.cpp"
#line 880 "EaseaLex.cpp"
}
break;
case 50:
{
#line 623 "EaseaLex.l"
#line 619 "EaseaLex.l"
if (bBoundCheckingFunction) {
if( TARGET==CUDA || TARGET==STD ){
......@@ -893,58 +889,58 @@ switch (OPERATING_SYSTEM) {
}
}
#line 897 "EaseaLex.cpp"
#line 893 "EaseaLex.cpp"
}
break;
case 51:
{
#line 631 "EaseaLex.l"
#line 627 "EaseaLex.l"
fprintf(fpOutputFile,"%d",bIsParentReduce);
#line 906 "EaseaLex.cpp"
#line 902 "EaseaLex.cpp"
}
break;
case 52:
{
#line 635 "EaseaLex.l"
#line 631 "EaseaLex.l"
fprintf(fpOutputFile,"%d",bIsOffspringReduce);
#line 915 "EaseaLex.cpp"
#line 911 "EaseaLex.cpp"
}
break;
case 53:
{
#line 639 "EaseaLex.l"
#line 635 "EaseaLex.l"