source
stringlengths 23
1.83k
| target
stringlengths 42
1.55k
|
---|---|
void main(){wchar_t * data;data=NULL;if(global_returns_t_or_f()){data=(wchar_t *)malloc(100*sizeof(wchar_t));}else{data=new wchar_t;}if(global_returns_t_or_f()){delete data;}else{free(data);}} | static void main(){wchar_t * data;data=NULL;if(global_returns_t_or_f()){data=(wchar_t *)malloc(100*sizeof(wchar_t));}else{data=(wchar_t *)malloc(100*sizeof(wchar_t));}if(global_returns_t_or_f()){free(data);}else{free(data);}} |
void b_main_sink(unsigned int data);void _main(){unsigned int data;data=0;data=UINT_MAX;b_main_sink(data);}void b_main_sink(unsigned int data){{unsigned int result=data * 2;printUnsignedLine(result);}} | static void main(){unsigned int data;data=0;data=5;b_main_sink(data);}void b_main_sink(unsigned int data){{unsigned int result=data * 2;printUnsignedLine(result);}} |
static char * main_source(char * data){{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);}}}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){strcpy(data, "fixedstringtest");return data;}static void main(){char * data;char data_buf[100]="";data=data_buf;data=main_source(data);printf(data);} |
unsigned int b_main_source(unsigned int data);void _main(){unsigned int data;data=0;data=b_main_source(data);{unsigned int result=data+1;printUnsignedLine(result);}}unsigned int b_main_source(unsigned int data){fscanf (stdin, "%u", &data);return data;} | static void main(){unsigned int data;data=0;data=b_main_source(data);{unsigned int result=data+1;printUnsignedLine(result);}}unsigned int b_main_source(unsigned int data){data=5;return data;} |
void _main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=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);}}{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} | static void main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=L"";data=data_buf;wcscpy(data, L"c:\\temp\\file.txt");wcscpy(data, L"/tmp/file.txt");{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_mainbuf[50];wchar_t data_goodbuf[100];data=data_mainbuf;b_main_sink(data);}void b_main_sink(wchar_t * data){{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_badbuf[50];wchar_t data_goodbuf[100];data=data_goodbuf;b_main_sink(data);}void b_main_sink(wchar_t * data){{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);}} |
void b_main_sink(_struct_type my_struct);void _main(){int data;_struct_type my_struct;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);CLOSE(data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int data=my_struct.a;CLOSE(data);} | static void main(){int data;_struct_type my_struct;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);CLOSE(data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int data=my_struct.a;} |
void b_main_sink(_struct_type my_struct);void _main(){wchar_t * data;_struct_type my_struct;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';}}}my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");} | static void main(){wchar_t * data;_struct_type my_struct;wchar_t data_buf[100]=L"";data=data_buf;data=PASSWORD;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");} |
void _main_sink(wchar_t * data){{wchar_t src[100];_snwprintf(data, 100, L"%s", src);printWLine(data);}}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_sink(data);} | void _main_sink(wchar_t * data){{wchar_t src[100];_snwprintf(data, 100, L"%s", src);printWLine(data);}}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_sink(data);} |
static void main_sink(wchar_t * data){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}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_sink(data);} | static void 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;data=PASSWORD;main_sink(data);} |
void _main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;data=NULL;{wchar_t * data=*data_ptr1;data=(wchar_t *)malloc(100*sizeof(wchar_t));free(data);}{wchar_t * data=*data_ptr2;free(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=(wchar_t *)malloc(100*sizeof(wchar_t));free(data);}{wchar_t * data=*data_ptr2;}} |
void b_main_sink(char * * data_ptr);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 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)(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 (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 b_main_sink(char * * data_ptr){char * data=*data_ptr;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;{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)(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 (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 b_main_sink(char * * data_ptr){char * data=*data_ptr;if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");} |
void b_main_sink(float data_array[]);void _main(){float data;float data_array[5];data=0.0F;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[sizeof(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, input_buf, sizeof(data), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=(float)atof(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(float data_array[]){float data=data_array[2];printDoubleLine((double)(100.0/data));} | void b_main_sink(float data_array[]);static void main(){float data;float data_array[5];data=0.0F;data=7.0F;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(float data_array[]){float data=data_array[2];printDoubleLine((double)(100.0/data));} |
void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;data=NULL;{char * data=*data_ptr1;data=new char[100];strcpy(data, "A String");printLine(data);}{char * data=*data_ptr2;}} | static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;data=NULL;{char * data=*data_ptr1;{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}}{char * data=*data_ptr2;}} |
void _main(){wchar_t * data;_union_type my_union;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();}my_union.a=data;{wchar_t * data=my_union.b;wprintf(data);}} | static void main(){wchar_t * data;_union_type my_union;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();}my_union.a=data;{wchar_t * data=my_union.b;wprintf(L"%s\n", data);}} |
static void main_sink(){char * data=_main_data;fprintf(stdout, 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 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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;fprintf(stdout, data);}static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");_main_data=data;main_sink();} |
void _main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;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);}}_wsystem(data);} | static void main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;wcscat(data, L"*.*");_wsystem(data);} |
void b_main_sink(void * void_data_ptr);void _main(){char * data;data=NULL;data=(char *)malloc(10*sizeof(char));b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}} | void b_main_sink(void * void_data_ptr);static void main(){char * data;data=NULL;data=(char *)malloc((10+1)*sizeof(char));b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}} |
void b_main_sink(short data);void _main(){short data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=(short)atoi(input_buf);}b_main_sink(data);}void c_main_sink(short data);void b_main_sink(short data){c_main_sink(data);}void d_main_sink(short data);void c_main_sink(short data){d_main_sink(data);}void e_main_sink(short data);void d_main_sink(short data){e_main_sink(data);}void e_main_sink(short data){{char c=(char)data;printHexCharLine(c);}} | void b_main_sink(short data);static void main(){short data;data=-1;data=CHAR_MAX-5;b_main_sink(data);}void c_main_sink(short data);void b_main_sink(short data){c_main_sink(data);}void d_main_sink(short data);void c_main_sink(short data){d_main_sink(data);}void e_main_sink(short data);void d_main_sink(short data){e_main_sink(data);}void e_main_sink(short data){{char c=(char)data;printHexCharLine(c);}} |
static void main_sink(){wchar_t * data=main_data;{wchar_t dest[50]=L"";_snwprintf(dest, wcslen(data), L"%s", data);printWLine(data);delete [] data;}}void main(){wchar_t * data;data=new wchar_t[100];main_data=data;main_sink();} | static void main_sink(){wchar_t * data=main_data;{wchar_t dest[50]=L"";_snwprintf(dest, wcslen(data), L"%s", data);printWLine(data);delete [] data;}}static void main(){wchar_t * data;data=new wchar_t[100];main_data=data;main_sink();} |
void main(){twoints * data;twoints * &data_ref=data;data=NULL;data=new twoints[100];delete [] data;{twoints * data=data_ref;delete [] data;}} | static void main(){twoints * data;twoints * &data_ref=data;data=NULL;data=new twoints[100];{twoints * data=data_ref;delete [] data;}} |
void main(){int data;int &data_ref=data;data=-1;data=RAND32();{int data=data_ref;{size_t a,i;int *b;b=(int*)new char[a];for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);delete [] b;}}} | static void main(){int data;int &data_ref=data;data=-1;data=20;{int data=data_ref;{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 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 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)(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 (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 c_main_sink(char * data){if (strncmp(PASSWORD, data, strlen(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 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)(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 (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 b_main_sink(char * data){c_main_sink(data);}void c_main_sink(char * data){if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");} |
void b_main_sink();void _main(){char * data;char data_mainbuf[50];char data_goodbuf[100];data=data_mainbuf;_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{char src[100];strcat(data, src);printLine(data);}} | void b_main_sink();static void main(){char * data;char data_badbuf[50];char data_goodbuf[100];data=data_goodbuf;_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{char src[100];strcat(data, src);printLine(data);}} |
void main_sink(struct_type my_struct);void main(){long long * data;struct_type my_struct;data=NULL;data=(long long *)calloc(100, sizeof(long long));my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){long long * data=my_struct.a;delete data;} | static void main(){long long * data;struct_type my_struct;data=NULL;data=new long long;my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){long long * data=my_struct.a;delete data;} |
void main_sink(wchar_t * * data_ptr);void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wmemset(data, L'A', 100-1);data[100-1]=L'\0';delete [] data;main_sink(&data);}void main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;printWLine(data);} | static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wmemset(data, L'A', 100-1);data[100-1]=L'\0';main_sink(&data);}void main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;printWLine(data);} |
static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}static void main_sink(char * data){main_vasink(data, 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 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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}main_sink(data);} | static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, "%s", args);va_end(args);printLine(dest);}}static void 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 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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}main_sink(data);} |
static int main_source(int data){data=RAND32();return data;}void main(){int data;data=-1;data=main_source(data);{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=new wchar_t[data];wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);delete [] wchar_t_string;}else{printLine("Input is less than 0");}}} | static int main_source(int data){data=20;return data;}static void main(){int data;data=-1;data=main_source(data);{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=new wchar_t[data];wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);delete [] wchar_t_string;}else{printLine("Input is less than 0");}}} |
int main_source(int data);void main(){int data;data=-1;data=main_source(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");}}}int main_source(int data){data=RAND32();return data;} | static void main(){int data;data=-1;data=main_source(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");}}}int main_source(int data){data=RAND32();return data;} |
void b_main_sink(long long * data);void _main(){long long * data;data=NULL;data=NULL;b_main_sink(data);}void b_main_sink(long long * data){printLongLongLine(*data);} | void b_main_sink(long long * data);static void main(){long long * data;data=NULL;{long long tmp=5L;data=&tmp;}b_main_sink(data);}void b_main_sink(long long * data){printLongLongLine(*data);} |
void b_main_sink(_struct_type my_struct);void _main(){char * data;_struct_type my_struct;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);}}}my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} | void b_main_sink(_struct_type my_struct);static void main(){char * data;_struct_type my_struct;char data_buf[100]="";data=data_buf;strcat(data, "*.*");my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} |
void b_main_sink(void * void_data_ptr);void _main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);{int result=data-1;printIntLine(result);}} | static void main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_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(){int data;_union_type my_union;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);CLOSE(data);my_union.a=data;{int data=my_union.b;CLOSE(data);}} | static void main(){int data;_union_type my_union;data=OPEN("GoodSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);my_union.a=data;{int data=my_union.b;CLOSE(data);}} |
static void main_sink(FILE * data){fclose(data);}void _main(){FILE * data;data=fopen("BadSource_fopen.txt", "w+");fclose(data);main_sink(data);} | static void main_sink(FILE * data){}static void main(){FILE * data;data=fopen("BadSource_fopen.txt", "w+");fclose(data);main_sink(data);} |
static void main_sink(){wchar_t * data=_main_data;_wsystem(data);}void _main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;{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();}_main_data=data;main_sink();} | static void main_sink(){wchar_t * data=_main_data;_wsystem(data);}static void main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;wcscat(data, L"*.*");_main_data=data;main_sink();} |
void b_main_sink(short data);void _main(){short data;data=-1;fscanf (stdin, "%hd", &data);b_main_sink(data);}void b_main_sink(short data){{char c=(char)data;printHexCharLine(c);}} | void b_main_sink(short data);static void main(){short data;data=-1;data=CHAR_MAX-5;b_main_sink(data);}void b_main_sink(short data){{char c=(char)data;printHexCharLine(c);}} |
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){{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}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;} |
char * b_main_source(char * data);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;data=b_main_source(data);main_vasink(data, data);}char * b_main_source(char * data){{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}return data;} | static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vfprintf(stdout, data, args);va_end(args);}}static void main(){char * data;char data_buf[100]="";data=data_buf;data=b_main_source(data);main_vasink(data, data);}char * b_main_source(char * data){strcpy(data, "fixedstringtest");return data;} |
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);}}}{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;{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);}}}{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, L"%s", data);printWLine(dest);}} |
void b_main_sink();void _main(){char * data;char * data_mainbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_mainbuf;_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{size_t i, dest_sz;char dest[100];memset(dest, 'C', 100-1);dest_sz=strlen(dest);for (i=0;i < dest_sz;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} | void b_main_sink();static void main(){char * data;char * data_badbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_goodbuf;_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{size_t i, dest_sz;char dest[100];memset(dest, 'C', 100-1);dest_sz=strlen(dest);for (i=0;i < dest_sz;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} |
void b_main_sink(int data);void _main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;data=INT_MAX;func_ptr(data);}void b_main_sink(int data){{int result=data+1;printIntLine(result);}} | static void main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;data=INT_MAX;func_ptr(data);}void b_main_sink(int data){{int result=-1;if (data < INT_MAX){result=data+1;printIntLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wmemset(data, L'A', 100-1);data[100-1]=L'\0';delete [] 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_c(wchar_t * data){printWLine(data);} | static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wmemset(data, L'A', 100-1);data[100-1]=L'\0';delete [] data;main_sink_b(data);}void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_c(wchar_t * data){} |
void _main(){char * data;data=(char *)calloc(100, sizeof(char));{char * data_copy=data;char * data=data_copy;strcpy(data, "Initialize");printLine(data);free(data);}} | static void main(){char * data;data=(char *)calloc(100, sizeof(char));{char * data_copy=data;char * data=data_copy;if (data!=NULL){strcpy(data, "Initialize");printLine(data);free(data);}}} |
void b_main_sink(void * void_data_ptr);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(void * void_data_ptr){wchar_t * * data_ptr=(wchar_t * *)void_data_ptr;wchar_t * data=(*data_ptr);{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;{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(void * void_data_ptr){wchar_t * * data_ptr=(wchar_t * *)void_data_ptr;wchar_t * data=(*data_ptr);{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, L"%s", data);printWLine(dest);}} |
void main(){int * data;data=NULL;data=new int;delete data;delete data;} | static void main(){int * data;data=NULL;data=new int;delete data;} |
void b_main_sink(int * data_ptr);void _main(){int data;data=-1;data=INT_MIN;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;data=5;b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{int result=data-1;printIntLine(result);}} |
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);}}}{wchar_t * data_copy=data;wchar_t * data=data_copy;fwprintf(stdout, data);}} | static 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);}}}{wchar_t * data_copy=data;wchar_t * data=data_copy;fwprintf(stdout, L"%s\n", data);}} |
void main_sink();void main(){wchar_t * data;data=NULL;data=new wchar_t[100];wcscpy(data, L"A String");printWLine(data);main_data=data;main_sink();}void main_sink(){wchar_t * data=main_data;} | static void main(){wchar_t * data;data=NULL;{wchar_t data_goodbuf[100];data=data_goodbuf;wcscpy(data, L"A String");printWLine(data);}main_data=data;main_sink();}void main_sink(){wchar_t * data=main_data;} |
void main(){char * data;char * &data_ref=data;data=NULL;data=new char[100];{char * data=data_ref;delete data;}} | static void main(){char * data;char * &data_ref=data;data=NULL;data=new char[100];{char * data=data_ref;delete [] data;}} |
void _main(){{HANDLE hMutex=NULL;hMutex=CreateMutexW(NULL, FALSE, NULL);if (hMutex==INVALID_HANDLE_VALUE){exit(1);}if (GetLastError()==-1){exit(1);}CloseHandle(hMutex);}} | static void main(){{HANDLE hMutex=NULL;hMutex=CreateMutexW(NULL, FALSE, NULL);if (hMutex==NULL){exit(1);}if (GetLastError()==ERROR_ALREADY_EXISTS){exit(1);}CloseHandle(hMutex);}} |
static void main_sink(int data){{int result=data * 2;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 * 2;printIntLine(result);}}static void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;data=5;func_ptr(data);} |
void b_main_sink(unsigned char data);void _main(){unsigned char data;data=' ';data=(unsigned char)rand();b_main_sink(data);}void c_main_sink(unsigned char data);void b_main_sink(unsigned char data){c_main_sink(data);}void c_main_sink(unsigned char data){{unsigned char result=data * 2;printHexUnsignedCharLine(result);}} | static void main(){unsigned char data;data=' ';data=(unsigned char)rand();b_main_sink(data);}void b_main_sink(unsigned char data){c_main_sink(data);}void c_main_sink(unsigned char data){{unsigned char result=-1;if (data <=(UCHAR_MAX/2)){result=data * 2;printHexUnsignedCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}} |
static char * main_source(char * data){data=new char;delete data;return data;}void main(){char * data;data=NULL;data=main_source(data);delete data;} | static char * main_source(char * data){data=new char;delete data;return data;}static void main(){char * data;data=NULL;data=main_source(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 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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}{int i, n, v;if (sscanf(data, "%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "15");{int i, n, v;if (sscanf(data, "%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} |
void b_main_sink(wchar_t * data_array[]);void _main(){wchar_t * data;wchar_t * data_array[5];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;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 src[100];memmove(data, src, 100*sizeof(wchar_t));printWLine(data);}} | void b_main_sink(wchar_t * data_array[]);static void main(){wchar_t * data;wchar_t * data_array[5];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;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 src[100];memmove(data, src, 100*sizeof(wchar_t));printWLine(data);}} |
void main_sink_b(long long * data);void main(){long long * data;data=NULL;data=new long long[100];main_sink_b(data);}void main_sink_c(long long * data);void main_sink_b(long long * data){main_sink_c(data);}void main_sink_d(long long * data);void main_sink_c(long long * data){main_sink_d(data);}void main_sink_d(long long * data){delete data;} | static void main(){long long * data;data=NULL;data=new long long[100];main_sink_b(data);}void main_sink_b(long long * data){main_sink_c(data);}void main_sink_c(long long * data){main_sink_d(data);}void main_sink_d(long long * data){delete [] data;} |
void b_main_sink(char * data);void _main(){char * data;char data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(FILENAME_MAX-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(FILENAME_MAX-data_len), pFile);fclose(pFile);}}}b_main_sink(data);}void b_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]=BASEPATH;data=data_buf;strcat(data, "file.txt");b_main_sink(data);}void b_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(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;{char c=(char)data;printHexCharLine(c);}} | void b_main_sink(int * data);static void main(){int data;data=-1;data=CHAR_MAX-5;b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{char c=(char)data;printHexCharLine(c);}} |
void b_main_sink(char * data);void _main(){char * data;data=NULL;data=(char *)malloc(10*sizeof(char));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 e_main_sink(char * data);void d_main_sink(char * data){e_main_sink(data);}void e_main_sink(char * data){{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}} | void b_main_sink(char * data);static void main(){char * data;data=NULL;data=(char *)malloc((10+1)*sizeof(char));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 e_main_sink(char * data);void d_main_sink(char * data){e_main_sink(data);}void e_main_sink(char * data){{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[50];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_c(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);delete [] data;}} | void main_sink_b(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];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_c(wchar_t * data){{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);delete [] data;}} |
void _main(){short data;short *data_ptr1=&data;short *data_ptr2=&data;data=0;{short 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=(short)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();}}{short data=*data_ptr2;{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;short *data_ptr1=&data;short *data_ptr2=&data;data=0;{short data=*data_ptr1;data=100-1;}{short data=*data_ptr2;{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 b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_mainbuf[50];wchar_t data_goodbuf[100];data=data_mainbuf;func_ptr(data);}void b_main_sink(wchar_t * data){{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_badbuf[50];wchar_t data_goodbuf[100];data=data_goodbuf;func_ptr(data);}void b_main_sink(wchar_t * data){{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}printWLine(data);}} |
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;{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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}main_vasink(data, data);} | static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vfprintf(stdout, data, args);va_end(args);}}static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");main_vasink(data, data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;b_main_sink(data);}void b_main_sink(wchar_t * data){{wchar_t dest[50]=L"";wcsncpy(dest, data, wcslen(data));printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;b_main_sink(data);}void b_main_sink(wchar_t * data){{wchar_t dest[50]=L"";wcsncpy(dest, data, wcslen(data));printWLine(data);}} |
static twointsclass * main_source(twointsclass * data){data=new twointsclass;return data;}void main(){twointsclass * data;data=NULL;data=main_source(data);free(data);} | static twointsclass * main_source(twointsclass * data){data=new twointsclass;return data;}static void main(){twointsclass * data;data=NULL;data=main_source(data);delete data;} |
void b_main_sink();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;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;{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;b_main_sink();}void b_main_sink(){char * data=_main_data;fprintf(stdout, "%s\n", 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);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 b_main_sink(wchar_t * data){wprintf(data);} | static 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);}}}b_main_sink(data);}void b_main_sink(wchar_t * data){wprintf(L"%s\n", data);} |
static twoints * main_source(twoints * data){data=new twoints;delete data;return data;}void main(){twoints * data;data=NULL;data=main_source(data);delete data;} | static twoints * main_source(twoints * data){data=new twoints;return data;}static void main(){twoints * data;data=NULL;data=main_source(data);delete data;} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;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){{wchar_t dest[50]=L"";memmove(dest, data, wcslen(data)*sizeof(wchar_t));printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;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){{wchar_t dest[50]=L"";memmove(dest, data, wcslen(data)*sizeof(wchar_t));printWLine(data);}} |
void b_main_sink();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;b_main_sink();}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(){char * data=_main_data;main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");_main_data=data;b_main_sink();}static void main_vasink(char * data, ...){{char dest[100]="";va_list args;va_start(args, data);vsnprintf(dest, 100-1, data, args);va_end(args);printLine(dest);}}void b_main_sink(){char * data=_main_data;main_vasink(data, data);} |
void main(){long long * data;data=NULL;data=new long long[100];delete [] data;delete [] data;} | static void main(){long long * data;data=NULL;data=new long long[100];delete [] data;} |
void main_sink_b(int * data);void main(){int * data;data=NULL;data=new int;delete data;main_sink_b(data);}void main_sink_c(int * data);void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){delete data;} | static void main(){int * data;data=NULL;data=new int;main_sink_b(data);}void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){delete data;} |
static wchar_t * 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 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();}return data;}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}} | static wchar_t * main_source(wchar_t * data){wcscat(data, L"*.*");return data;}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);}} |
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";data=data_buf;{char * data=*data_ptr1;{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';}}}}{char * data=*data_ptr2;if (strncmp(PASSWORD, data, strlen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";data=data_buf;{char * data=*data_ptr1;{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';}}}}{char * data=*data_ptr2;if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} |
void _main(){double data;printDoubleLine(data);} | static void main(){double data;data=5.0;printDoubleLine(data);} |
void main(){twoints * data;data=NULL;if(global_returns_t_or_f()){data=new twoints[100];}else{data=(twoints *)malloc(100*sizeof(twoints));}if(global_returns_t_or_f()){free(data);}else{delete [] data;}} | static void main(){twoints * data;data=NULL;if(global_returns_t_or_f()){data=new twoints[100];}else{data=new twoints[100];}if(global_returns_t_or_f()){delete [] data;}else{delete [] data;}} |
static void main_sink(){char * data=_main_data;{char dest[50]="";size_t i, data_len;data_len=strlen(data);for (i=0;i < data_len;i++){dest[i]=data[i];}printLine(data);}}void _main(){char * data;char data_buf[100];data=data_buf;_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;{char dest[50]="";size_t i, data_len;data_len=strlen(data);for (i=0;i < data_len;i++){dest[i]=data[i];}printLine(data);}}static void main(){char * data;char data_buf[100];data=data_buf;_main_data=data;main_sink();} |
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);}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){if (strncmp(PASSWORD, data, strlen(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();}b_main_sink(data);}void b_main_sink(char * data){c_main_sink(data);}void c_main_sink(char * data){d_main_sink(data);}void d_main_sink(char * data){if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");} |
void b_main_sink(_struct_type my_struct);void _main(){float data;_struct_type my_struct;data=0.0F;data=(float)RAND32();my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){float data=my_struct.a;printDoubleLine((double)(100.0/data));} | void b_main_sink(_struct_type my_struct);static void main(){float data;_struct_type my_struct;data=0.0F;data=7.0F;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){float data=my_struct.a;printDoubleLine((double)(100.0/data));} |
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_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";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 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)(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 (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}}{char * data=*data_ptr2;main_vasink(data, data);}} | static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vfprintf(stdout, data, args);va_end(args);}}static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";data=data_buf;{char * data=*data_ptr1;strcpy(data, "fixedstringtest");}{char * data=*data_ptr2;main_vasink(data, data);}} |
static void main_sink(){char * data=_main_data;{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]='\0';printLine(data);}}void _main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]='\0';printLine(data);}}static void main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;_main_data=data;main_sink();} |
void _main(){int data;data=-1;if(global_returns_t_or_f()){data=RAND32();}else{data=CHAR_MAX-5;}{char c=(char)data;printHexCharLine(c);}} | static void main(){int data;data=-1;if(global_returns_t_or_f()){data=CHAR_MAX-5;}else{data=CHAR_MAX-5;}{char c=(char)data;printHexCharLine(c);}} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;{size_t data_len=wcslen(data);if(FILENAME_MAX-data_len > 1){fgetws(data+data_len, (int)(FILENAME_MAX-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}func_ptr(data);}void b_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 b_main_sink(wchar_t * data);static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;wcscat(data, L"file.txt");func_ptr(data);}void b_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(){int data;_union_type my_union;data=-1;data=RAND32();my_union.a=data;{int data=my_union.b;{int result=data-1;printIntLine(result);}}} | static void main(){int data;_union_type my_union;data=-1;data=5;my_union.a=data;{int data=my_union.b;{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 * 2;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 * 2;printHexUnsignedCharLine(result);}} |
void main_source(wchar_t * &data){data=(wchar_t *)calloc(100, sizeof(wchar_t));}void main(){wchar_t * data;data=NULL;main_source(data);delete data;} | static void main_source(wchar_t * &data){data=new wchar_t;}static void main(){wchar_t * data;data=NULL;main_source(data);delete data;} |
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;data=b_main_source(data);_wsystem(data);}wchar_t * b_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;} | wchar_t * b_main_source(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;data=b_main_source(data);_wsystem(data);}wchar_t * b_main_source(wchar_t * data){wcscat(data, L"*.*");return data;} |
void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t;delete data;{wchar_t * data=data_ref;delete data;}} | static void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t;delete data;{wchar_t * data=data_ref;}} |
void b_main_sink(int * data);void _main(){int * data;data=(int *)malloc(100);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 d_main_sink(int * data){data[0]=5;printIntLine(data[0]);free(data);} | void b_main_sink(int * data);static void main(){int * data;data=(int *)malloc(100);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 d_main_sink(int * data){if (data!=NULL){data[0]=5;printIntLine(data[0]);free(data);}} |
void b_main_sink(int data_array[]);void _main(){int data;int data_array[5];{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();}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];{char data_buf[10]="AAAAAAAAA";if (data >=0){printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}} | static void main(){int data;int data_array[5];data=7;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];{char data_buf[10]="AAAAAAAAA";if (data >=0){printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}} |
static void main_sink(unsigned int data){{unsigned int result=data-1;printUnsignedLine(result);}}void _main(){unsigned int data;void (*func_ptr) (unsigned int)=main_sink;data=0;data=(unsigned int)RAND32();func_ptr(data);} | static void main_sink(unsigned int data){{unsigned int result=0;if (data > 0){result=data-1;printUnsignedLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}}static void main(){unsigned int data;void (*func_ptr) (unsigned int)=main_sink;data=0;data=(unsigned int)RAND32();func_ptr(data);} |
void main_sink_b(twointsclass * data);void main(){twointsclass * data;data=NULL;data=new twointsclass[50];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){{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memmove(data, src, 100*sizeof(twointsclass));printIntLine(data[0].a);delete [] data;}} | void main_sink_b(twointsclass * data);static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];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){{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memmove(data, src, 100*sizeof(twointsclass));printIntLine(data[0].a);delete [] data;}} |
void _main(){twoints * data;{static twoints data_buf[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}printStructLine(&data[0]);free(data);} | static void main(){twoints * data;{twoints * data_buf=(twoints *)malloc(100*sizeof(twoints));{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}printStructLine(&data[0]);free(data);} |
void main(){long long * data;long long * &data_ref=data;data=NULL;data=new long long;{long long * data=data_ref;free(data);}} | static void main(){long long * data;long long * &data_ref=data;data=NULL;data=new long long;{long long * data=data_ref;delete data;}} |
void main_sink_b(long long * data);void main(){long long * data;data=NULL;data=new long long;delete data;main_sink_b(data);}void main_sink_c(long long * data);void main_sink_b(long long * data){main_sink_c(data);}void main_sink_c(long long * data){printLongLongLine(*data);} | static void main(){long long * data;data=NULL;data=new long long;main_sink_b(data);}void main_sink_b(long long * data){main_sink_c(data);}void main_sink_c(long long * data){printLongLongLine(*data);} |
void main(){twointsclass * data;data=(twointsclass *)ALLOCA(10*sizeof(twointsclass));if(global_returns_t_or_f()){}else{for(int i=0;i<10;i++){data[i].a=i;data[i].b=i;}}if(global_returns_t_or_f()){for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}else{for(int i=0;i<10;i++){data[i].a=i;data[i].b=i;}for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}} | static void main(){twointsclass * data;data=(twointsclass *)ALLOCA(10*sizeof(twointsclass));if(global_returns_t_or_f()){}else{}if(global_returns_t_or_f()){for(int i=0;i<10;i++){data[i].a=i;data[i].b=i;}for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}else{for(int i=0;i<10;i++){data[i].a=i;data[i].b=i;}for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}} |
void main_sink(wchar_t * * data_ptr);void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));main_sink(&data);}void main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;delete [] data;} | static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));main_sink(&data);}void main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;free(data);} |
void main(){wchar_t * data;union_type my_union;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;}my_union.a=data;{wchar_t * data=my_union.b;{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}}} | static void main(){wchar_t * data;union_type my_union;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;}my_union.a=data;{wchar_t * data=my_union.b;{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}}} |
void b_main_sink();void _main(){wchar_t * data;wchar_t data_mainbuf[50];wchar_t data_goodbuf[100];data=data_mainbuf;_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);}} | void b_main_sink();static void main(){wchar_t * data;wchar_t data_badbuf[50];wchar_t data_goodbuf[100];data=data_goodbuf;_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{wchar_t src[100];wcsncpy(data, src, 100);printWLine(data);}} |
void _main(){float data;float *data_ptr1=&data;float *data_ptr2=&data;data=0.0F;{float 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[sizeof(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, input_buf, sizeof(data), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=(float)atof(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();}}{float data=*data_ptr2;printDoubleLine((double)(100.0/data));}} | static void main(){float data;float *data_ptr1=&data;float *data_ptr2=&data;data=0.0F;{float data=*data_ptr1;data=7.0F;}{float data=*data_ptr2;printDoubleLine((double)(100.0/data));}} |