Commit 6b98d2de authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

removed unused test files

parent f0338ce6
========== tables ==========
// --- GLOBAL TYPEDEFS ---
struct Str_5{
const char*key_6;
struct Str_5*next_7;
};
typedef struct _file_s_0 FILE_0;
// --- FUNCTION DECLARATIONS ---
void argreverttest_101(int,char**);
_Bool empty_32(struct Str_5**);
int fib_3(int);
void fibtest_123();
const char*front_37(struct Str_5**);
struct Str_5*get_str_15();
int main_140(int,char**);
void*memset_0(void*,int,int);
void pointerarithmeticstest_81();
void pop_front_42(struct Str_5**);
int printf_0(const char*,...);
void push_front_23(struct Str_5**,const char*);
int scanf_0(const char*,...);
int sprintf_0(char*,const char*,...);
int sscanf_0(const char*,const char*,...);
void stringtest_59();
_Bool test_135();
// --- GLOBAL VARIABLES ---
struct Str_5 array_12[1000];
int array_end_13;
struct Str_5*root_10;
_Bool status_133;
// --- FUNCTION DEFINITIONS ---
void argreverttest_101(int argc_101,char**argv_101){
int i_104;
const char*z_103;
{
}
{
}
}
_Bool empty_32(struct Str_5**rootp_32){
}
int fib_3(int x_47){
int s_49;
{
}
}
void fibtest_123(void){
int n_125;
int s_126;
}
const char*front_37(struct Str_5**rootp_37){
}
struct Str_5*get_str_15(void){
struct Str_5*p_17;
}
int main_140(int argc_140,char**argv_140){
{
}
}
void pointerarithmeticstest_81(void){
char arr_83[27];
char ch_86;
char*e_85;
char*p_84;
{
}
}
void pop_front_42(struct Str_5**rootp_42){
}
void push_front_23(struct Str_5**rootp_23,const char*key_23){
struct Str_5*p_25;
}
void stringtest_59(void){
char arr_61[100];
int i_62;
char t_63[40];
}
_Bool test_135(void){
}
========== cecko3 done ==========
========== tables ==========
// --- ENUMS ---
// --- STRUCTS ---
struct Str{
const char*key;
struct Str*next;
};
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
void argreverttest(int,char**);
_Bool empty(struct Str**);
int fib(int);
void fibtest();
const char*front(struct Str**);
struct Str*get_str();
int main(int,char**);
void*memset(void*,int,int);
void pointerarithmeticstest();
void pop_front(struct Str**);
int printf(const char*,...);
void push_front(struct Str**,const char*);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
void stringtest();
_Bool test();
// --- GLOBAL VARIABLES ---
struct Str array[1000];
int array_end;
struct Str*root;
_Bool status;
// --- FUNCTION DEFINITIONS ---
void argreverttest(int argc,char**argv){
int i;
const char*z;
}
_Bool empty(struct Str**rootp){
}
int fib(int x){
int s;
}
void fibtest(){
int n;
int s;
}
const char*front(struct Str**rootp){
}
struct Str*get_str(){
struct Str*p;
}
int main(int argc,char**argv){
}
void pointerarithmeticstest(){
char arr[27];
char ch;
char*e;
char*p;
}
void pop_front(struct Str**rootp){
}
void push_front(struct Str**rootp,const char*key){
struct Str*p;
}
void stringtest(){
char arr[100];
int i;
char t[40];
}
_Bool test(){
}
========== starting main() ==========
This is test1.c main()
... argreverttest ...
sizeof(struct Str) = 16
argv[0] is "test1.c"
popped "test1.c"
... fibtest ...
fib(20) returned 6765
... stringtest ...
sprintf: 1 text
sscanf: 1 text
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
... pointerarithmeticstest ...
ABCDEFGHIJKLMNOPQRSTUVWXYZ
========== main() returned 0 ==========
========== cecko4 done ==========
========== tables ==========
// --- ENUMS ---
// --- STRUCTS ---
struct Str{
const char*key;
struct Str*next;
};
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
void argreverttest(int,char**);
_Bool empty(struct Str**);
int fib(int);
void fibtest();
const char*front(struct Str**);
struct Str*get_str();
int main(int,char**);
void*memset(void*,int,int);
void pointerarithmeticstest();
void pop_front(struct Str**);
int printf(const char*,...);
void push_front(struct Str**,const char*);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
void stringtest();
_Bool test();
// --- GLOBAL VARIABLES ---
struct Str array[1000];
int array_end;
struct Str*root;
_Bool status;
// --- FUNCTION DEFINITIONS ---
void argreverttest(int argc,char**argv){
int i;
const char*z;
}
_Bool empty(struct Str**rootp){
}
int fib(int x){
int s;
}
void fibtest(){
int n;
int s;
}
const char*front(struct Str**rootp){
}
struct Str*get_str(){
struct Str*p;
}
int main(int argc,char**argv){
}
void pointerarithmeticstest(){
char arr[27];
char ch;
char*e;
char*p;
}
void pop_front(struct Str**rootp){
}
void push_front(struct Str**rootp,const char*key){
struct Str*p;
}
void stringtest(){
char arr[100];
int i;
char t[40];
}
_Bool test(){
}
========== starting main() ==========
This is test1.c main()
... argreverttest ...
sizeof(struct Str) = 16
argv[0] is "test1.c"
popped "test1.c"
... fibtest ...
fib(20) returned 6765
... stringtest ...
sprintf: 1 text
sscanf: 1 text
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
... pointerarithmeticstest ...
ABCDEFGHIJKLMNOPQRSTUVWXYZ
========== main() returned 0 ==========
========== cecko5 done ==========
// fibbonacci
FILE* myout;
typedef enum En ent;
ent my_var;
enum En {
ALPHA,
BETA = 729,
GAMMA
};
ent test_enum_internal(ent arg)
{
ent tmp;
tmp = my_var;
my_var = arg;
return tmp;
}
void test_enum(void)
{
ent x;
printf("... test_enum ...\n");
x = test_enum_internal(BETA);
printf("x=%d, my_var=%d\n", x, my_var);
}
int fib(int p);
typedef struct Str* str_ptr;
struct Str {
const char* key;
str_ptr next;
};
str_ptr root;
struct Str array[1000];
int array_end;
str_ptr get_str(void)
{
str_ptr p;
p = &array[array_end];
array_end = array_end + 1;
return p;
}
void push_front(str_ptr* rootp, const char* key)
{
str_ptr p;
p = get_str();
(*p).key = key;
(*p).next = *rootp;
*rootp = p;
}
_Bool empty(str_ptr* rootp)
{
return !*rootp;
}
const char* front(str_ptr* rootp)
{
return (**rootp).key;
}
void pop_front(str_ptr* rootp)
{
*rootp = (**rootp).next;
}
int fib(int x)
{
int s;
if (x <= 2)
return 1;
else
{
s = fib(x - 1) + fib(x - 2);
return s;
}
}
void stringtest(void)
{
char arr[100];
int i;
char t[40];
printf("... stringtest ...\n");
sprintf( arr, "%d %s", 1, "text");
printf("sprintf: %s\n", arr);
i = -1;
t[0] = 0;
sscanf( arr, "%d%s", &i, t);
printf("sscanf: %d %s\n", i, t);
/*
printf("Enter a number\n");
scanf("%d", &i);
printf("The number was %d\n", i);
*/
memset(t, 'X', 39);
t[39] = 0;
printf("%s\n", t);
}
void pointerarithmeticstest(void)
{
char arr[27];
char* p;
char* e;
char ch;
printf("... pointerarithmeticstest ...\n");
ch = 'A';
p = arr;
e = arr + 26;
while (p != e)
{
int locvar;
locvar = ch + 1;
*p = ch;
ch = locvar;
p = p + 1;
}
*p = 0;
printf("%s\n", arr);
}
void argreverttest(int argc, char ** argv)
{
const char* z;
int i;
printf("... argreverttest ...\n");
printf("sizeof(struct Str) = %d\n", sizeof(struct Str));
i = 0;
while (i < argc)
{
z = argv[i];
printf("argv[%d] is \"%s\"\n", i, z);
push_front(&root, z);
i = i + 1;
}
while (!empty(&root))
{
z = front(&root);
pop_front(&root);
printf("popped \"%s\"\n", z);
}
}
void fibtest(void)
{
int n;
int s;
printf("... fibtest ...\n");
n = 20;
s = fib(n);
printf("fib(%d) returned %d\n", n, s);
}
_Bool status;
_Bool test(void)
{
return status;
}
int main(int argc, char** argv)
{
status = 0;
printf("This is test1.c main()\n");
argreverttest(argc, argv);
test_enum();
fibtest();
stringtest();
pointerarithmeticstest();
if (test())
{
printf("Going to die\n");
printf("DEATH=%s\n", 999999999);
}
return 0;
}
// /* this should not start multi-line comment
/*
/*
testing nesting
*/
*/
========== tables ==========
// --- GLOBAL TYPEDEFS ---
enum En_9{
ALPHA_10=0,
BETA_11=729,
GAMMA_12=730
};
struct Str_35{
const char*key_36;
struct Str_35*next_37;
};
typedef struct _file_s_0 FILE_0;
typedef enum En_9 ent_5;
typedef struct Str_35*str_ptr_33;
// --- FUNCTION DECLARATIONS ---
void argreverttest_133(int,char**);
_Bool empty_62(struct Str_35**);
int fib_31(int);
void fibtest_155();
const char*front_67(struct Str_35**);
struct Str_35*get_str_45();
int main_172(int,char**);
void*memset_0(void*,int,int);
void pointerarithmeticstest_111();
void pop_front_72(struct Str_35**);
int printf_0(const char*,...);
void push_front_53(struct Str_35**,const char*);
int scanf_0(const char*,...);
int sprintf_0(char*,const char*,...);
int sscanf_0(const char*,const char*,...);
void stringtest_89();
_Bool test_167();
void test_enum_23();
enum En_9 test_enum_internal_15(enum En_9);
// --- GLOBAL VARIABLES ---
struct Str_35 array_42[1000];
int array_end_43;
enum En_9 my_var_7;
struct _file_s_0*myout_3;
struct Str_35*root_40;
_Bool status_165;
// --- FUNCTION DEFINITIONS ---
void argreverttest_133(int argc_133,char**argv_133){
int i_136;
const char*z_135;
{
}
{
}
}
_Bool empty_62(struct Str_35**rootp_62){
}
int fib_31(int x_77){
int s_79;
{
}
}
void fibtest_155(void){
int n_157;
int s_158;
}
const char*front_67(struct Str_35**rootp_67){
}
struct Str_35*get_str_45(void){
struct Str_35*p_47;
}
int main_172(int argc_172,char**argv_172){
{
}
}
void pointerarithmeticstest_111(void){
char arr_113[27];
char ch_116;
char*e_115;
char*p_114;
{
int locvar_123;
}
}
void pop_front_72(struct Str_35**rootp_72){
}
void push_front_53(struct Str_35**rootp_53,const char*key_53){
struct Str_35*p_55;
}
void stringtest_89(void){
char arr_91[100];
int i_92;
char t_93[40];
}
_Bool test_167(void){
}
void test_enum_23(void){
enum En_9 x_25;
}
enum En_9 test_enum_internal_15(enum En_9 arg_15){
enum En_9 tmp_17;
}
========== cecko3 done ==========
========== tables ==========
// --- ENUMS ---
enum En{
ALPHA=0,
BETA=729,
GAMMA=730
};
// --- STRUCTS ---
struct Str{
const char*key;
struct Str*next;
};
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
typedef enum En ent;
typedef struct Str*str_ptr;
// --- FUNCTION DECLARATIONS ---
void argreverttest(int,char**);
_Bool empty(struct Str**);
int fib(int);
void fibtest();
const char*front(struct Str**);
struct Str*get_str();
int main(int,char**);
void*memset(void*,int,int);
void pointerarithmeticstest();
void pop_front(struct Str**);
int printf(const char*,...);
void push_front(struct Str**,const char*);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
void stringtest();
_Bool test();
void test_enum();
enum En test_enum_internal(enum En);
// --- GLOBAL VARIABLES ---
struct Str array[1000];
int array_end;
enum En my_var;
struct _file_s*myout;
struct Str*root;
_Bool status;
// --- FUNCTION DEFINITIONS ---
void argreverttest(int argc,char**argv){
int i;
const char*z;
}
_Bool empty(struct Str**rootp){
}
int fib(int x){
int s;
}
void fibtest(){
int n;
int s;
}
const char*front(struct Str**rootp){
}
struct Str*get_str(){
struct Str*p;
}
int main(int argc,char**argv){
}
void pointerarithmeticstest(){
char arr[27];
char ch;
char*e;
char*p;
}
void pop_front(struct Str**rootp){
}
void push_front(struct Str**rootp,const char*key){
struct Str*p;
}
void stringtest(){
char arr[100];
int i;
char t[40];
}
_Bool test(){
}
void test_enum(){
enum En x;
}
enum En test_enum_internal(enum En arg){
enum En tmp;
}
========== starting main() ==========
This is test1.c main()
... argreverttest ...
sizeof(struct Str) = 16
argv[0] is "test2typedef.c"
popped "test2typedef.c"
... test_enum ...
x=0, my_var=729
... fibtest ...
fib(20) returned 6765
... stringtest ...
sprintf: 1 text