source
stringlengths 23
1.83k
| target
stringlengths 42
1.55k
|
---|---|
void main(){double * data;data=new double[10];if(global_returns_t_or_f()){}else{{int i;for(i=0;i<10;i++){data[i]=(double)i;}}}if(global_returns_t_or_f()){{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}delete [] data;}else{{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;}} | static void main(){double * data;data=new double[10];if(global_returns_t_or_f()){}else{}if(global_returns_t_or_f()){{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;}else{{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(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100];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"";wcsncpy(dest, data, wcslen(data));printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100];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"";wcsncpy(dest, data, wcslen(data));printWLine(data);}} |
void _main(){unsigned int data;unsigned int *data_ptr1=&data;unsigned int *data_ptr2=&data;data=0;{unsigned int data=*data_ptr1;data=(unsigned int)RAND32();}{unsigned int data=*data_ptr2;{unsigned int result=data * data;printUnsignedLine(result);}}} | static void main(){unsigned int data;unsigned int *data_ptr1=&data;unsigned int *data_ptr2=&data;data=0;{unsigned int data=*data_ptr1;data=(unsigned int)RAND32();}{unsigned int data=*data_ptr2;{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(){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 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();}my_union.a=data;{wchar_t * data=my_union.b;if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100]=L"";data=data_buf;data=PASSWORD;my_union.a=data;{wchar_t * data=my_union.b;if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}} |
void main_sink(int data_array[]);void main(){int data;int data_array[5];data=-1;data=10000;data_array[2]=data;main_sink(data_array);}void main_sink(int data_array[]){int data=data_array[2];{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;int data_array[5];data=-1;data=10000;data_array[2]=data;main_sink(data_array);}void main_sink(int data_array[]){int data=data_array[2];{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");}}} |
void _main(){int data;data=-1;if(global_returns_t_or_f()){data=RAND32();}else{data=100-1;}{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memcpy(dest, src, data);}printLine(dest);}} | static void main(){int data;data=-1;if(global_returns_t_or_f()){data=100-1;}else{data=100-1;}{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memcpy(dest, src, data);}printLine(dest);}} |
void b_main_sink(char * data);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);}}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;data=PASSWORD;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 (strncmp(PASSWORD, data, strlen(data))==0) printLine("Access granted");else printLine("Access denied!");} |
void main_sink(twointsclass * * data_ptr);void main(){twointsclass * data;data=NULL;data=new twointsclass;main_sink(&data);}void main_sink(twointsclass * * data_ptr){twointsclass * data=*data_ptr;free(data);} | static void main(){twointsclass * data;data=NULL;data=new twointsclass;main_sink(&data);}void main_sink(twointsclass * * data_ptr){twointsclass * data=*data_ptr;delete data;} |
void b_main_sink(char * data);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){{char dest[50]="";_snprintf(dest, strlen(data), "%s", data);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){{char dest[50]="";_snprintf(dest, strlen(data), "%s", data);printLine(data);}} |
void b_main_sink(_struct_type my_struct);void _main(){int data;_struct_type my_struct;data=-1;fscanf (stdin, "%d", &data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int data=my_struct.a;{wchar_t * wchar_t_string;if (data > 0){wchar_t_string=(wchar_t *)malloc(data*sizeof(wchar_t));wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);free(wchar_t_string);}else{printLine("Input is less than 0");}}} | static void main(){int data;_struct_type my_struct;data=-1;fscanf (stdin, "%d", &data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int data=my_struct.a;{wchar_t * wchar_t_string;if ((size_t)data > wcslen(HELLO_STRING) && data < 100){wchar_t_string=(wchar_t *)malloc(data*sizeof(wchar_t));wcscpy(wchar_t_string, HELLO_STRING);printWLine(wchar_t_string);free(wchar_t_string);}else{printLine("Input is less than the length of the source string or too large");}}} |
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);}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_ptr){char * data=*data_ptr;main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;strcpy(data, "fixedstringtest");b_main_sink(&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);}}void b_main_sink(char * * data_ptr){char * data=*data_ptr;main_vasink(data, data);} |
void main_sink(void * void_data_ptr);void main(){long long * data;data=NULL;data=(long long *)calloc(100, sizeof(long long));main_sink(&data);}void main_sink(void * void_data_ptr){long long * * data_ptr=(long long * *)void_data_ptr;long long * data=(*data_ptr);delete data;} | static void main(){long long * data;data=NULL;data=new long long;main_sink(&data);}void main_sink(void * void_data_ptr){long long * * data_ptr=(long long * *)void_data_ptr;long long * data=(*data_ptr);delete data;} |
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 e_main_sink(unsigned int data);void d_main_sink(unsigned int data){e_main_sink(data);}void e_main_sink(unsigned int data){{unsigned int result=data+1;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){e_main_sink(data);}void e_main_sink(unsigned int data){{unsigned int result=-1;if (data < UINT_MAX){result=data+1;printUnsignedLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}} |
void b_main_sink(twoints * data);void _main(){twoints * data;void (*func_ptr) (twoints *)=b_main_sink;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));data[0].a=0;data[0].b=0;printStructLine(&data[0]);func_ptr(data);}void b_main_sink(twoints * data){} | static void main(){twoints * data;void (*func_ptr) (twoints *)=b_main_sink;data=NULL;{twoints data_goodbuf[100];data=data_goodbuf;data[0].a=0;data[0].b=0;printStructLine(&data[0]);}func_ptr(data);}void b_main_sink(twoints * data){} |
void main(){twoints * data;data=NULL;if(global_returns_t_or_f()){data=new twoints;delete data;}else{data=new twoints;}if(global_returns_t_or_f()){delete data;}else{}} | static void main(){twoints * data;data=NULL;if(global_returns_t_or_f()){data=new twoints;}else{data=new twoints;}if(global_returns_t_or_f()){delete data;}else{delete data;}} |
void b_main_sink(char * data);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);}}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(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");} | static 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);}}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 main_source(int * &data);void main(){int * data;data=NULL;main_source(data);delete [] data;}void main_source(int * &data){data=new int;} | static void main(){int * data;data=NULL;main_source(data);delete data;}void main_source(int * &data){data=new int;} |
void main_sink_b(int * data);void main(){int * data;data=NULL;data=NULL;data=(int *)realloc(data, 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_c(int * data){delete [] data;} | static void main(){int * data;data=NULL;data=NULL;data=(int *)realloc(data, 100*sizeof(int));main_sink_b(data);}void main_sink_b(int * data){main_sink_c(data);}void main_sink_c(int * data){free(data);} |
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;}}printIntLine(data[0]);} |
static void main_sink(wchar_t * data){if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;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);}}func_ptr(data);} | static void main_sink(wchar_t * data){if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;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);}}func_ptr(data);} |
void main_sink_b(twoints * data);void main(){twoints * data;data=NULL;data=(twoints *)calloc(100, sizeof(twoints));main_sink_b(data);}void main_sink_c(twoints * data);void main_sink_b(twoints * data){main_sink_c(data);}void main_sink_d(twoints * data);void main_sink_c(twoints * data){main_sink_d(data);}void main_sink_e(twoints * data);void main_sink_d(twoints * data){main_sink_e(data);}void main_sink_e(twoints * data){delete data;} | static void main(){twoints * data;data=NULL;data=new twoints;main_sink_b(data);}void main_sink_b(twoints * data){main_sink_c(data);}void main_sink_c(twoints * data){main_sink_d(data);}void main_sink_d(twoints * data){main_sink_e(data);}void main_sink_e(twoints * data){delete data;} |
void b_main_sink(char data);void _main(){char data;data=' ';data=CHAR_MAX;b_main_sink(data);}void b_main_sink(char data){{char result=data+1;printHexCharLine(result);}} | static void main(){char data;data=' ';data=5;b_main_sink(data);}void b_main_sink(char data){{char result=data+1;printHexCharLine(result);}} |
char * b_main_source(char * data);void _main(){char * data;data=(char *)malloc(100*sizeof(char));data=b_main_source(data);{char dest[50]="";strcat(dest, data);printLine(data);free(data);}}char * b_main_source(char * data){return data;} | char * b_main_source(char * data);static void main(){char * data;data=(char *)malloc(100*sizeof(char));data=b_main_source(data);{char dest[50]="";strcat(dest, data);printLine(data);free(data);}}char * b_main_source(char * data){return 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;{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_ptr1=&data;char * *data_ptr2=&data;char data_buf[100];data=data_buf;{char * data=*data_ptr1;}{char * data=*data_ptr2;{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(){short data;short *data_ptr1=&data;short *data_ptr2=&data;data=0;{short data=*data_ptr1;data=-1;}{short data=*data_ptr2;{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}}} | 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;{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}}} |
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;data=NULL;{char * data=*data_ptr1;data=NULL;data=(char *)realloc(data, 100*sizeof(char));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;data=NULL;data=(char *)realloc(data, 100*sizeof(char));strcpy(data, "A String");printLine(data);}{char * data=*data_ptr2;free(data);}} |
void b_main_sink(void * void_data_ptr);void _main(){char * data;char data_buf[100];data=data_buf;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{size_t src_len;char src[100];src_len=strlen(src);strncat(data, src, src_len);printLine(data);}} | void b_main_sink(void * void_data_ptr);static void main(){char * data;char data_buf[100];data=data_buf;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{size_t src_len;char src[100];src_len=strlen(src);strncat(data, src, src_len);printLine(data);}} |
void b_main_sink();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);}}}_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}} | void b_main_sink();static void main(){wchar_t * data;wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;wcscat(data, L"*.*");_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}} |
void _main(){if(global_returns_t_or_f()){{char * password=(char *)malloc(100*sizeof(char));size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";password[0]='\0';fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}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.");}free(password);}}else{{char * password=(char *)malloc(100*sizeof(char));size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";password[0]='\0';fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}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.");}password_len=strlen(password);SecureZeroMemory(password, password_len * sizeof(char));}}} | static void main(){if(global_returns_t_or_f()){{char * password=(char *)malloc(100*sizeof(char));size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";password[0]='\0';fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}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.");}password_len=strlen(password);SecureZeroMemory(password, password_len * sizeof(char));}}else{{char * password=(char *)malloc(100*sizeof(char));size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";password[0]='\0';fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}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.");}password_len=strlen(password);SecureZeroMemory(password, password_len * sizeof(char));}}} |
void 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;}main_sink(data);}void main_sink(int * data){printIntLine(data[0]);delete [] data;} | void main_sink(int * data);static void main(){int * data;{int * data_buf=new int[100];{size_t i;for (i=0;i < 100;i++){data_buf[i]=5;}}data=data_buf;}main_sink(data);}void main_sink(int * data){printIntLine(data[0]);delete [] data;} |
void _main(){int data;data=-1;fscanf (stdin, "%d", &data);{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}} | static void main(){int data;data=-1;data=100-1;{if (data < 100){char * data_buf=(char *)malloc(data);memset(data_buf, 'A', data-1);data_buf[data-1]='\0';printLine(data_buf);free(data_buf);}}} |
void main_source(wchar_t * &data){data=NULL;data=(wchar_t *)realloc(data, 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[100];}static void main(){wchar_t * data;data=NULL;main_source(data);delete [] data;} |
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);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){{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 d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}} |
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);{HMODULE hModule;hModule=LoadLibraryA(data);if (hModule!=NULL){FreeLibrary(hModule);printLine("Library loaded and freed successfully");}else{printLine("Unable to load library");}}} | static char * main_source(char * data){strcpy(data, "C:\\Windows\\System32\\winsrv.dll");return data;}static void main(){char * data;char data_buf[100]="";data=data_buf;data=main_source(data);{HMODULE hModule;hModule=LoadLibraryA(data);if (hModule!=NULL){FreeLibrary(hModule);printLine("Library loaded and freed successfully");}else{printLine("Unable to load library");}}} |
void main_sink(void * void_data_ptr);void main(){char * data;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;}main_sink(&data);}void main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} | void main_sink(void * void_data_ptr);static void main(){char * data;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;}main_sink(&data);}void main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} |
static void main_sink(twoints * data){}void main(){twoints * data;data=NULL;data=new twoints;data->a=0;data->b=0;printStructLine(data);main_sink(data);} | static void main_sink(twoints * data){delete data;}static void main(){twoints * data;data=NULL;data=new twoints;data->a=0;data->b=0;printStructLine(data);main_sink(data);} |
void main_sink(void * void_data_ptr);void main(){twointsclass * data;data=NULL;data=new twointsclass;main_sink(&data);}void main_sink(void * void_data_ptr){twointsclass * * data_ptr=(twointsclass * *)void_data_ptr;twointsclass * data=(*data_ptr);free(data);} | static void main(){twointsclass * data;data=NULL;data=(twointsclass *)malloc(100*sizeof(twointsclass));main_sink(&data);}void main_sink(void * void_data_ptr){twointsclass * * data_ptr=(twointsclass * *)void_data_ptr;twointsclass * data=(*data_ptr);free(data);} |
void b_main_sink(int * data);void _main(){int * data;void (*func_ptr) (int *)=b_main_sink;int * data_mainbuf=(int *)ALLOCA(50*sizeof(int));int * data_goodbuf=(int *)ALLOCA(100*sizeof(int));data=data_mainbuf;func_ptr(data);}void b_main_sink(int * data){{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);}} | void b_main_sink(int * data);static void main(){int * data;void (*func_ptr) (int *)=b_main_sink;int * data_badbuf=(int *)ALLOCA(50*sizeof(int));int * data_goodbuf=(int *)ALLOCA(100*sizeof(int));data=data_goodbuf;func_ptr(data);}void b_main_sink(int * data){{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);}} |
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;{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}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;{size_t i;char src[100];for (i=0;i < 100;i++){data[i]=src[i];}printLine(data);free(data);}} |
void b_main_sink(void * void_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(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);printIntLine(100 % data);} | void b_main_sink(void * void_data_ptr);static void main(){int data;data=-1;data=7;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);printIntLine(100 % data);} |
void main_sink_b(char * data);void main(){char * data;{char data_buf[100];data=data_buf;}main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_d(char * data){printLine(data);delete [] data;} | void main_sink_b(char * data);static void main(){char * data;{char * data_buf=new char[100];data=data_buf;}main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_d(char * data){printLine(data);delete [] data;} |
void b_main_sink(char * data);void _main(){char * data;void (*func_ptr) (char *)=b_main_sink;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);}}}func_ptr(data);}void b_main_sink(char * data){EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} | void b_main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=b_main_sink;char data_buf[100]="";data=data_buf;strcat(data, "*.*");func_ptr(data);}void b_main_sink(char * data){EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} |
void b_main_sink(wchar_t * 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();}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);}} |
static void main_sink(){twointsclass * data=main_data;free(data);}void main(){twointsclass * data;data=NULL;data=new twointsclass[100];main_data=data;main_sink();} | static void main_sink(){twointsclass * data=main_data;free(data);}static void main(){twointsclass * data;data=NULL;data=(twointsclass *)malloc(100*sizeof(twointsclass));main_data=data;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 _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);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);}}}}{char * data=*data_ptr2;main_vasink(data, 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(){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);}} |
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 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 c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void c_main_sink(int data){{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){c_main_sink(data);}void c_main_sink(int data){{int result=data+1;printIntLine(result);}} |
void main_sink(twointsclass * * data_ptr);void main(){twointsclass * data;data=NULL;data=new twointsclass;delete data;main_sink(&data);}void main_sink(twointsclass * * data_ptr){twointsclass * data=*data_ptr;delete data;} | static void main(){twointsclass * data;data=NULL;data=new twointsclass;main_sink(&data);}void main_sink(twointsclass * * data_ptr){twointsclass * data=*data_ptr;delete data;} |
void b_main_sink(wchar_t * 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;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 src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}} | void b_main_sink(wchar_t * 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;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 src[100];wcsncpy(data, src, 100);data[100-1]=L'\0';printWLine(data);}} |
void b_main_sink(twoints * data);void _main(){twoints * data;data=NULL;data=NULL;data=(twoints *)realloc(data, 100*sizeof(twoints));data[0].a=0;data[0].b=0;printStructLine(&data[0]);b_main_sink(data);}void c_main_sink(twoints * data);void b_main_sink(twoints * data){c_main_sink(data);}void d_main_sink(twoints * data);void c_main_sink(twoints * data){d_main_sink(data);}void d_main_sink(twoints * data){} | static void main(){twoints * data;data=NULL;{twoints data_goodbuf[100];data=data_goodbuf;data[0].a=0;data[0].b=0;printStructLine(&data[0]);}b_main_sink(data);}void b_main_sink(twoints * data){c_main_sink(data);}void c_main_sink(twoints * data){d_main_sink(data);}void d_main_sink(twoints * data){} |
void b_main_sink(char * * data_ptr);void _main(){char * data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{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;for (;*data!='\0';data++){if (*data==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);} | void b_main_sink(char * * data);static void main(){char * data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{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;{size_t i;for (i=0;i < strlen(data);i++){if (data[i]==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}} |
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{char * data=*data_ptr1;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}}{char * data=*data_ptr2;for (;*data!='\0';data++){if (*data==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}} | static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{char * data=*data_ptr1;{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}}{char * data=*data_ptr2;{size_t i;for (i=0;i < strlen(data);i++){if (data[i]==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}}} |
void main_sink_b(char * data);void main(){char * data;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;}main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_e(char * data);void main_sink_d(char * data){main_sink_e(data);}void main_sink_e(char * data){{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} | void main_sink_b(char * data);static void main(){char * data;data=NULL;{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;}main_sink_b(data);}void main_sink_c(char * data);void main_sink_b(char * data){main_sink_c(data);}void main_sink_d(char * data);void main_sink_c(char * data){main_sink_d(data);}void main_sink_e(char * data);void main_sink_d(char * data){main_sink_e(data);}void main_sink_e(char * data){{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} |
void _main_sink(wchar_t * data){{wchar_t src[100];wcscpy(data, src);printWLine(data);free(data);}}void _main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(50*sizeof(wchar_t));_main_sink(data);} | void _main_sink(wchar_t * data){{wchar_t src[100];wcscpy(data, src);printWLine(data);free(data);}}static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));_main_sink(data);} |
void _main_sink(char * data){PUTENV(data);}void _main(){char * data;char data_buf[250]="PATH=";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)(250-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);} | void _main_sink(char * data){PUTENV(data);}static void main(){char * data;char data_buf[250]="PATH=";data=data_buf;strcat(data, NEW_PATH);_main_sink(data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100];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 d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void e_main_sink(wchar_t * data);void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){{wchar_t dest[50]=L"";_snwprintf(dest, wcslen(data), L"%s", data);printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100];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 d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void e_main_sink(wchar_t * data);void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){{wchar_t dest[50]=L"";_snwprintf(dest, wcslen(data), L"%s", data);printWLine(data);}} |
void _main(){unsigned int data;data=0;data=(unsigned int)RAND32();{unsigned int data_copy=data;unsigned int data=data_copy;{unsigned int result=data+1;printUnsignedLine(result);}}} | static void main(){unsigned int data;data=0;data=5;{unsigned int data_copy=data;unsigned int data=data_copy;{unsigned int result=data+1;printUnsignedLine(result);}}} |
static twointsclass * main_source(twointsclass * data){data=new twointsclass;return data;}void main(){twointsclass * data;data=NULL;data=main_source(data);delete [] data;} | static twointsclass * main_source(twointsclass * data){data=new twointsclass[100];return data;}static void main(){twointsclass * data;data=NULL;data=main_source(data);delete [] data;} |
void main(){int * data;data=NULL;data=new int;delete data;{int * data_copy=data;int * data=data_copy;delete data;}} | static void main(){int * data;data=NULL;data=new int;delete data;{int * data_copy=data;int * data=data_copy;}} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));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){delete data;} | static void main(){wchar_t * data;data=NULL;data=new wchar_t;main_sink_b(data);}void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_c(wchar_t * data){delete data;} |
static int main_source(int data){data=RAND32();return data;}void _main(){int data;data=-1;data=main_source(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 int main_source(int data){data=100-1;return data;}static void main(){int data;data=-1;data=main_source(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_vasink(char * data, ...){{va_list args;va_start(args, data);vprintf(data, args);va_end(args);}}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);}}}{char * data_copy=data;char * data=data_copy;main_vasink(data, data);}} | static void main_vasink(char * data, ...){{va_list args;va_start(args, data);vprintf("%s", args);va_end(args);}}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);}}}{char * data_copy=data;char * data=data_copy;main_vasink(data, data);}} |
static twoints * main_source(twoints * data){data=new twoints;data->a=1;data->b=2;delete data;return data;}void main(){twoints * data;data=NULL;data=main_source(data);printStructLine(data);} | static twoints * main_source(twoints * data){data=new twoints;data->a=1;data->b=2;return data;}static void main(){twoints * data;data=NULL;data=main_source(data);printStructLine(data);} |
void b_main_sink(char * data_array[]);void _main(){char * data;char * data_array[5];char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} | void b_main_sink(char * data_array[]);static void main(){char * data;char * data_array[5];char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];{size_t i;char dest[100];for (i=0;i < 100;i++){dest[i]=data[i];}dest[100-1]='\0';printLine(dest);}} |
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 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();}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){{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} | 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 c_main_sink(char * data){{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} |
struct _twoints * b_main_source(struct _twoints * data);void _main(){struct _twoints * data;data=NULL;data=b_main_source(data);}struct _twoints * b_main_source(struct _twoints * data){data=(struct _twoints *)calloc(100, sizeof(struct _twoints));data[0].a=0;data[0].b=0;printStructLine((twoints *)&data[0]);return data;} | static void main(){struct _twoints * data;data=NULL;data=b_main_source(data);free(data);}struct _twoints * b_main_source(struct _twoints * data){data=(struct _twoints *)calloc(100, sizeof(struct _twoints));data[0].a=0;data[0].b=0;printStructLine((twoints *)&data[0]);return data;} |
void b_main_sink(char * data);void _main(){char * data;data=(char *)malloc(100*sizeof(char));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){{char dest[50]="";memmove(dest, data, strlen(data)*sizeof(char));printLine(data);free(data);}} | void b_main_sink(char * data);static void main(){char * data;data=(char *)malloc(100*sizeof(char));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){{char dest[50]="";memmove(dest, data, strlen(data)*sizeof(char));printLine(data);free(data);}} |
static long long * main_source(long long * data){data=new long long;return data;}void main(){long long * data;data=NULL;data=main_source(data);delete [] data;} | static long long * main_source(long long * data){data=new long long[100];return data;}static void main(){long long * data;data=NULL;data=main_source(data);delete [] data;} |
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;{size_t data_len=strlen(data);if(FILENAME_MAX-data_len > 1){fgets(data+data_len, (int)(FILENAME_MAX-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;{FILE *file=NULL;file=FOPEN(data, "wb+");if (file!=NULL) fclose(file);}} | 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_ptr){char * data=*data_ptr;{FILE *file=NULL;file=FOPEN(data, "wb+");if (file!=NULL) fclose(file);}} |
void _main(){char * data;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;{char dest[100];memmove(dest, data, 100*sizeof(char));dest[100-1]='\0';printLine(dest);}} | static void main(){char * data;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;{char dest[100];memmove(dest, data, 100*sizeof(char));dest[100-1]='\0';printLine(dest);}} |
void b_main_sink();void _main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(50*sizeof(wchar_t));_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;{wchar_t src[100];wcscpy(data, src);printWLine(data);free(data);}} | void b_main_sink();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;{wchar_t src[100];wcscpy(data, src);printWLine(data);free(data);}} |
void _main(){{int * pointer=(int *)malloc(sizeof(int));free(pointer);printIntLine(data);}} | static void main(){{int data;int * pointer=(int *)malloc(sizeof(int));data=5;{int data=*pointer;printIntLine(data);}free(pointer);}} |
static void main_sink(){int data=_main_data;{wchar_t data_buf[10]=L"AAAAAAAAA";if (data >=0){printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}void _main(){int data;fscanf (stdin, "%d", &data);_main_data=data;main_sink();} | static void main_sink(){int data=_main_data;{wchar_t data_buf[10]=L"AAAAAAAAA";if (data >=0){printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}static void main(){int data;data=7;_main_data=data;main_sink();} |
void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));{wchar_t * data=data_ref;delete [] data;}} | static void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));{wchar_t * data=data_ref;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 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();}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){{HMODULE hModule;hModule=LoadLibraryW(data);if (hModule!=NULL){FreeLibrary(hModule);printLine("Library loaded and freed successfully");}else{printLine("Unable to load library");}}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"C:\\Windows\\System32\\winsrv.dll");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){{HMODULE hModule;hModule=LoadLibraryW(data);if (hModule!=NULL){FreeLibrary(hModule);printLine("Library loaded and freed successfully");}else{printLine("Unable to load library");}}} |
static void main_sink(int data){{int result=data-1;printIntLine(result);}}void _main(){int data;data=-1;data=INT_MIN;main_sink(data);} | static void main_sink(int data){{int result=data-1;printIntLine(result);}}static void main(){int data;data=-1;data=5;main_sink(data);} |
void b_main_sink(_struct_type my_struct);void _main(){int * data;_struct_type my_struct;int data_mainbuf[50];int data_goodbuf[100];data=data_mainbuf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int * data=my_struct.a;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);}} | void b_main_sink(_struct_type my_struct);static void main(){int * data;_struct_type my_struct;int data_badbuf[50];int data_goodbuf[100];data=data_goodbuf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){int * data=my_struct.a;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);}} |
void _main(){int data;if(global_returns_t_or_f()){{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();}}else{data=7;}if(global_returns_t_or_f()){{int data_buf[10]={0,1,2,3,4,5,6,7,8,9};if (data >=0){printIntLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}else{{int data_buf[10]={0,1,2,3,4,5,6,7,8,9};if (data >=0 && data < 10){printIntLine(data_buf[data]);}else{printLine("ERROR: Array index is out-of-bounds");}}}} | static void main(){int data;if(global_returns_t_or_f()){data=7;}else{data=7;}if(global_returns_t_or_f()){{int data_buf[10]={0,1,2,3,4,5,6,7,8,9};if (data >=0){printIntLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}else{{int data_buf[10]={0,1,2,3,4,5,6,7,8,9};if (data >=0){printIntLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}} |
static void main_sink(twointsclass * data){printIntLine(data[0].a);}void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;data=NULL;func_ptr(data);} | static void main_sink(twointsclass * data){printIntLine(data[0].a);}static void main(){twointsclass * data;void (*func_ptr) (twointsclass *)=main_sink;data=NULL;{twointsclass * tmp=new twointsclass;tmp->a=0;tmp->b=0;data=tmp;}func_ptr(data);} |
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;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;{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;if (strcmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");} |
void main(){char * data;union_type my_union;data=NULL;data=new char[100];memset(data, 'A', 100-1);data[100-1]='\0';delete [] data;my_union.a=data;{char * data=my_union.b;printLine(data);}} | static void main(){char * data;union_type my_union;data=NULL;data=new char[100];memset(data, 'A', 100-1);data[100-1]='\0';my_union.a=data;{char * data=my_union.b;printLine(data);}} |
static void main_sink(char * data){_spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}void _main(){char * data;void (*func_ptr) (char *)=main_sink;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';}}}func_ptr(data);} | static void main_sink(char * data){_spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}static void main(){char * data;void (*func_ptr) (char *)=main_sink;char data_buf[100]="";data=data_buf;strcat(data, "*.*");func_ptr(data);} |
void main(){wchar_t * data;data=NULL;{wchar_t mystring[]=L"mystring";data=wcsdup(mystring);}{wchar_t * data_copy=data;wchar_t * data=data_copy;delete data;}} | static void main(){wchar_t * data;data=NULL;{wchar_t mystring[]=L"mystring";data=wcsdup(mystring);}{wchar_t * data_copy=data;wchar_t * data=data_copy;free(data);}} |
static void main_sink(char * data){{char src[100];memcpy(data, src, 100*sizeof(char));printLine(data);}}void _main(){char * data;void (*func_ptr) (char *)=main_sink;char * data_mainbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_mainbuf;func_ptr(data);} | static void main_sink(char * data){{char src[100];memcpy(data, src, 100*sizeof(char));printLine(data);}}static void main(){char * data;void (*func_ptr) (char *)=main_sink;char * data_badbuf=(char *)ALLOCA(50*sizeof(char));char * data_goodbuf=(char *)ALLOCA(100*sizeof(char));data=data_goodbuf;func_ptr(data);} |
static void main_sink(char * data){printLine(data);free(data);}void _main(){char * data;void (*func_ptr) (char *)=main_sink;{char data_buf[100];data=data_buf;}func_ptr(data);} | static void main_sink(char * data){printLine(data);free(data);}static void main(){char * data;void (*func_ptr) (char *)=main_sink;{char * data_buf=(char *)malloc(100*sizeof(char));data=data_buf;}func_ptr(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);}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 c_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);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);}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 c_main_sink(wchar_t * data){main_vasink(data, data);} |
void b_main_vasink(wchar_t * data, ...);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *, ...)=b_main_vasink;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);}}func_ptr(data, data);}void b_main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, data, args);va_end(args);}} | static void main(){wchar_t * data;void (*func_ptr) (wchar_t *, ...)=b_main_vasink;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);}}func_ptr(data);}void b_main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, L"%s", args);va_end(args);}} |
void b_main_sink(void * void_data_ptr);void _main(){long long * data;data=NULL;data=(long long *)malloc(100*sizeof(long long));free(data);b_main_sink(&data);}void b_main_sink(void * void_data_ptr){long long * * data_ptr=(long long * *)void_data_ptr;long long * data=(*data_ptr);free(data);} | static void main(){long long * data;data=NULL;data=(long long *)malloc(100*sizeof(long long));b_main_sink(&data);}void b_main_sink(void * void_data_ptr){long long * * data_ptr=(long long * *)void_data_ptr;long long * data=(*data_ptr);free(data);} |
void _main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';{char * data=*data_ptr1;data=data_buf-8;}{char * data=*data_ptr2;{char dest[100];strncpy(dest, data, strlen(dest));dest[100-1]='\0';printLine(dest);}}} | static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';{char * data=*data_ptr1;data=data_buf;}{char * data=*data_ptr2;{char dest[100];strncpy(dest, data, strlen(dest));dest[100-1]='\0';printLine(dest);}}} |
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();}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 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();}fprintf(stdout, "%s\n", data);} |
void _main(){if(global_returns_t_or_f()){{wchar_t data_buf[100]=L"";wchar_t * data=data_buf;if (_snwprintf(data,100-wcslen(SRC)-1, L"%s\n", SRC) < 0){}}}else{{wchar_t data_buf[100]=L"";wchar_t * data=data_buf;if (_snwprintf(data,100-wcslen(SRC)-1, L"%s\n", SRC) < 0){printLine("snwprintf failed!");exit(1);}}}} | static void main(){if(global_returns_t_or_f()){{wchar_t data_buf[100]=L"";wchar_t * data=data_buf;if (_snwprintf(data,100-wcslen(SRC)-1, L"%s\n", SRC) < 0){printLine("snwprintf failed!");exit(1);}}}else{{wchar_t data_buf[100]=L"";wchar_t * data=data_buf;if (_snwprintf(data,100-wcslen(SRC)-1, L"%s\n", SRC) < 0){printLine("snwprintf failed!");exit(1);}}}} |
void main(){long long * data;data=NULL;data=new long long;printLongLongLine(*data);} | static void main(){long long * data;data=NULL;long long data_good;data=&data_good;printLongLongLine(*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 _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;main_vasink(data, 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);}}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;main_vasink(data, data);}} |
void _main(){wchar_t * data;_union_type my_union;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);}}my_union.a=data;{wchar_t * data=my_union.b;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}} | static void main(){wchar_t * data;_union_type my_union;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");my_union.a=data;{wchar_t * data=my_union.b;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}} |
void main(){twointsclass * data;data=new twointsclass[10];for(int i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}} | static void main(){twointsclass * data;data=new twointsclass[10];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(){int data;int *data_ptr1=&data;int *data_ptr2=&data;{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;{wchar_t data_buf[10]=L"AAAAAAAAA";if (data >=0){printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}} | static void main(){int data;int *data_ptr1=&data;int *data_ptr2=&data;{int data=*data_ptr1;data=7;}{int data=*data_ptr2;{wchar_t data_buf[10]=L"AAAAAAAAA";if (data >=0){printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}}} |
void _main_sink(int data){printIntLine(100 % 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){printIntLine(100 % data);}static void main(){int data;data=-1;data=7;_main_sink(data);} |
void b_main_sink(int data);void _main(){int data;void (*func_ptr) (int)=b_main_sink;{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){{wchar_t data_buf[10]=L"AAAAAAAAA";if (data >=0){printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}} | static void main(){int data;void (*func_ptr) (int)=b_main_sink;{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){{wchar_t data_buf[10]=L"AAAAAAAAA";{printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is out-of-bounds");}}} |
void _main(){int data;data=-1;if(global_returns_t_or_f()){data=RAND32();}else{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);}} | static void main(){int data;data=-1;if(global_returns_t_or_f()){data=100-1;}else{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 b_main_sink(int count);void _main(){int count;void (*func_ptr) (int)=b_main_sink;count=-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;count=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(count);}void b_main_sink(int count){{size_t i=0;for (i=0;i < (size_t)count;i++){printLine("Hello");}}} | static void main(){int count;void (*func_ptr) (int)=b_main_sink;count=-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;count=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(count);}void b_main_sink(int count){{size_t i=0;if (count > 0 && count <=20){for (i=0;i < (size_t)count;i++){printLine("Hello");}}}} |
static void main_sink(){int data=_main_data;{int result=data+1;printIntLine(result);}}void _main(){int data;data=-1;data=INT_MAX;_main_data=data;main_sink();} | static void main_sink(){int data=_main_data;{int result=data+1;printIntLine(result);}}static void main(){int data;data=-1;data=5;_main_data=data;main_sink();} |