source
stringlengths 23
1.83k
| target
stringlengths 42
1.55k
|
---|---|
static void main_sink(wchar_t * data){{wchar_t dest[100];memcpy(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;func_ptr(data);} | static void main_sink(wchar_t * data){{wchar_t dest[100];memcpy(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;func_ptr(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 *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnvp(_P_WAIT, COMMAND_INT, args);}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_wspawnvp(_P_WAIT, COMMAND_INT, args);}} |
void b_main_sink(char * data);void _main(){char * data;char data_buf[100];data=data_buf;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]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);}} | void b_main_sink(char * data);static void main(){char * data;char data_buf[100];data=data_buf;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]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);}} |
static void main_sink(){twointsclass * data=main_data;printIntLine(data[0].a);}void main(){twointsclass * data;data=NULL;data=new twointsclass[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}delete [] data;main_data=data;main_sink();} | static void main_sink(){twointsclass * data=main_data;printIntLine(data[0].a);}static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}main_data=data;main_sink();} |
static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(data, args);va_end(args);}}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}main_vasink(data, data);} | static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(data, args);va_end(args);}}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");main_vasink(data, data);} |
void main_sink(void * void_data_ptr);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){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);} | static void main(){twoints * data;data=NULL;twoints data_good;data=&data_good;data->a=0;data->b=0;printStructLine(data);main_sink(&data);}void main_sink(void * void_data_ptr){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);} |
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;{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_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 b_main_sink(_struct_type my_struct);void _main(){wchar_t * data;_struct_type my_struct;wchar_t data_buf[FILENAME_MAX]=BASEPATH;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)(FILENAME_MAX-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_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} | void b_main_sink(_struct_type my_struct);static void main(){wchar_t * data;_struct_type my_struct;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;wcscat(data, L"file.txt");my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}} |
void _main(){wchar_t * data;_union_type my_union;wchar_t data_mainbuf[50];wchar_t data_goodbuf[100];data=data_mainbuf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);}}} | static void main(){wchar_t * data;_union_type my_union;wchar_t data_badbuf[50];wchar_t data_goodbuf[100];data=data_goodbuf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);}}} |
static void main_sink(){twoints * data=_main_data;data[0].a=1;data[0].b=1;printStructLine(&data[0]);free(data);}void _main(){twoints * data;data=(twoints *)realloc(data, 100);_main_data=data;main_sink();} | static void main_sink(){twoints * data=_main_data;if (data!=NULL){data[0].a=1;data[0].b=1;printStructLine(&data[0]);free(data);}}static void main(){twoints * data;data=(twoints *)realloc(data, 100);_main_data=data;main_sink();} |
void b_main_sink(_struct_type my_struct);void _main(){wchar_t * data;_struct_type my_struct;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}} | void b_main_sink(_struct_type my_struct);static void main(){wchar_t * data;_struct_type my_struct;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{wchar_t src[100];memmove(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(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);{short s=(short)data;printf("%hd\n", s);}} | void b_main_sink(void * void_data_ptr);static void main(){int data;data=-1;data=CHAR_MAX-5;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);{short s=(short)data;printf("%hd\n", s);}} |
static void main_sink(unsigned char data){{unsigned char result=data * data;printHexUnsignedCharLine(result);}}void _main(){unsigned char data;void (*func_ptr) (unsigned char)=main_sink;data=' ';data=UCHAR_MAX;func_ptr(data);} | static void main_sink(unsigned char data){{unsigned char result=-1;if (data <=(unsigned char)sqrt((unsigned char)UCHAR_MAX)){result=data * data;printHexUnsignedCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}static void main(){unsigned char data;void (*func_ptr) (unsigned char)=main_sink;data=' ';data=UCHAR_MAX;func_ptr(data);} |
static void main_sink(list<int> data){{list<int>::iterator i;cout << "The list contains: ";for( i=data.begin();i!=data.end();i++){if (!*i){data.clear();}cout << " " << *i;}cout << endl;}}void main(){list<int> data;data.push_back(100);data.push_back(0);main_sink(data);} | static void main_sink(list<int> data){{list<int>::iterator i;cout << "The list contains: ";for( i=data.begin();i!=data.end();i++){if (!*i){data.clear();}cout << " " << *i;}cout << endl;}}static void main(){list<int> data;data.push_back(100);data.push_back(200);main_sink(data);} |
void main(){long long * data;long long * *data_ptr1=&data;long long * *data_ptr2=&data;data=NULL;{long long * data=*data_ptr1;data=(long long *)calloc(100, sizeof(long long));}{long long * data=*data_ptr2;delete [] data;}} | static void main(){long long * data;long long * *data_ptr1=&data;long long * *data_ptr2=&data;data=NULL;{long long * data=*data_ptr1;data=new long long[100];}{long long * data=*data_ptr2;delete [] data;}} |
void _main(){void * data;_union_type my_union;twoints data_goodbuf;int data_mainbuf=100;data_goodbuf.a=0;data_goodbuf.b=0;data=&data_mainbuf;my_union.a=data;{void * data=my_union.b;printStructLine((twoints *)data);}} | static void main(){void * data;_union_type my_union;twoints data_goodbuf;int data_badbuf=100;data_goodbuf.a=0;data_goodbuf.b=0;data=&data_goodbuf;my_union.a=data;{void * data=my_union.b;printStructLine((twoints *)data);}} |
void _main(){if(global_returns_t_or_f()){{char data[150], dest[100];memset(data, 'A', 149);data[149]='\0';strncpy(dest, data, 100);printLine(dest);}}else{{char data[150], dest[100];memset(data, 'A', 149);data[149]='\0';strncpy(dest, data, 100);printLine(dest);}}} | static void main(){if(global_returns_t_or_f()){{char data[150], dest[100];memset(data, 'A', 149);data[149]='\0';strncpy(dest, data, 100);printLine(dest);}}else{{char data[150], dest[100];memset(data, 'A', 149);data[149]='\0';strncpy(dest, data, 100);printLine(dest);}}} |
void b_main_sink(wchar_t * data_array[]);void _main(){wchar_t * data;wchar_t * data_array[5];wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t dest[100];wcscpy(dest, data);printWLine(dest);}} | void b_main_sink(wchar_t * data_array[]);static void main(){wchar_t * data;wchar_t * data_array[5];wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];{wchar_t dest[100];wcscpy(dest, data);printWLine(dest);}} |
void b_main_sink(_struct_type my_struct);void _main(){double * data;_struct_type my_struct;data=NULL;data=(double *)malloc(sizeof(data));my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){double * data=my_struct.a;printDoubleLine(*data);free(data);} | void b_main_sink(_struct_type my_struct);static void main(){double * data;_struct_type my_struct;data=NULL;data=(double *)malloc(sizeof(*data));my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){double * data=my_struct.a;printDoubleLine(*data);free(data);} |
void main_sink(wchar_t * data);void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));func_ptr(data);}void main_sink(wchar_t * data){delete data;} | static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;data=new wchar_t;func_ptr(data);}void main_sink(wchar_t * data){delete data;} |
void b_main_sink(char * data);void _main(){char * data;char data_buf[250]="PATH=";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(250-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(250-data_len), pFile);fclose(pFile);}}}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){PUTENV(data);} | void b_main_sink(char * data);static void main(){char * data;char data_buf[250]="PATH=";data=data_buf;strcat(data, NEW_PATH);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){PUTENV(data);} |
static wchar_t * _main_data;static wchar_t * _goodG2B_data;static wchar_t * _goodB2G_data;static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, data, args);va_end(args);}}static void main_sink(){wchar_t * data=_main_data;main_vasink(data, 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();}_main_data=data;main_sink();} | static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vfwprintf(stdout, data, args);va_end(args);}}static void main_sink(){wchar_t * data=_main_data;main_vasink(data, data);}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");_main_data=data;main_sink();} |
void _main(){int data;data=-1;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);{int data_copy=data;int data=data_copy;}} | static void main(){int data;data=-1;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);{int data_copy=data;int data=data_copy;if (data!=-1){CLOSE(data);}}} |
void b_main_sink(void * void_data_ptr);void _main(){unsigned char data;data=' ';data=(unsigned char)rand();b_main_sink(&data);}void b_main_sink(void * void_data_ptr){unsigned char * data_ptr=(unsigned char *)void_data_ptr;unsigned char data=(*data_ptr);{unsigned char result=data * data;printHexUnsignedCharLine(result);}} | static void main(){unsigned char data;data=' ';data=(unsigned char)rand();b_main_sink(&data);}void b_main_sink(void * void_data_ptr){unsigned char * data_ptr=(unsigned char *)void_data_ptr;unsigned char data=(*data_ptr);{unsigned char result=-1;if (data <=(unsigned char)sqrt((unsigned char)UCHAR_MAX)){result=data * data;printHexUnsignedCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}} |
static void main_sink(){wchar_t * data=_main_data;{wchar_t src[100];wcscat(data, src);printWLine(data);}}void _main(){wchar_t * data;wchar_t data_buf[100];data=data_buf;_main_data=data;main_sink();} | static void main_sink(){wchar_t * data=_main_data;{wchar_t src[100];wcscat(data, src);printWLine(data);}}static void main(){wchar_t * data;wchar_t data_buf[100];data=data_buf;_main_data=data;main_sink();} |
static void main_sink(char * data){for (;*data!='\0';data++){if (*data==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}void _main(){char * data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}main_sink(data);} | static void main_sink(char * data){{size_t i;for (i=0;i < strlen(data);i++){if (data[i]==SEARCH_CHAR){printLine("We have a match!");break;}}free(data);}}static void main(){char * data;data=(char *)malloc(100*sizeof(char));data[0]='\0';{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}main_sink(data);} |
int b_main_source(int data);void _main(){int data;data=-1;data=b_main_source(data);{size_t i;int *b;b=(int*)malloc(data * sizeof(int));for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);free(b);}}int b_main_source(int data){{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();}return data;} | int b_main_source(int data);static void main(){int data;data=-1;data=b_main_source(data);{size_t i;int *b;b=(int*)malloc(data * sizeof(int));for (i=0;i < (size_t)data;i++){}printIntLine(b[0]);free(b);}}int b_main_source(int data){data=20;return data;} |
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}} |
void main(){twointsclass * data;data=NULL;data=new twointsclass[100];data[0].a=0;data[0].b=0;printIntLine(data[0].a);printIntLine(data[0].b);{twointsclass * data_copy=data;twointsclass * data=data_copy;}} | static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];data[0].a=0;data[0].b=0;printIntLine(data[0].a);printIntLine(data[0].b);{twointsclass * data_copy=data;twointsclass * data=data_copy;delete[] data;}} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);if(100-data_len > 1){fgetws(data+data_len, (int)(100-data_len), stdin);data_len=wcslen(data);if (data_len > 0){data[data_len-1]=L'\0';}}}b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void d_main_sink(wchar_t * data);void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){wprintf(data);} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){wprintf(data);} |
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;data=NULL;{wchar_t * data_buf=(wchar_t *)malloc(100*sizeof(wchar_t));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 c_main_sink(wchar_t * data){{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;data=NULL;{wchar_t * data_buf=(wchar_t *)malloc(100*sizeof(wchar_t));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 c_main_sink(wchar_t * data){{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(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;printf(data);} | static 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;printf("%s\n", data);} |
void b_main_sink(char * data);void _main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));strcpy(data, "A String");printLine(data);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){} | static void main(){char * data;data=NULL;{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}b_main_sink(data);}void b_main_sink(char * data){c_main_sink(data);}void c_main_sink(char * data){} |
void b_main_sink();void _main(){unsigned char data;data=' ';data=UCHAR_MAX;_main_data=data;b_main_sink();}void b_main_sink(){unsigned char data=_main_data;{unsigned char result=data+1;printHexUnsignedCharLine(result);}} | static void main(){unsigned char data;data=' ';data=UCHAR_MAX;_main_data=data;b_main_sink();}void b_main_sink(){unsigned char data=_main_data;{unsigned char result=-1;if (data < UCHAR_MAX){result=data+1;printHexUnsignedCharLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}} |
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t data_buf[100];data=data_buf;b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{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 b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{wchar_t dest[50]=L"";wcsncpy(dest, data, wcslen(data));printWLine(data);}} |
void _main(){int data;data=-1;data=INT_MIN;{int data_copy=data;int data=data_copy;{int result=data-1;printIntLine(result);}}} | static void main(){int data;data=-1;data=5;{int data_copy=data;int data=data_copy;{int result=data-1;printIntLine(result);}}} |
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}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);}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 e_main_sink(char * data){main_vasink(data, data);} | static void main(){char * data;char data_buf[100]="";data=data_buf;{size_t data_len=strlen(data);if(100-data_len > 1){fgets(data+data_len, (int)(100-data_len), stdin);data_len=strlen(data);if (data_len > 0){data[data_len-1]='\0';}}}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){e_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);}}void e_main_sink(char * data){main_vasink(data, 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 b_main_sink(char * data){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnv(_P_WAIT, COMMAND_INT_PATH, args);}} | void b_main_sink(char * data);static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");b_main_sink(data);}void b_main_sink(char * data){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnv(_P_WAIT, COMMAND_INT_PATH, args);}} |
void main(){long long * data;data=NULL;data=new long long[100];data[0]=5L;printLongLongLine(data[0]);} | static void main(){long long * data;data=NULL;{long long data_goodbuf[100];data=data_goodbuf;data[0]=5L;printLongLongLine(data[0]);}} |
void main(){twoints * data;union_type my_union;data=NULL;data=new twoints;data->a=1;data->b=2;delete data;my_union.a=data;{twoints * data=my_union.b;printStructLine(data);}} | static void main(){twoints * data;union_type my_union;data=NULL;data=new twoints;data->a=1;data->b=2;my_union.a=data;{twoints * data=my_union.b;printStructLine(data);}} |
void b_main_sink(char * data_array[]);void _main(){char * data;char * data_array[5];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);}}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} | void b_main_sink(char * data_array[]);static void main(){char * data;char * data_array[5];char data_buf[100]="";data=data_buf;strcat(data, "*.*");data_array[2]=data;b_main_sink(data_array);}void b_main_sink(char * data_array[]){char * data=data_array[2];{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} |
void main(){double * data;double * &data_ref=data;data=new double[10];{int i;for(i=0;i<(10/2);i++){data[i]=(double)i;}}{double * data=data_ref;{int i;for(i=0;i<10;i++){printDoubleLine(data[i]);}}delete [] data;}} | static void main(){double * data;double * &data_ref=data;data=new double[10];{int i;for(i=0;i<(10/2);i++){data[i]=(double)i;}}{double * data=data_ref;{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 _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){{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);}}}}else{data=PASSWORD;}if(global_returns_t_or_f()){if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}else{if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){data=PASSWORD;}else{data=PASSWORD;}if(global_returns_t_or_f()){if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}else{if (wcsncmp(PASSWORD, data, wcslen(data))==0) printLine("Access granted");else printLine("Access denied!");}} |
void _main_sink(int data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}_main_sink(data);} | void _main_sink(int data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}static void main(){int data;data=-1;data=100-1;_main_sink(data);} |
void _main(){int data;data=-1;data=RAND32();{int result=data+1;printIntLine(result);}} | static void main(){int data;data=-1;data=5;{int result=data+1;printIntLine(result);}} |
static void main_sink(char * data){fprintf(stdout, data);}void _main(){char * data;void (*func_ptr) (char *)=main_sink;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);}}func_ptr(data);} | static void main_sink(char * data){fprintf(stdout, "%s\n", data);}static void main(){char * data;void (*func_ptr) (char *)=main_sink;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);}}func_ptr(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);{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(void * void_data_ptr);static void main(){int data;data=-1;data=100-1;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){memmove(dest, src, data);}printLine(dest);}} |
void main_sink_b(long long * data);void main(){long long * data;data=NULL;data=new long long;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_e(long long * data);void main_sink_d(long long * data){main_sink_e(data);}void main_sink_e(long long * data){free(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){main_sink_d(data);}void main_sink_d(long long * data){main_sink_e(data);}void main_sink_e(long long * 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));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;b_main_sink(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];}data[100-1]=L'\0';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));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;b_main_sink(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];}data[100-1]=L'\0';printWLine(data);}} |
void b_main_sink(char * data_ptr);void _main(){char data;data=' ';data=(char)rand();b_main_sink(&data);}void b_main_sink(char * data_ptr){char data=*data_ptr;{char result=data+1;printHexCharLine(result);}} | static void main(){char data;data=' ';data=5;b_main_sink(&data);}void b_main_sink(char * data_ptr){char data=*data_ptr;{char result=data+1;printHexCharLine(result);}} |
void _main(){if(global_returns_t_or_f()){{union{struct{char a, b, c, d;}s;long l;}u;u.l=0x10203040;printIntLine(u.l);}}else{{long l;l=0x10203040;* */l |=LONG_MIN;printIntLine(l);}}} | static void main(){if(global_returns_t_or_f()){{long l;l=0x10203040;* */l |=LONG_MIN;printIntLine(l);}}else{{long l;l=0x10203040;* */l |=LONG_MIN;printIntLine(l);}}} |
static void main_sink(char * data){{char dest[100]="";SNPRINTF(dest, 100-1, data);printLine(dest);}}void _main(){char * data;void (*func_ptr) (char *)=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);} | static void main_sink(char * data){{char dest[100]="";SNPRINTF(dest, 100-1, "%s", data);printLine(dest);}}static void main(){char * data;void (*func_ptr) (char *)=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);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);}}}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 (strstr(PASSWORD, data)!=NULL) 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);}}}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(){char data;char *data_ptr1=&data;char *data_ptr2=&data;data=' ';{char data=*data_ptr1;data=CHAR_MAX;}{char data=*data_ptr2;{char result=data+1;printHexCharLine(result);}}} | static void main(){char data;char *data_ptr1=&data;char *data_ptr2=&data;data=' ';{char data=*data_ptr1;data=5;}{char data=*data_ptr2;{char result=data+1;printHexCharLine(result);}}} |
void main_sink(wchar_t * data);void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;data=new wchar_t;func_ptr(data);}void main_sink(wchar_t * data){delete [] data;} | static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;data=NULL;data=new wchar_t;func_ptr(data);}void main_sink(wchar_t * data){delete data;} |
void main(){twointsclass * data;data=NULL;data=new twointsclass[50];{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twointsclass));printIntLine(data[0].a);delete [] data;}} | static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];{twointsclass src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twointsclass));printIntLine(data[0].a);delete [] data;}} |
static void main_sink(){unsigned int data=_main_data;{unsigned int result=data * 2;printUnsignedLine(result);}}void _main(){unsigned int data;data=0;data=(unsigned int)RAND32();_main_data=data;main_sink();} | static void main_sink(){unsigned int data=_main_data;{unsigned int result=data * 2;printUnsignedLine(result);}}static void main(){unsigned int data;data=0;data=5;_main_data=data;main_sink();} |
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 listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}void b_main_sink(int data){{char data_buf[10]="AAAAAAAAA";if (data >=0){printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}} | static void main(){int data;void (*func_ptr) (int)=b_main_sink;data=7;func_ptr(data);}void b_main_sink(int data){{char data_buf[10]="AAAAAAAAA";if (data >=0){printHexCharLine(data_buf[data]);}else{printLine("ERROR: Array index is negative");}}} |
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 c_main_sink(wchar_t * data){_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} | void b_main_sink(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscat(data, L"*.*");b_main_sink(data);}void c_main_sink(wchar_t * data);void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);} |
void main_sink_b(wchar_t * data);void main(){wchar_t * data;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;}main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t dest[100];memmove(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}} | void main_sink_b(wchar_t * data);static void main(){wchar_t * data;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;}main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_d(wchar_t * data);void main_sink_c(wchar_t * data){main_sink_d(data);}void main_sink_e(wchar_t * data);void main_sink_d(wchar_t * data){main_sink_e(data);}void main_sink_e(wchar_t * data){{wchar_t dest[100];memmove(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}} |
static void main_sink(int data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}void _main(){int data;void (*func_ptr) (int)=main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);} | static void main_sink(int data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}static void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;data=100-1;func_ptr(data);} |
void main(){twointsclass * data;data=NULL;if(global_returns_t_or_f()){data=new twointsclass[100];}else{data=new twointsclass;}if(global_returns_t_or_f()){delete data;}else{delete [] data;}} | static void main(){twointsclass * data;data=NULL;if(global_returns_t_or_f()){data=new twointsclass;}else{data=new twointsclass;}if(global_returns_t_or_f()){delete data;}else{delete data;}} |
static void main_sink(char * data){delete data;}void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));main_sink(data);} | static void main_sink(char * data){free(data);}static void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));main_sink(data);} |
void _main(){char * data;char data_buf[100]="";data=data_buf;if(global_returns_t_or_f()){{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();}}else{strcat(data, "*.*");}{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} | static void main(){char * data;char data_buf[100]="";data=data_buf;if(global_returns_t_or_f()){strcat(data, "*.*");}else{strcat(data, "*.*");}{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}} |
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 e_main_sink(wchar_t * data);void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"15");b_main_sink(data);}void b_main_sink(wchar_t * data){c_main_sink(data);}void c_main_sink(wchar_t * data){d_main_sink(data);}void d_main_sink(wchar_t * data){e_main_sink(data);}void e_main_sink(wchar_t * data){{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} |
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;{wchar_t * data_copy=data;wchar_t * data=data_copy;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;{wchar_t * data_copy=data;wchar_t * data=data_copy;}} |
void b_main_sink(short data);void _main(){short data;data=0;{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();}b_main_sink(data);}void c_main_sink(short data);void b_main_sink(short data){c_main_sink(data);}void c_main_sink(short 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);}}} | void b_main_sink(short data);static void main(){short data;data=0;data=100-1;b_main_sink(data);}void c_main_sink(short data);void b_main_sink(short data){c_main_sink(data);}void c_main_sink(short 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_sink(int data){printIntLine(100 % data);}void _main(){int data;void (*func_ptr) (int)=main_sink;data=-1;data=0;func_ptr(data);} | static void main_sink(int data){printIntLine(100 % data);}static void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;data=7;func_ptr(data);} |
static int main_source(int data){{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}return data;}void _main(){int data;data=-1;data=main_source(data);{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 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=(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");}}} |
void b_main_sink();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);}}_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{char dest[100]="";SNPRINTF(dest, 100-1, data);printLine(dest);}} | 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);}}_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{char dest[100]="";SNPRINTF(dest, 100-1, "%s", data);printLine(dest);}} |
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;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnv(_P_WAIT, COMMAND_INT_PATH, args);}} | void b_main_sink();static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");_main_data=data;b_main_sink();}void b_main_sink(){char * data=_main_data;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnv(_P_WAIT, COMMAND_INT_PATH, args);}} |
static wchar_t * main_source(wchar_t * data){{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}return data;}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);wprintf(data);} | static wchar_t * main_source(wchar_t * data){{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}return data;}static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);wprintf(L"%s\n", data);} |
void _main_sink(char * data){{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);free(data);}}void _main(){char * data;data=NULL;data=(char *)malloc(50*sizeof(char));_main_sink(data);} | void _main_sink(char * data){{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);free(data);}}static void main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));_main_sink(data);} |
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}wchar_t * b_main_source(wchar_t * data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET 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;} | wchar_t * b_main_source(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=b_main_source(data);EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}wchar_t * b_main_source(wchar_t * data){wcscat(data, L"*.*");return data;} |
void b_main_sink(char * * data_ptr);void _main(){char * data;char data_buf[250]="PATH=";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_ptr){char * data=*data_ptr;PUTENV(data);} | void b_main_sink(char * * data);static void main(){char * data;char data_buf[250]="PATH=";data=data_buf;strcat(data, NEW_PATH);b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;PUTENV(data);} |
static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(data, args);va_end(args);}}void _main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;wchar_t data_buf[100]=L"";data=data_buf;{wchar_t * data=*data_ptr1;{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=*data_ptr2;main_vasink(data, data);}} | static void main_vasink(wchar_t * data, ...){{va_list args;va_start(args, data);vwprintf(L"%s", args);va_end(args);}}static void main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;wchar_t data_buf[100]=L"";data=data_buf;{wchar_t * data=*data_ptr1;{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=*data_ptr2;main_vasink(data, data);}} |
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);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_ptr){wchar_t * data=*data_ptr;{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}} | 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_ptr){wchar_t * data=*data_ptr;{int i, n, v;if (swscanf(data, L"%d", &n)==1){if (n < MAX_LOOP){v=0;for (i=0;i < n;i++){}printIntLine(v);}}}} |
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);{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}}wchar_t * b_main_source(wchar_t * data){{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';}}}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);{FILE *pipe;pipe=POPEN(data, L"wb");if (pipe!=NULL) PCLOSE(pipe);}}wchar_t * b_main_source(wchar_t * data){wcscat(data, L"*.*");return data;} |
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf-8;b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{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(wchar_t * * data);static void main(){wchar_t * data;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));wmemset(data_buf, L'A', 100-1);data_buf[100-1]=L'\0';data=data_buf;b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{size_t i;wchar_t src[100];for (i=0;i < 100;i++){data[i]=src[i];}data[100-1]=L'\0';printWLine(data);}} |
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=b_main_source(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);}}}wchar_t * b_main_source(wchar_t * data){{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET 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)(FILENAME_MAX-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;} | wchar_t * b_main_source(wchar_t * data);static void main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=b_main_source(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);}}}wchar_t * b_main_source(wchar_t * data){wcscat(data, L"file.txt");return data;} |
void main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}} | static void main(){int data;data=-1;data=20;{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}} |
void main_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_d(int * data);void main_sink_c(int * data){main_sink_d(data);}void main_sink_e(int * data);void main_sink_d(int * data){main_sink_e(data);}void main_sink_e(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){main_sink_d(data);}void main_sink_d(int * data){main_sink_e(data);}void main_sink_e(int * data){delete data;} |
void main_sink_b(long long * data);void main(){long long * data;data=NULL;data=new long long[100];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){delete [] data;} | static void main(){long long * data;data=NULL;data=new long long[100];delete [] data;main_sink_b(data);}void main_sink_b(long long * data){main_sink_c(data);}void main_sink_c(long long * data){} |
FILE * b_main_source(FILE * data);void _main(){FILE * data;data=NULL;data=b_main_source(data);fclose(data);}FILE * b_main_source(FILE * data){data=fopen("file.txt", "w+");return data;} | FILE * b_main_source(FILE * data);static void main(){FILE * data;data=NULL;data=b_main_source(data);if (data!=NULL){fclose(data);}}FILE * b_main_source(FILE * data){data=fopen("file.txt", "w+");return data;} |
void main(){int * data;data=NULL;data=new int[100];delete data;} | static void main(){int * data;data=NULL;data=new int;delete data;} |
void b_main_sink(long long * data_array[]);void _main(){long long * data;long long * data_array[5];data=NULL;data=(long long *)malloc(100*sizeof(long long));{size_t i;for(i=0;i < 100;i++){data[i]=5L;}}free(data);data_array[2]=data;b_main_sink(data_array);}void b_main_sink(long long * data_array[]){long long * data=data_array[2];printLongLongLine(data[0]);} | static void main(){long long * data;long long * data_array[5];data=NULL;data=(long long *)malloc(100*sizeof(long long));{size_t i;for(i=0;i < 100;i++){data[i]=5L;}}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(long long * data_array[]){long long * data=data_array[2];printLongLongLine(data[0]);} |
void b_main_sink(void * void_data_ptr);void _main(){twoints * data;data=NULL;data=(twoints *)malloc(50*sizeof(twoints));b_main_sink(&data);}void b_main_sink(void * void_data_ptr){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);{twoints src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twoints));printStructLine(&data[0]);free(data);}} | void b_main_sink(void * void_data_ptr);static void main(){twoints * data;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));b_main_sink(&data);}void b_main_sink(void * void_data_ptr){twoints * * data_ptr=(twoints * *)void_data_ptr;twoints * data=(*data_ptr);{twoints src[100];{size_t i;for (i=0;i < 100;i++){src[i].a=0;src[i].b=0;}}memcpy(data, src, 100*sizeof(twoints));printStructLine(&data[0]);free(data);}} |
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;wchar_t *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}{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;{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();}{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, L"%s", data);printWLine(dest);}} |
void main(){char * data;data=NULL;data=(char *)calloc(100, sizeof(char));delete data;} | static void main(){char * data;data=NULL;data=(char *)calloc(100, sizeof(char));free(data);} |
void main_sink_b(twointsclass * data);void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=1;data->b=2;delete data;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){printIntLine(data->a);} | static void main(){twointsclass * data;data=NULL;data=new twointsclass;data->a=1;data->b=2;main_sink_b(data);}void main_sink_b(twointsclass * data){main_sink_c(data);}void main_sink_c(twointsclass * data){main_sink_d(data);}void main_sink_d(twointsclass * data){printIntLine(data->a);} |
static void main_sink(){char * data=main_data;{char src[100];_snprintf(data, 100, "%s", src);printLine(data);delete [] data;}}void main(){char * data;data=NULL;data=new char[50];main_data=data;main_sink();} | static void main_sink(){char * data=main_data;{char src[100];_snprintf(data, 100, "%s", src);printLine(data);delete [] data;}}static void main(){char * data;data=NULL;data=new char[100];main_data=data;main_sink();} |
void b_main_sink(void * void_data_ptr);void _main(){wchar_t * data;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));wcscpy(data, L"A String");printWLine(data);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);} | static void main(){wchar_t * data;data=NULL;data=(wchar_t *)calloc(100, sizeof(wchar_t));wcscpy(data, L"A String");printWLine(data);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);free(data);} |
void main(){wchar_t * data;data=new wchar_t[100];{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);delete [] data;}}} | static void main(){wchar_t * data;data=new wchar_t[100];{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);delete [] data;}}} |
void b_main_sink(wchar_t * * data_ptr);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 connect_socket=INVALID_SOCKET;size_t data_len=wcslen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]=L'\0';replace=wcschr(data, L'\r');if (replace) *replace=L'\0';replace=wcschr(data, L'\n');if (replace) *replace=L'\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;_wsystem(data);} | 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 b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;_wsystem(data);} |
void main(){int data;int &data_ref=data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}{int data=data_ref;{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_ref=data;data=-1;data=20;{int data=data_ref;{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_sink(){char * data=_main_data;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}}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);}}_main_data=data;main_sink();} | static void main_sink(){char * data=_main_data;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}}static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");_main_data=data;main_sink();} |
static char main_source(char data){data=CHAR_MIN;return data;}void _main(){char data;data=' ';data=main_source(data);{char result=data-1;printHexCharLine(result);}} | static char main_source(char data){data=CHAR_MIN;return data;}static void main(){char data;data=' ';data=main_source(data);{char result=0;if (data > CHAR_MIN){result=data-1;printHexCharLine(result);}else{printLine("Input value is too small to perform arithmetic safely.");}}} |
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=NULL;data=(struct _twoints *)realloc(data, 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);}struct _twoints * b_main_source(struct _twoints * data){{struct _twoints data_goodbuf[100];data=data_goodbuf;data[0].a=0;data[0].b=0;printStructLine((twoints *)&data[0]);}return data;} |
void main_sink(twoints * data);void main(){twoints * data;data=NULL;data=new twoints[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}delete [] data;main_sink(data);}void main_sink(twoints * data){printStructLine(&data[0]);} | static void main(){twoints * data;data=NULL;data=new twoints[100];{size_t i;for(i=0;i < 100;i++){data[i].a=1;data[i].b=2;}}main_sink(data);}void main_sink(twoints * data){printStructLine(&data[0]);} |
void b_main_sink();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);}}_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;fwprintf(stdout, data);} | static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");_main_data=data;b_main_sink();}void b_main_sink(){wchar_t * data=_main_data;fwprintf(stdout, data);} |