* dhry.c is clean-ish. Works on z80, compiles on mcs51, untested.
[fw/sdcc] / support / tests / dhrystone / dhry.c
1 /** Sanatised version of the dhrystone-2.1 test.
2
3     Modifications Michael Hope <michaelh@earthling.net>
4
5     This is derrived from the dhrystone-2.1.tar.gz tarball available
6     all over the net.  I sourced it from the Red Hat src rpm.
7
8     Modifications:
9     * Made it more ANSI compliant.
10     * Changed any array function arguments to pointers to make my 
11       compiler work.
12     * Removed malloc's for a couple of static arrays.
13     * Into one file.
14     * Proc_8 is a bit messy.  It originally took a 2 dim array, but
15       sdcc doesnt support this.  So the offsets are hard coded...
16
17     Notes:
18     * The comment at the start of Func_1 about the input being
19       H, R on the first call is wrong - Func_1 is first called
20       from Func_2 where the input is R, Y.  The test still succeeds.
21
22     References:
23     * http://www.netlib.org/performance/html/dhry.intro.html
24     * http://www.netlib.org/performance/html/dhry.data.col0.html
25
26     I couldnt find a copyright in the original - the most relevent
27     part follows:
28
29     A SPECIAL THANKS
30     I didn't write the DHRYSTONE benchmark.  Rheinhold Weicker did. He has
31     certainly provided us with a useful tool for benchmarking, and is
32     to be congratulated.
33
34     Rick Richardson
35     PC Research, Inc.
36     (201) 389-8963 (9-17 EST)
37     (201) 542-3734 (7-9,17-24 EST)
38     ...!uunet!pcrat!rick        (normal mail)
39     ...!uunet!pcrat!dry2        (results only)
40 */
41
42 #include "dhry.h"
43 #include <string.h>
44 /** For printf */
45 #include <stdio.h>
46
47 /** Returns the current device time in ticks.  Check HZ in the Makefile
48     as well - HZ ticks = 1 second.
49 */
50 unsigned _clock(void);
51
52 /** Set to one to print more messages about expected values etc. 
53  */
54 #define DEBUG   0
55
56 #if DEBUG
57 #define DPRINTF(_a)  printf _a
58 #else
59 #define DPRINTF(_a)
60 #endif
61
62 Rec_Pointer     Ptr_Glob,
63                 Next_Ptr_Glob;
64 int             Int_Glob;
65 Boolean         Bool_Glob;
66 char            Ch_1_Glob,
67                 Ch_2_Glob;
68 int             Arr_1_Glob [50];
69 int             Arr_2_Glob [50] [50];
70
71
72 /* Used instead of malloc() */
73 static Rec_Type _r[2];
74
75 void Proc_1 (REG Rec_Pointer Ptr_Val_Par);
76 void Proc_2 (One_Fifty *Int_Par_Ref);
77 void Proc_5 (void);
78 void Proc_4 (void);
79 void Proc_7 (One_Fifty Int_1_Par_Val, One_Fifty Int_2_Par_Val, One_Fifty *Int_Par_Ref);
80 void Proc_8 (int *Arr_1_Par_Ref, int *Arr_2_Par_Ref,
81              int Int_1_Par_Val, int Int_2_Par_Val);
82 void Proc_6 (Enumeration Enum_Val_Par, Enumeration *Enum_Ref_Par);
83 void Proc_3 (Rec_Pointer *Ptr_Ref_Par);
84 Enumeration Func_1 (Capital_Letter Ch_1_Par_Val, Capital_Letter Ch_2_Par_Val);
85 Boolean Func_2 (char *Str_1_Par_Ref, char *Str_2_Par_Ref);
86 Boolean Func_3 (Enumeration Enum_Par_Val);
87
88 #if SDCC
89 int _main(void) 
90 #else
91 int main(void)
92 #endif
93 {
94     One_Fifty       Int_1_Loc;
95     REG   One_Fifty       Int_2_Loc;
96     One_Fifty       Int_3_Loc;
97     REG   Capital_Letter Ch_Index;
98     Enumeration     Enum_Loc;
99     Str_30          Str_1_Loc;
100     Str_30          Str_2_Loc;
101     REG   int             Run_Index;
102     REG   int             Number_Of_Runs;
103     unsigned runTime;
104
105     printf("[dhry]\n");
106
107     Next_Ptr_Glob = &_r[0];
108     Ptr_Glob = &_r[1];
109
110     Ptr_Glob->Ptr_Comp                    = Next_Ptr_Glob;
111     Ptr_Glob->Discr                       = Ident_1;
112     Ptr_Glob->variant.var_1.Enum_Comp     = Ident_3;
113     Ptr_Glob->variant.var_1.Int_Comp      = 40;
114
115     strcpy (Ptr_Glob->variant.var_1.Str_Comp, 
116             "DHRYSTONE PROGRAM, SOME STRING");
117     strcpy (Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING");
118
119     Arr_2_Glob [8][7] = 10;
120
121     /* Was missing in published program. Without this statement,    */
122     /* Arr_2_Glob [8][7] would have an undefined value.             */
123     /* Warning: With 16-Bit processors and Number_Of_Runs > 32000,  */
124     /* overflow may occur for this array element.                   */
125
126     /* 32766 is the highest value for a 16 bitter */
127     Number_Of_Runs = 20000;
128
129     runTime = _clock();
130
131     /* Main test loop */
132     for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index) {
133         DPRINTF(("Run_Index = %d\n", Run_Index));
134         Proc_5();
135         Proc_4();
136         /* Ch_1_Glob == 'A', Ch_2_Glob == 'B', Bool_Glob == true */
137         DPRINTF(("Ch_1_Glob '%c' == 'A', Ch_2_Glob '%c' == 'B', Bool_Glob %d == 1\n", Ch_1_Glob, Ch_2_Glob, Bool_Glob));
138
139         Int_1_Loc = 2;
140         Int_2_Loc = 3;
141         strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING");
142         Enum_Loc = Ident_2;
143         Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc);
144         /* Bool_Glob == 1 */
145         DPRINTF(("Bool_Glob %d == 1, Int_1_Loc %d == 2, Int_2_Loc %d == 3\n", Bool_Glob, Int_1_Loc, Int_2_Loc));
146         while (Int_1_Loc < Int_2_Loc)  /* loop body executed once */
147             {
148                 DPRINTF(("m.1 Executes once.\n"));
149                 Int_3_Loc = 5 * Int_1_Loc - Int_2_Loc;
150                 /* Int_3_Loc == 7 */
151                 DPRINTF(("Int_3_Loc %d == 7\n", Int_3_Loc));
152                 DPRINTF(("Proc_7\n"));
153                 Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc);
154                 /* Int_3_Loc == 7 */
155                 Int_1_Loc += 1;
156             } /* while */
157         DPRINTF(("m.2 Check above executed once.\n"));
158         /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */
159         DPRINTF(("Int_1_Loc %d == 3, Int_2_Loc %d == 3, Int_3_Loc %d == 7\n",
160                Int_1_Loc, Int_2_Loc, Int_3_Loc));
161
162         DPRINTF(("Proc_8\n"));
163         Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc);
164         /* Int_Glob == 5 */
165         DPRINTF(("Int_Glob %d == 5\n", Int_Glob));
166         DPRINTF(("Proc_1\n"));
167         Proc_1 (Ptr_Glob);
168         for (Ch_Index = 'A'; Ch_Index <= Ch_2_Glob; ++Ch_Index)
169             /* loop body executed twice */
170             {
171                 DPRINTF(("Func_1\n"));
172                 if (Enum_Loc == Func_1 (Ch_Index, 'C'))
173                     /* then, not executed */
174                     {
175                         DPRINTF(("Proc_6\n"));
176                         Proc_6 (Ident_1, &Enum_Loc);
177                         strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 3'RD STRING");
178                         Int_2_Loc = Run_Index;
179                         Int_Glob = Run_Index;
180                     }
181             }
182         /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */
183         DPRINTF(("Int_1_Loc %d == 3, Int_2_Loc %d == 3, Int_3_Loc %d == 7\n",
184                Int_1_Loc, Int_2_Loc, Int_3_Loc));
185
186         Int_2_Loc = Int_2_Loc * Int_1_Loc;
187         Int_1_Loc = Int_2_Loc / Int_3_Loc;
188         Int_2_Loc = 7 * (Int_2_Loc - Int_3_Loc) - Int_1_Loc;
189         /* Int_1_Loc == 1, Int_2_Loc == 13, Int_3_Loc == 7 */
190         DPRINTF(("Int_1_Loc %d == 1, Int_2_Loc %d == 13, Int_3_Loc %d == 7\n",
191                Int_1_Loc, Int_2_Loc, Int_3_Loc));
192         DPRINTF(("Proc_2\n"));
193         Proc_2 (&Int_1_Loc);
194         /* Int_1_Loc == 5 */
195         DPRINTF(("Int_1_Loc %d == 5\n", Int_1_Loc));
196         DPRINTF(("Looping.\n"));
197     } /* loop "for Run_Index" */
198
199     printf("Run_Index = %d\n", Run_Index);
200
201     runTime = _clock() - runTime;
202
203     printf ("Execution ends\n");
204     printf ("\n");
205     printf ("Final values of the variables used in the benchmark:\n");
206     printf ("\n");
207     printf ("Int_Glob:            %d\n", Int_Glob);
208     printf ("        should be:   %d\n", (int)5);
209     printf ("Bool_Glob:           %d\n", Bool_Glob);
210     printf ("        should be:   %d\n", (int)1);
211     printf ("Ch_1_Glob:           %c\n", Ch_1_Glob);
212     printf ("        should be:   %c\n", 'A');
213     printf ("Ch_2_Glob:           %c\n", Ch_2_Glob);
214     printf ("        should be:   %c\n", 'B');
215     printf ("Arr_1_Glob[8]:       %d\n", Arr_1_Glob[8]);
216     printf ("        should be:   %d\n", (int)7);
217     printf ("Arr_2_Glob[8][7]:    %d\n", Arr_2_Glob[8][7]);
218     printf ("        should be:   Number_Of_Runs + 10\n");
219     printf ("Ptr_Glob->\n");
220     printf ("  Ptr_Comp:          %d\n", (int) Ptr_Glob->Ptr_Comp);
221     printf ("        should be:   (implementation-dependent)\n");
222     printf ("  Discr:             %d\n", (int)Ptr_Glob->Discr);
223     printf ("        should be:   %d\n", (int)0);
224     printf ("  Enum_Comp:         %d\n", (int)Ptr_Glob->variant.var_1.Enum_Comp);
225     printf ("        should be:   %d\n", (int)2);
226     printf ("  Int_Comp:          %d\n", (int)Ptr_Glob->variant.var_1.Int_Comp);
227     printf ("        should be:   %d\n", (int)17);
228     printf ("  Str_Comp:          %s\n", (char *)Ptr_Glob->variant.var_1.Str_Comp);
229     printf ("        should be:   DHRYSTONE PROGRAM, SOME STRING\n");
230     printf ("Next_Ptr_Glob->\n");
231     printf ("  Ptr_Comp:          %d\n", (int) Next_Ptr_Glob->Ptr_Comp);
232     printf ("        should be:   (implementation-dependent), same as above\n");
233     printf ("  Discr:             %d\n", Next_Ptr_Glob->Discr);
234     printf ("        should be:   %d\n", (int)0);
235     printf ("  Enum_Comp:         %d\n", Next_Ptr_Glob->variant.var_1.Enum_Comp);
236     printf ("        should be:   %d\n", (int)1);
237     printf ("  Int_Comp:          %d\n", Next_Ptr_Glob->variant.var_1.Int_Comp);
238     printf ("        should be:   %d\n", (int)18);
239     printf ("  Str_Comp:          %s\n",
240             Next_Ptr_Glob->variant.var_1.Str_Comp);
241     printf ("        should be:   DHRYSTONE PROGRAM, SOME STRING\n");
242     printf ("Int_1_Loc:           %d\n", Int_1_Loc);
243     printf ("        should be:   %d\n", (int)5);
244     printf ("Int_2_Loc:           %d\n", Int_2_Loc);
245     printf ("        should be:   %d\n", (int)13);
246     printf ("Int_3_Loc:           %d\n", Int_3_Loc);
247     printf ("        should be:   %d\n", (int)7);
248     printf ("Enum_Loc:            %d\n", Enum_Loc);
249     printf ("        should be:   %d\n", (int)1);
250     printf ("Str_1_Loc:           %s\n", Str_1_Loc);
251     printf ("        should be:   DHRYSTONE PROGRAM, 1'ST STRING\n");
252     printf ("Str_2_Loc:           %s\n", Str_2_Loc);
253     printf ("        should be:   DHRYSTONE PROGRAM, 2'ND STRING\n");
254     printf ("\n");
255
256     printf("Time: %u ticks\n", runTime);
257     printf("Dhrystones/s = %u\n", Number_Of_Runs / (runTime/HZ));
258     printf("MIPS = d/s/1757 = (sigh, need floats...)\n");
259 }
260
261 void Proc_1 (REG Rec_Pointer Ptr_Val_Par)
262 /* executed once */
263 {
264     REG Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp;  
265     /* == Ptr_Glob_Next */
266     /* Local variable, initialized with Ptr_Val_Par->Ptr_Comp,    */
267     /* corresponds to "rename" in Ada, "with" in Pascal           */
268   
269     structassign (*Ptr_Val_Par->Ptr_Comp, *Ptr_Glob); 
270     Ptr_Val_Par->variant.var_1.Int_Comp = 5;
271     Next_Record->variant.var_1.Int_Comp 
272         = Ptr_Val_Par->variant.var_1.Int_Comp;
273     Next_Record->Ptr_Comp = Ptr_Val_Par->Ptr_Comp;
274     Proc_3 (&Next_Record->Ptr_Comp);
275     /* Ptr_Val_Par->Ptr_Comp->Ptr_Comp 
276        == Ptr_Glob->Ptr_Comp */
277     if (Next_Record->Discr == Ident_1)
278         /* then, executed */
279         {
280             Next_Record->variant.var_1.Int_Comp = 6;
281             Proc_6 (Ptr_Val_Par->variant.var_1.Enum_Comp, 
282                     &Next_Record->variant.var_1.Enum_Comp);
283             Next_Record->Ptr_Comp = Ptr_Glob->Ptr_Comp;
284             Proc_7 (Next_Record->variant.var_1.Int_Comp, 10, 
285                     &Next_Record->variant.var_1.Int_Comp);
286         }
287     else /* not executed */
288         structassign (*Ptr_Val_Par, *Ptr_Val_Par->Ptr_Comp);
289 } /* Proc_1 */
290
291
292 void Proc_2 (One_Fifty *Int_Par_Ref)
293     /******************/
294     /* executed once */
295     /* *Int_Par_Ref == 1, becomes 4 */
296 {
297     One_Fifty  Int_Loc;  
298     Enumeration   Enum_Loc;
299
300     DPRINTF(("-> Proc_2\n"));
301
302     Int_Loc = *Int_Par_Ref + 10;
303     do {
304         DPRINTF(("1\n"));
305         /* executed once */
306         if (Ch_1_Glob == 'A')
307             /* then, executed */
308             {
309                 DPRINTF(("2\n"));
310                 Int_Loc -= 1;
311                 *Int_Par_Ref = Int_Loc - Int_Glob;
312                 Enum_Loc = Ident_1;
313             } /* if */
314         DPRINTF(("3\n"));
315     } while (Enum_Loc != Ident_1); /* true */
316     DPRINTF(("Proc_2 done.\n"));
317 } /* Proc_2 */
318
319
320 void Proc_3 (Rec_Pointer *Ptr_Ref_Par)
321     /******************/
322     /* executed once */
323     /* Ptr_Ref_Par becomes Ptr_Glob */
324 {
325     if (Ptr_Glob != Null)
326         /* then, executed */
327         *Ptr_Ref_Par = Ptr_Glob->Ptr_Comp;
328     Proc_7 (10, Int_Glob, &Ptr_Glob->variant.var_1.Int_Comp);
329 } /* Proc_3 */
330
331 void Proc_4 (void) /* without parameters */
332     /*******/
333     /* executed once */
334 {
335     Boolean Bool_Loc;
336
337     DPRINTF(("-> Proc_4\n"));
338     Bool_Loc = Ch_1_Glob == 'A';
339     Bool_Glob = Bool_Loc | Bool_Glob;
340     Ch_2_Glob = 'B';
341     DPRINTF(("Expect Ch_1_Glob '%c' == 'A'\n", (char)Ch_1_Glob));
342     DPRINTF(("       Ch_2_Glob '%c' == 'B'\n", (char)Ch_2_Glob));
343     DPRINTF(("       Bool_Loc %d == 1\n", (unsigned)Bool_Loc));
344     DPRINTF(("       Bool_Glob %d == 1\n", (unsigned)Bool_Glob));
345 } /* Proc_4 */
346
347
348 void Proc_5 () /* without parameters */
349     /*******/
350     /* executed once */
351 {
352     Ch_1_Glob = 'A';
353     Bool_Glob = false;
354 } /* Proc_5 */
355
356 void Proc_6 (Enumeration Enum_Val_Par, Enumeration *Enum_Ref_Par)
357     /*********************************/
358     /* executed once */
359     /* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */
360
361 {
362     *Enum_Ref_Par = Enum_Val_Par;
363     if (! Func_3 (Enum_Val_Par))
364         /* then, not executed */
365         *Enum_Ref_Par = Ident_4;
366     switch (Enum_Val_Par)
367         {
368         case Ident_1: 
369             *Enum_Ref_Par = Ident_1;
370             break;
371         case Ident_2: 
372             if (Int_Glob > 100)
373                 /* then */
374                 *Enum_Ref_Par = Ident_1;
375             else *Enum_Ref_Par = Ident_4;
376             break;
377         case Ident_3: /* executed */
378             *Enum_Ref_Par = Ident_2;
379             break;
380         case Ident_4: break;
381         case Ident_5: 
382             *Enum_Ref_Par = Ident_3;
383             break;
384         } /* switch */
385 } /* Proc_6 */
386
387
388 /*************************************************/
389 /* executed three times                                         */
390 /* first call:      Ch_1_Par_Val == 'H', Ch_2_Par_Val == 'R'    */
391 /* second call:     Ch_1_Par_Val == 'A', Ch_2_Par_Val == 'C'    */
392 /* third call:      Ch_1_Par_Val == 'B', Ch_2_Par_Val == 'C'    */
393 Enumeration Func_1 (Capital_Letter Ch_1_Par_Val, Capital_Letter Ch_2_Par_Val)
394 {
395     Capital_Letter        Ch_1_Loc;
396     Capital_Letter        Ch_2_Loc;
397
398     DPRINTF(("-> Func_1\n"));
399     DPRINTF(("  Inputs: Ch_1_Par_Val '%c' == { R, A, B }\n", (char)Ch_1_Par_Val));
400     DPRINTF(("          Ch_2_Par_Val '%c' == { Y, C, C }\n", (char)Ch_2_Par_Val));
401
402     Ch_1_Loc = Ch_1_Par_Val;
403     Ch_2_Loc = Ch_1_Loc;
404     if (Ch_2_Loc != Ch_2_Par_Val) {
405         /* then, executed */
406         return (Ident_1);
407     }
408     else  /* not executed */
409         {
410             Ch_1_Glob = Ch_1_Loc;
411             return (Ident_2);
412         }
413 } /* Func_1 */
414
415 Boolean Func_3 (Enumeration Enum_Par_Val)
416     /***************************/
417     /* executed once        */
418     /* Enum_Par_Val == Ident_3 */
419 {
420     Enumeration Enum_Loc;
421
422     Enum_Loc = Enum_Par_Val;
423     if (Enum_Loc == Ident_3)
424         /* then, executed */
425         return (true);
426     else /* not executed */
427         return (false);
428 } /* Func_3 */
429
430 void Proc_7 (One_Fifty Int_1_Par_Val, One_Fifty Int_2_Par_Val, One_Fifty *Int_Par_Ref)
431     /**********************************************/
432     /* executed three times                                      */ 
433     /* first call:      Int_1_Par_Val == 2, Int_2_Par_Val == 3,  */
434     /*                  Int_Par_Ref becomes 7                    */
435     /* second call:     Int_1_Par_Val == 10, Int_2_Par_Val == 5, */
436     /*                  Int_Par_Ref becomes 17                   */
437     /* third call:      Int_1_Par_Val == 6, Int_2_Par_Val == 10, */
438     /*                  Int_Par_Ref becomes 18                   */
439 {
440     One_Fifty Int_Loc;
441
442     Int_Loc = Int_1_Par_Val + 2;
443     *Int_Par_Ref = Int_2_Par_Val + Int_Loc;
444 } /* Proc_7 */
445
446 /*void Proc_8 (Arr_1_Dim Arr_1_Par_Ref, Arr_2_Dim Arr_2_Par_Ref, 
447   int Int_1_Par_Val, int Int_2_Par_Val)*/
448 void Proc_8 (int *Arr_1_Par_Ref, int *Arr_2_Par_Ref,
449              int Int_1_Par_Val, int Int_2_Par_Val)
450 {
451     REG One_Fifty Int_Index;
452     REG One_Fifty Int_Loc;
453
454     DPRINTF(("-> Proc_8\n"));
455     Int_Loc = Int_1_Par_Val + 5;
456     Arr_1_Par_Ref [Int_Loc] = Int_2_Par_Val;
457     DPRINTF(("Int_Loc %d == 8\n", Int_Loc));
458
459     Arr_1_Par_Ref [Int_Loc+1] = Arr_1_Par_Ref [Int_Loc];
460     Arr_1_Par_Ref [Int_Loc+30] = Int_Loc;
461     for (Int_Index = Int_Loc; Int_Index <= Int_Loc+1; ++Int_Index)
462         Arr_2_Par_Ref [Int_Loc*50 + Int_Index] = Int_Loc;
463     Arr_2_Par_Ref [Int_Loc * 50 + Int_Loc-1] += 1;
464     Arr_2_Par_Ref [(Int_Loc+20 *50) + Int_Loc] = Arr_1_Par_Ref [Int_Loc];
465     Int_Glob = 5;
466 }
467
468 /*********************************************************************/
469 /* executed once      */
470 /* Int_Par_Val_1 == 3 */
471 /* Int_Par_Val_2 == 7 */
472 Boolean Func_2 (char *Str_1_Par_Ref, char *Str_2_Par_Ref)
473     /*************************************************/
474     /* executed once */
475     /* Str_1_Par_Ref == "DHRYSTONE PROGRAM, 1'ST STRING" */
476     /* Str_2_Par_Ref == "DHRYSTONE PROGRAM, 2'ND STRING" */
477 {
478     REG One_Thirty        Int_Loc;
479     Capital_Letter    Ch_Loc;
480
481     DPRINTF(("-> Func_2\n"));
482     DPRINTF(("  Inputs Str_1_Par_Ref \"%s\" = \"DHRYSTONE PROGRAM, 1'ST STRING\"\n", Str_1_Par_Ref));
483     DPRINTF(("         Str_2_Par_Ref \"%s\" = \"DHRYSTONE PROGRAM, 2'ND STRING\"\n", Str_2_Par_Ref));
484
485     Int_Loc = 2;
486
487     while (Int_Loc <= 2) {
488         if (Func_1 (Str_1_Par_Ref[Int_Loc],
489                     Str_2_Par_Ref[Int_Loc+1]) == Ident_1)
490             /* then, executed */
491             {
492                 DPRINTF(("  2.3 Then OK.\n"));
493                 Ch_Loc = 'A';
494                 Int_Loc += 1;
495             } /* if, while */
496         else {
497             DPRINTF(("  2.2 Error.\n"));
498         }
499     }
500     if (Ch_Loc >= 'W' && Ch_Loc < 'Z') {
501         /* then, not executed */
502         DPRINTF((" 2.4 Error\n"));
503         Int_Loc = 7;
504     }
505     if (Ch_Loc == 'R') {
506         /* then, not executed */
507         DPRINTF((" 2.5 Error\n"));
508         return (true);
509     }
510     else /* executed */
511         {
512             DPRINTF(("Str_1_Par_Ref = \"%s\", Str_2_Par_Ref = \"%s\"\n",
513                    Str_1_Par_Ref, Str_2_Par_Ref));
514             if (strcmp (Str_1_Par_Ref, Str_2_Par_Ref) > 0)
515                 /* then, not executed */
516                 {
517                     DPRINTF((" 2.5 Error diff=%d\n", strcmp(Str_1_Par_Ref, Str_2_Par_Ref)));
518                     Int_Loc += 7;
519                     Int_Glob = Int_Loc;
520                     return (true);
521                 }
522             else {
523                 /* executed */
524                 DPRINTF((" 2.6 OK\n"));
525                 return (false);
526             }
527         } /* if Ch_Loc */
528 } /* Func_2 */