1999-04-16 03:35:26 +02:00
|
|
|
/* Tests regarding examination of prologues. */
|
|
|
|
|
1999-06-28 18:06:02 +02:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
inner (int z)
|
|
|
|
#else
|
1999-04-16 03:35:26 +02:00
|
|
|
int
|
|
|
|
inner (z)
|
|
|
|
int z;
|
1999-06-28 18:06:02 +02:00
|
|
|
#endif
|
1999-04-16 03:35:26 +02:00
|
|
|
{
|
|
|
|
return 2 * z;
|
|
|
|
}
|
|
|
|
|
1999-06-28 18:06:02 +02:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
middle (int x)
|
|
|
|
#else
|
1999-04-16 03:35:26 +02:00
|
|
|
int
|
|
|
|
middle (x)
|
|
|
|
int x;
|
1999-06-28 18:06:02 +02:00
|
|
|
#endif
|
1999-04-16 03:35:26 +02:00
|
|
|
{
|
|
|
|
if (x == 0)
|
|
|
|
return inner (5);
|
|
|
|
else
|
|
|
|
return inner (6);
|
|
|
|
}
|
|
|
|
|
1999-06-28 18:06:02 +02:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
top (int y)
|
|
|
|
#else
|
1999-04-16 03:35:26 +02:00
|
|
|
int
|
|
|
|
top (y)
|
|
|
|
int y;
|
1999-06-28 18:06:02 +02:00
|
|
|
#endif
|
1999-04-16 03:35:26 +02:00
|
|
|
{
|
|
|
|
return middle (y + 1);
|
|
|
|
}
|
|
|
|
|
1999-06-28 18:06:02 +02:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
int
|
|
|
|
main (int argc, char **argv)
|
|
|
|
#else
|
1999-04-16 03:35:26 +02:00
|
|
|
int
|
|
|
|
main (argc, argv)
|
1999-06-28 18:06:02 +02:00
|
|
|
int argc;
|
|
|
|
char **argv;
|
|
|
|
#endif
|
1999-04-16 03:35:26 +02:00
|
|
|
{
|
|
|
|
#ifdef usestubs
|
|
|
|
set_debug_traps();
|
|
|
|
breakpoint();
|
|
|
|
#endif
|
|
|
|
return top (-1) + top (1);
|
|
|
|
}
|