source
stringlengths
23
1.83k
target
stringlengths
42
1.55k
void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}if (strncmp(PASSWORD, data, strlen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}
static void main(){char * data;char data_buf[100]="";data=data_buf;data=PASSWORD;if (strncmp(PASSWORD, data, strlen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}
void main_source(wchar_t * &data);void main(){wchar_t * data;data=NULL;main_source(data);delete [] data;}void main_source(wchar_t * &data){data=new wchar_t;}
static void main(){wchar_t * data;data=NULL;main_source(data);delete [] data;}void main_source(wchar_t * &data){data=new wchar_t[100];}
void main_sink(void * void_data_ptr);void main(){int data;data=-1;fscanf (stdin, "%d", &data);main_sink(&data);}void main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);{size_t a,i;int *b;b=(int*)new char[a];for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);delete [] b;}}
void main_sink(void * void_data_ptr);static void main(){int data;data=-1;data=20;main_sink(&data);}void main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);{size_t a,i;int *b;b=(int*)new char[a];for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);delete [] b;}}
void main_sink(char * data);void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;}func_ptr(data);}void main_sink(char * data){{char src[100];strcpy(data, src);printLine(data);}}
void main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;}func_ptr(data);}void main_sink(char * data){{char src[100];strcpy(data, src);printLine(data);}}
static void main_sink(){wchar_t * data=main_data;{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);delete [] data;}}void main(){wchar_t * data;data=NULL;data=new wchar_t[50];main_data=data;main_sink();}
static void main_sink(){wchar_t * data=main_data;{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);delete [] data;}}static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];main_data=data;main_sink();}
void b_main_sink(_struct_type my_struct);void _main(){wchar_t * data;_struct_type my_struct;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}
void b_main_sink(_struct_type my_struct);static void main(){wchar_t * data;_struct_type my_struct;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}
void _main(){long long * data;_union_type my_union;data=NULL;data=(long long *)calloc(100, sizeof(long long));data[0]=5L;printLongLongLine(data[0]);my_union.a=data;{long long * data=my_union.b;}}
static void main(){long long * data;_union_type my_union;data=NULL;data=(long long *)calloc(100, sizeof(long long));data[0]=5L;printLongLongLine(data[0]);my_union.a=data;{long long * data=my_union.b;free(data);}}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}
static void main_sink(twoints * data){delete [] data;}void main(){twoints * data;void (*func_ptr) (twoints *)=main_sink;data=NULL;data=new twoints[100];delete [] data;func_ptr(data);}
static void main_sink(twoints * data){delete [] data;}static void main(){twoints * data;void (*func_ptr) (twoints *)=main_sink;data=NULL;data=new twoints[100];func_ptr(data);}
void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}{int data_copy=data;int data=data_copy;assert(data > ASSERT_VALUE);}}
static void main(){int data;data=-1;data=ASSERT_VALUE+1;{int data_copy=data;int data=data_copy;assert(data > ASSERT_VALUE);}}
void b_main_sink(int data);void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void c_main_sink(int data){{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}
static void main(){int data;data=-1;data=20;b_main_sink(data);}void b_main_sink(int data){c_main_sink(data);}void c_main_sink(int data){{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}
void main(){twoints * data;union_type my_union;data=NULL;data=NULL;data=(twoints *)realloc(data, 100*sizeof(twoints));my_union.a=data;{twoints * data=my_union.b;delete [] data;}}
static void main(){twoints * data;union_type my_union;data=NULL;data=NULL;data=(twoints *)realloc(data, 100*sizeof(twoints));my_union.a=data;{twoints * data=my_union.b;free(data);}}
void b_main_sink();void _main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));free(data);_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;free(data);}
static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;free(data);}
void main_sink(struct_type my_struct);void main(){twoints * data;struct_type my_struct;data=NULL;data=new twoints[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}delete [] data;my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twoints * data=my_struct.a;printStructLine(&data[0]);}
static void main(){twoints * data;struct_type my_struct;data=NULL;data=new twoints[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}delete [] data;my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twoints * data=my_struct.a;}
void b_main_sink(char * data);void _main(){char * data;void (*func_ptr) (char *)=b_main_sink;char * data_mainbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_mainbuf;func_ptr(data);}void b_main_sink(char * data){{char src[100];strcat(data, src);printLine(data);}}
void b_main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=b_main_sink;char * data_badbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_goodbuf;func_ptr(data);}void b_main_sink(char * data){{char src[100];strcat(data, src);printLine(data);}}
void _main(){short data;data=0;fscanf (stdin, "%hd", &data);{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}}
static void main(){short data;data=0;data=100-1;{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}}
void main_sink(int data);void main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}main_sink(data);}void main_sink(int data){{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}
static void main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}main_sink(data);}void main_sink(int data){{char * char_string;if ((size_t)data > strlen(HELLO_STRING) && data < 100){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than the length of the source string or too large");}}}
static void main_sink(twoints * data){printStructLine(data);}void main(){twoints * data;data=NULL;data=new twoints;data->a=1;data->b=2;delete data;main_sink(data);}
static void main_sink(twoints * data){printStructLine(data);}static void main(){twoints * data;data=NULL;data=new twoints;data->a=1;data->b=2;main_sink(data);}
void _main(){char data;char *data_ptr1=&data;char *data_ptr2=&data;data=' ';{char data=*data_ptr1;{char ch;ch=(char)getc(stdin);data=(char)atoi(&ch);}}{char data=*data_ptr2;{char char_array[4];char_array[0]='x';char_array[1]=data;char_array[2]='z';char_array[3]='\0';printLine(char_array);}}}
static void main(){char data;char *data_ptr1=&data;char *data_ptr2=&data;data=' ';{char data=*data_ptr1;data='a';}{char data=*data_ptr2;{char char_array[4];char_array[0]='x';char_array[1]=data;char_array[2]='z';char_array[3]='\0';printLine(char_array);}}}
void b_main_sink();void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;fprintf(stdout, data);}
static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;fprintf(stdout, "%s\n", data);}
void b_main_sink();void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
void b_main_sink();static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static void main_sink(char data){{char result=data * data;printHexCharLine(result);}}void _main(){char data;data=' ';data=CHAR_MAX;main_sink(data);}
static void main_sink(char data){{char result=-1;if (data <=(char)sqrt((char)CHAR_MAX)){result=data * data;printHexCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}static void main(){char data;data=' ';data=CHAR_MAX;main_sink(data);}
void _main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}
static void main(){int data;data=-1;data=20;{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}
void b_main_sink(int data);void _main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}void b_main_sink(int data){{int result=data * data;printIntLine(result);}}
static void main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}void b_main_sink(int data){{int result=-1;if (data <=(int)sqrt((int)INT_MAX)){result=data * data;printIntLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}
static void main_sink(long long * data){}void main(){long long * data;data=NULL;data=new long long;printLongLongLine(*data);main_sink(data);}
static void main_sink(long long * data){}static void main(){long long * data;data=NULL;long long data_good;data=&data_good;printLongLongLine(*data);main_sink(data);}
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100];data=data_buf;{char * data=*data_ptr1;}{char * data=*data_ptr2;{size_t src_len;char src[100];src_len=strlen(src);strncat(data, src, src_len);printLine(data);}}}
static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100];data=data_buf;{char * data=*data_ptr1;}{char * data=*data_ptr2;{size_t src_len;char src[100];src_len=strlen(src);strncat(data, src, src_len);printLine(data);}}}
void b_main_sink(wchar_t * data_array[]);void _main(){wchar_t * data;wchar_t * data_array[5];data=(wchar_t *)malloc(100*sizeof(wchar_t));data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t dest[50]=L"";wcsncat(dest, data, wcslen(data));printWLine(data);free(data);}}
void b_main_sink(wchar_t * data_array[]);static void main(){wchar_t * data;wchar_t * data_array[5];data=(wchar_t *)malloc(100*sizeof(wchar_t));data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t dest[50]=L"";wcsncat(dest, data, wcslen(data));printWLine(data);free(data);}}
void _main(){wchar_t * data;_union_type my_union;data=(wchar_t *)malloc(100*sizeof(wchar_t));my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);free(data);}}}
static void main(){wchar_t * data;_union_type my_union;data=(wchar_t *)malloc(100*sizeof(wchar_t));my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);free(data);}}}
static void main_sink(int data){{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}
static void main_sink(int data){{char * char_string;if ((size_t)data > strlen(HELLO_STRING) && data < 100){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than the length of the source string or too large");}}}static void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}
void b_main_sink(int * data_ptr);void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{int result=data-1;printIntLine(result);}}
static void main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{int result=0;if (data > INT_MIN){result=data-1;printIntLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}}
void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=0;data->b=0;printIntLine(data->a);printIntLine(data->b);{twointsclass * data_copy=data;twointsclass * data=data_copy;}}
static void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=0;data->b=0;printIntLine(data->a);printIntLine(data->b);{twointsclass * data_copy=data;twointsclass * data=data_copy;delete data;}}
twoints * main_source(twoints * data);void main(){twoints * data;data=NULL;data=main_source(data);free(data);}twoints * main_source(twoints * data){data=new twoints;return data;}
static void main(){twoints * data;data=NULL;data=main_source(data);free(data);}twoints * main_source(twoints * data){data=(twoints *)malloc(100*sizeof(twoints));return data;}
void b_main_sink(int * data_ptr);void _main(){int data;data=-1;fscanf (stdin, "%d", &data);b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}}
void b_main_sink(int * data);static void main(){int data;data=-1;data=100-1;b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}}
static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vfprintf(stdout, data, args);va_end(args);}}void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}main_vasink(data, data);}
static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vfprintf(stdout, "%s", args);va_end(args);}}static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}main_vasink(data, data);}
void _main(){wchar_t * data;wchar_t data_buf[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;{wchar_t src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}}
static void main(){wchar_t * data;wchar_t data_buf[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;{wchar_t src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}}
static void main_sink(){char * data=_main_data;if (strstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}_main_data=data;main_sink();}
static void main_sink(){char * data=_main_data;if (strstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}static void main(){char * data;char data_buf[100]="";data=data_buf;data=PASSWORD;_main_data=data;main_sink();}
int b_main_source(int data);void _main(){int data;data=-1;data=b_main_source(data);{int result=data+1;printIntLine(result);}}int b_main_source(int data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}return data;}
static void main(){int data;data=-1;data=b_main_source(data);{int result=data+1;printIntLine(result);}}int b_main_source(int data){data=5;return data;}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[250]=L"PATH=";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(250-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(250-data_len), pFile);fclose(pFile);}}}b_main_sink(data);}void b_main_sink(wchar_t * data){PUTENV(data);}
void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[250]=L"PATH=";data=data_buf;wcscat(data, NEW_PATH);b_main_sink(data);}void b_main_sink(wchar_t * data){PUTENV(data);}
static void main_sink(int * data){delete [] data;}void main(){int * data;void (*func_ptr) (int *)=main_sink;data=NULL;data=NULL;data=(int *)realloc(data, 100*sizeof(int));func_ptr(data);}
static void main_sink(int * data){free(data);}static void main(){int * data;void (*func_ptr) (int *)=main_sink;data=NULL;data=NULL;data=(int *)realloc(data, 100*sizeof(int));func_ptr(data);}
void b_main_sink(int * data);void _main(){int * data;{int data_buf[100];{size_t i;for (i=0;i < 100;i++){data_buf[i]=5;}}data=data_buf;}b_main_sink(data);}void c_main_sink(int * data);void b_main_sink(int * data){c_main_sink(data);}void d_main_sink(int * data);void c_main_sink(int * data){d_main_sink(data);}void e_main_sink(int * data);void d_main_sink(int * data){e_main_sink(data);}void e_main_sink(int * data){printIntLine(data[0]);free(data);}
void b_main_sink(int * data);static void main(){int * data;{int * data_buf=(int *)malloc(100*sizeof(int));{size_t i;for (i=0;i < 100;i++){data_buf[i]=5;}}data=data_buf;}b_main_sink(data);}void c_main_sink(int * data);void b_main_sink(int * data){c_main_sink(data);}void d_main_sink(int * data);void c_main_sink(int * data){d_main_sink(data);}void e_main_sink(int * data);void d_main_sink(int * data){e_main_sink(data);}void e_main_sink(int * data){printIntLine(data[0]);free(data);}
void _main(){char * password;char * *password_ptr1=&password;char * *password_ptr2=&password;password="";{char * password=*password_ptr1;password=(char *)malloc(100*sizeof(char));strcpy(password, "Password1234!");}{char * password=*password_ptr2;{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}}}
static void main(){char * password;char * *password_ptr1=&password;char * *password_ptr2=&password;password="";{char * password=*password_ptr1;password=(char *)malloc(100*sizeof(char));if(!VirtualLock(password, 100*sizeof(char))){printLine("Memory could not be locked");exit(1);}strcpy(password, "Password1234!");}{char * password=*password_ptr2;{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}}}
static void main_sink(char * data){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}}void _main(){char * data;void (*func_ptr) (char *)=main_sink;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}
static void main_sink(char * data){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}}static void main(){char * data;void (*func_ptr) (char *)=main_sink;char data_buf[100]="";data=data_buf;strcat(data, "*.*");func_ptr(data);}
static void main_sink(short data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}void _main(){short data;void (*func_ptr) (short)=main_sink;data=0;data=(short)RAND32();func_ptr(data);}
static void main_sink(short data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}static void main(){short data;void (*func_ptr) (short)=main_sink;data=0;data=100-1;func_ptr(data);}
void main_sink();void main(){wchar_t * data;{wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;}_main_data=data;main_sink();}void main_sink(){wchar_t * data=_main_data;printWLine(data);delete [] data;}
void main_sink();static void main(){wchar_t * data;{wchar_t * data_buf=new wchar_t[100];data=data_buf;}_main_data=data;main_sink();}void main_sink(){wchar_t * data=_main_data;printWLine(data);delete [] data;}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, data);printWLine(dest);}}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, data);printWLine(dest);}}
void main_sink(struct_type my_struct);void main(){twoints * data;struct_type my_struct;data=NULL;data=new twoints[100];my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twoints * data=my_struct.a;free(data);}
static void main(){twoints * data;struct_type my_struct;data=NULL;data=new twoints[100];my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twoints * data=my_struct.a;delete [] data;}
void main_sink_b(int * data);void main(){int * data;data=NULL;data=(int *)malloc(100*sizeof(int));main_sink_b(data);}void main_sink_c(int * data);void main_sink_b(int * data){main_sink_c(data);}void main_sink_d(int * data);void main_sink_c(int * data){main_sink_d(data);}void main_sink_d(int * data){delete [] data;}
static void main(){int * data;data=NULL;data=new int[100];main_sink_b(data);}void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){main_sink_d(data);}void main_sink_d(int * data){delete [] data;}
void _main(){{int i=rand();if(i=5){printLine("i was 5");}}}
static void main(){{int i=rand();if(i==5){printLine("i was 5");}}}
void main(){double * data;data=new double[10];{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}delete [] data;}
static void main(){double * data;data=new double[10];{int i;for(i=0;i<10;i++){data[i]=(double)i;}}{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}delete [] data;}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vprintf(data, args);va_end(args);}}void b_main_sink(char * data){main_vasink(data, data);}
static void main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vprintf("%s", args);va_end(args);}}void b_main_sink(char * data){main_vasink(data, data);}
void main_source(twointsclass * &data){}void main(){twointsclass * data;twointsclass data_uninit_array[10];data=data_uninit_array;main_source(data);for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}
static void main_source(twointsclass * &data){for(int i=0;i<10;i++){data[i].a=i;data[i].b=i;}}static void main(){twointsclass * data;twointsclass data_uninit_array[10];data=data_uninit_array;main_source(data);for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_mainbuf[50];char data_goodbuf[100];data=data_mainbuf;b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char src[100];strcat(data, src);printLine(data);}}
void b_main_sink(char * * data);static void main(){char * data;char data_badbuf[50];char data_goodbuf[100];data=data_goodbuf;b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char src[100];strcat(data, src);printLine(data);}}
static void main_sink(){int count=_main_data;{size_t i=0;FILE *file=NULL;const char *filename="output_main.txt";file=fopen(filename, "w+");if (file==NULL) exit(1);for (i=0;i < (size_t)count;i++){if (strlen(SENTENCE)!=fwrite(SENTENCE, sizeof(char), strlen(SENTENCE), file)) exit(1);}if (file){fclose(file);}}}void _main(){int count;count=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);count=atoi(input_buf);}_main_data=count;main_sink();}
static void main_sink(){int count=_main_data;{size_t i=0;FILE *file=NULL;const char *filename="output_bad.txt";file=fopen(filename, "w+");if (file==NULL) exit(1);for (i=0;i < (size_t)count;i++){if (strlen(SENTENCE)!=fwrite(SENTENCE, sizeof(char), strlen(SENTENCE), file)) exit(1);}if (file){fclose(file);}}}static void main(){int count;count=-1;count=20;_main_data=count;main_sink();}
void main_sink(wchar_t * data);void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;}func_ptr(data);}void main_sink(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}}
void main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}func_ptr(data);}void main_sink(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}}
void _main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}}{int data=*data_ptr2;{int result=data+1;printIntLine(result);}}}
static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;data=-1;{int data=*data_ptr1;data=5;}{int data=*data_ptr2;{int result=data+1;printIntLine(result);}}}
void b_main_sink();void _main(){unsigned char data;data=' ';data=(unsigned char)rand();_main_data=data;b_main_sink();}void b_main_sink(){unsigned char data=_main_data;{unsigned char result=data-1;printHexUnsignedCharLine(result);}}
static void main(){unsigned char data;data=' ';data=5;_main_data=data;b_main_sink();}void b_main_sink(){unsigned char data=_main_data;{unsigned char result=data-1;printHexUnsignedCharLine(result);}}
static void main_sink(char * data){printf(data);}void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}main_sink(data);}
static void main_sink(char * data){printf("%s\n", data);}static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}main_sink(data);}
void _main(){long long * data;data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));data[0]=5L;printLongLongLine(data[0]);{long long * data_copy=data;long long * data=data_copy;}}
static void main(){long long * data;data=NULL;{long long data_goodbuf[100];data=data_goodbuf;data[0]=5L;printLongLongLine(data[0]);}{long long * data_copy=data;long long * data=data_copy;}}
void main_sink(void * void_data_ptr);void main(){int * data;data=NULL;data=new int;printIntLine(*data);main_sink(&data);}void main_sink(void * void_data_ptr){int * * data_ptr=(int * *)void_data_ptr;int * data=(*data_ptr);}
static void main(){int * data;data=NULL;int data_good;data=&data_good;printIntLine(*data);main_sink(&data);}void main_sink(void * void_data_ptr){int * * data_ptr=(int * *)void_data_ptr;int * data=(*data_ptr);}
void main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;data=NULL;{wchar_t * data=*data_ptr1;data=new wchar_t[50];}{wchar_t * data=*data_ptr2;{wchar_t src[100];wcscpy(data, src);printWLine(data);delete [] data;}}}
static void main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;data=NULL;{wchar_t * data=*data_ptr1;data=new wchar_t[100];}{wchar_t * data=*data_ptr2;{wchar_t src[100];wcscpy(data, src);printWLine(data);delete [] data;}}}
void b_main_sink(int data);void _main(){int data;data=-1;data=INT_MAX;b_main_sink(data);}void c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void d_main_sink(int data);void c_main_sink(int data){d_main_sink(data);}void e_main_sink(int data);void d_main_sink(int data){e_main_sink(data);}void e_main_sink(int data){{int result=data * 2;printIntLine(result);}}
static void main(){int data;data=-1;data=5;b_main_sink(data);}void b_main_sink(int data){c_main_sink(data);}void c_main_sink(int data){d_main_sink(data);}void d_main_sink(int data){e_main_sink(data);}void e_main_sink(int data){{int result=data * 2;printIntLine(result);}}
void _main(){char * data;_union_type my_union;char data_mainbuf[50];char data_goodbuf[100];data=data_mainbuf;my_union.a=data;{char * data=my_union.b;{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);}}}
static void main(){char * data;_union_type my_union;char data_badbuf[50];char data_goodbuf[100];data=data_goodbuf;my_union.a=data;{char * data=my_union.b;{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);}}}
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wcscpy(data, L"A String");printWLine(data);main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_d(wchar_t * data){}
static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wcscpy(data, L"A String");printWLine(data);main_sink_b(data);}void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_d(wchar_t * data){delete[] data;}
void main_sink(twoints * data);void main(){twoints * data;void (*func_ptr) (twoints *)=main_sink;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));func_ptr(data);}void main_sink(twoints * data){delete data;}
static void main(){twoints * data;void (*func_ptr) (twoints *)=main_sink;data=NULL;data=new twoints;func_ptr(data);}void main_sink(twoints * data){delete data;}
static void main_sink(wchar_t * data){if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}main_sink(data);}
static void main_sink(wchar_t * data){if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=PASSWORD;main_sink(data);}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}
void main(){twointsclass * data;data=NULL;data=new twointsclass[100];data[0].a=0;data[0].b=0;printIntLine(data[0].a);printIntLine(data[0].b);{twointsclass * data_copy=data;twointsclass * data=data_copy;}}
static void main(){twointsclass * data;data=NULL;{twointsclass data_goodbuf[100];data=data_goodbuf;data[0].a=0;data[0].b=0;printIntLine(data[0].a);printIntLine(data[0].b);}{twointsclass * data_copy=data;twointsclass * data=data_copy;}}
void b_main_sink(char * * data_ptr);void _main(){char * data;char * data_buf=(char *)ALLOCA(100*sizeof(char));data=data_buf;b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char dest[50]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);}}
void b_main_sink(char * * data);static void main(){char * data;char * data_buf=(char *)ALLOCA(100*sizeof(char));data=data_buf;b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char dest[50]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);}}
void b_main_sink(char * data);void _main(){char * data;void (*func_ptr) (char *)=b_main_sink;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;func_ptr(data);}void b_main_sink(char * data){{char dest[100];strncpy(dest, data, strlen(dest));dest[100-1]='\0';printLine(dest);}}
void b_main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=b_main_sink;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;func_ptr(data);}void b_main_sink(char * data){{char dest[100];strncpy(dest, data, strlen(dest));dest[100-1]='\0';printLine(dest);}}
void _main(){char * data;data=(char *)calloc(100, sizeof(char));if(global_returns_t_or_f()){strcpy(data, "Initialize");printLine(data);free(data);}else{if (data!=NULL){strcpy(data, "Initialize");printLine(data);free(data);}}}
static void main(){char * data;data=(char *)calloc(100, sizeof(char));if(global_returns_t_or_f()){if (data!=NULL){strcpy(data, "Initialize");printLine(data);free(data);}}else{if (data!=NULL){strcpy(data, "Initialize");printLine(data);free(data);}}}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}static void main_vasink(wchar_t * data, ...){{wchar_t dest[100]=L"";va_list args;va_start(args, data);_vsnwprintf(dest, 100-1, data, args);va_end(args);printWLine(dest);}}void d_main_sink(wchar_t * data){main_vasink(data, data);}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}static void main_vasink(wchar_t * data, ...){{wchar_t dest[100]=L"";va_list args;va_start(args, data);_vsnwprintf(dest, 100-1, L"%s", args);va_end(args);printWLine(dest);}}void d_main_sink(wchar_t * data){main_vasink(data, data);}
static void main_sink(){wchar_t * data=_main_data;{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}void _main(){wchar_t * data;wchar_t * data_mainbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_mainbuf;_main_data=data;main_sink();}
static void main_sink(){wchar_t * data=_main_data;{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}static void main(){wchar_t * data;wchar_t * data_badbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_goodbuf;_main_data=data;main_sink();}
void b_main_sink(char * * data_ptr);void _main(){char * data;data=NULL;data=(char *)malloc(50*sizeof(char));b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char src[100];strcat(data, src);printLine(data);free(data);}}
void b_main_sink(char * * data);static void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{char src[100];strcat(data, src);printLine(data);free(data);}}
static void main_sink(wchar_t * data){{HANDLE hFile;hFile=CreateFileW(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}func_ptr(data);}
static void main_sink(wchar_t * data){{HANDLE hFile;hFile=CreateFileW(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;wcscat(data, L"file.txt");func_ptr(data);}
void _main(){{if (RpcImpersonateClient(0)!=RPC_S_OK){}}}
static void main(){{if (RpcImpersonateClient(0)!=RPC_S_OK){exit(1);}}}
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}}
void b_main_sink(wchar_t * * data);static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}}
void b_main_sink();void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}}
void b_main_sink();static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}}
void main_sink(void * void_data_ptr);void main(){twointsclass * data;data=NULL;data=NULL;data=(twointsclass *)realloc(data, 100*sizeof(twointsclass));main_sink(&data);}void main_sink(void * void_data_ptr){twointsclass * * data_ptr=(twointsclass * *)void_data_ptr;twointsclass * data=(*data_ptr);delete [] data;}
static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];main_sink(&data);}void main_sink(void * void_data_ptr){twointsclass * * data_ptr=(twointsclass * *)void_data_ptr;twointsclass * data=(*data_ptr);delete [] data;}
void _main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}
static void main(){int data;data=-1;data=100-1;{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}
static char * main_source(char * data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}return data;}void _main(){char * data;char data_buf[100]="";data=data_buf;data=main_source(data);printf(data);}
static char * main_source(char * data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}return data;}static void main(){char * data;char data_buf[100]="";data=data_buf;data=main_source(data);printf("%s\n", data);}
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[FILENAME_MAX]="";data=data_buf;{char * data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(FILENAME_MAX-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}}{char * data=*data_ptr2;{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}}
static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[FILENAME_MAX]="";data=data_buf;{char * data=*data_ptr1;strcpy(data, "c:\\temp\\file.txt");strcpy(data, "/tmp/file.txt");}{char * data=*data_ptr2;{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}}
void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}
static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}
void main(){twoints * data;data=NULL;data=new twoints[100];data[0].a=0;data[0].b=0;printStructLine(&data[0]);}
static void main(){twoints * data;data=NULL;data=new twoints[100];data[0].a=0;data[0].b=0;printStructLine(&data[0]);delete[] data;}
void main(){wchar_t * data;data=NULL;if(global_returns_t_or_f()){{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;}}else{{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}}{wchar_t dest[100];memmove(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}
static void main(){wchar_t * data;data=NULL;if(global_returns_t_or_f()){{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}}else{{wchar_t * data_buf=new wchar_t[100];wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;}}{wchar_t dest[100];memmove(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}
void _main(){unsigned int data;data=0;fscanf (stdin, "%u", &data);{unsigned int result=data * data;printUnsignedLine(result);}}
static void main(){unsigned int data;data=0;fscanf (stdin, "%u", &data);{unsigned int result=-1;if (data <=(unsigned int)sqrt((unsigned int)UINT_MAX)){result=data * data;printUnsignedLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}
void main(){int * data;data=NULL;data=new int[100];{size_t i;for(i=0;i < 100;i++){data[i]=5;}}delete [] data;printIntLine(data[0]);}
static void main(){int * data;data=NULL;data=new int[100];{size_t i;for(i=0;i < 100;i++){data[i]=5;}}delete [] data;}
static void main_sink(int * data){data[0]=5;printIntLine(data[0]);free(data);}void _main(){int * data;data=(int *)calloc(100, sizeof(int));main_sink(data);}
static void main_sink(int * data){if (data!=NULL){data[0]=5;printIntLine(data[0]);free(data);}}static void main(){int * data;data=(int *)calloc(100, sizeof(int));main_sink(data);}
static void main_sink(){long long * data=main_data;delete data;}void main(){long long * data;data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));main_data=data;main_sink();}
static void main_sink(){long long * data=main_data;delete data;}static void main(){long long * data;data=NULL;data=new long long;main_data=data;main_sink();}
static wchar_t * main_source(wchar_t * data){{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}return data;}static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(data, args);va_end(args);}}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);main_vasink(data, data);}
static wchar_t * main_source(wchar_t * data){wcscpy(data, L"fixedstringtest");return data;}static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(data, args);va_end(args);}}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);main_vasink(data, data);}
void b_main_sink(char * data);void _main(){char * data;char data_buf[FILENAME_MAX]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(FILENAME_MAX-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void d_main_sink(char * data);void c_main_sink(char * data){d_main_sink(data);}void d_main_sink(char * data){{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}
void b_main_sink(char * data);static void main(){char * data;char data_buf[FILENAME_MAX]="";data=data_buf;strcpy(data, "c:\\temp\\file.txt");strcpy(data, "/tmp/file.txt");b_main_sink(data);}void c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void d_main_sink(char * data);void c_main_sink(char * data){d_main_sink(data);}void d_main_sink(char * data){{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, BAD_OS_COMMAND);b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;system(data);}
void b_main_sink(char * * data);static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, GOOD_OS_COMMAND);b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;system(data);}
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECVP(COMMAND_INT, args);}}wchar_t * b_main_source(wchar_t * data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}return data;}
wchar_t * b_main_source(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECVP(COMMAND_INT, args);}}wchar_t * b_main_source(wchar_t * data){wcscat(data, L"*.*");return data;}
void main_source(long long * &data);void main(){long long * data;data=NULL;main_source(data);delete [] data;}void main_source(long long * &data){data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));}
static void main(){long long * data;data=NULL;main_source(data);free(data);}void main_source(long long * &data){data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));}
void main_sink_b(twointsclass * data);void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=0;data->b=0;printIntLine(data->a);printIntLine(data->b);main_sink_b(data);}void main_sink_c(twointsclass * data);void main_sink_b(twointsclass * data){main_sink_c(data);}void main_sink_d(twointsclass * data);void main_sink_c(twointsclass * data){main_sink_d(data);}void main_sink_d(twointsclass * data){}
static void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=0;data->b=0;printIntLine(data->a);printIntLine(data->b);main_sink_b(data);}void main_sink_b(twointsclass * data){main_sink_c(data);}void main_sink_c(twointsclass * data){main_sink_d(data);}void main_sink_d(twointsclass * data){delete data;}
static void main_sink(int data){{int result=data+1;printIntLine(result);}}void _main(){int data;void (*func_ptr) (int)=main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}
static void main_sink(int data){{int result=data+1;printIntLine(result);}}static void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;data=5;func_ptr(data);}
void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static void main_sink(){char * data=_main_data;if (strncmp(PASSWORD, data, strlen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();}
static void main_sink(){char * data=_main_data;if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}static void main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;{size_t data_len=wcslen(data);FILE * pFile;if(100-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(100-data_len), pFile);fclose(pFile);}}}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}}
void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;wcscat(data, L"*.*");b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}}
void b_main_sink(unsigned int data);void _main(){unsigned int data;data=0;fscanf (stdin, "%u", &data);b_main_sink(data);}void c_main_sink(unsigned int data);void b_main_sink(unsigned int data){c_main_sink(data);}void d_main_sink(unsigned int data);void c_main_sink(unsigned int data){d_main_sink(data);}void d_main_sink(unsigned int data){{unsigned int result=data * 2;printUnsignedLine(result);}}
static void main(){unsigned int data;data=0;fscanf (stdin, "%u", &data);b_main_sink(data);}void b_main_sink(unsigned int data){c_main_sink(data);}void c_main_sink(unsigned int data){d_main_sink(data);}void d_main_sink(unsigned int data){{unsigned int result=-1;if (data <=(UINT_MAX/2)){result=data * 2;printUnsignedLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}
int b_main_source(int data);void _main(){int data;data=-1;data=b_main_source(data);{int result=data-1;printIntLine(result);}}int b_main_source(int data){data=INT_MIN;return data;}
static void main(){int data;data=-1;data=b_main_source(data);{int result=0;if (data > INT_MIN){result=data-1;printIntLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}}int b_main_source(int data){data=INT_MIN;return data;}