#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdint.h>
static char *btrieveFileName = (char *)"primes.btr";
#define MIN_X 1
#define MAX_X 255
{
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
leave:
return status;
}
{
{
goto leave;
}
leave:
return status;
}
{
uint32_t key;
int i;
int j;
uint32_t record;
for (i = MIN_X; i <= MAX_X; i++)
{
record = (uint32_t)i;
{
goto leave;
}
}
for (j = 2; j <= (MAX_X / 2); j++)
{
for (i = j * 2; i <= MAX_X; i += j)
{
key = (uint32_t)i;
{
continue;
}
{
goto leave;
}
}
}
leave:
return status;
}
{
{
goto leave;
}
leave:
return status;
}
{
{
goto leave;
}
leave:
return status;
}
retrieveRecord(
BtrieveFile *btrieveFile, uint32_t *key)
{
{
printf("%u is prime.\n", *key);
goto leave;
}
{
printf("%u is not prime.\n", *key);
goto leave;
}
leave:
return status;
}
int
main(int argc, char *argv[])
{
static const char *usage = "Usage: %s <uint8_value greater than zero>\n";
uint32_t key;
uint64_t integerValue;
if (argc != 2)
{
printf(usage, argv[0]);
goto leave;
}
integerValue = atoi(argv[1]);
if ((integerValue < MIN_X) || (integerValue > MAX_X))
{
printf(usage, argv[0]);
goto leave;
}
key = (uint32_t)integerValue;
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
{
goto leave;
}
leave:
return 0;
return 1;
}