source
stringlengths
23
1.83k
target
stringlengths
42
1.55k
void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t[50];{wchar_t * data=data_ref;{wchar_t src[100];wcsncat(data, src, 100);printWLine(data);delete [] data;}}}
static void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t[100];{wchar_t * data=data_ref;{wchar_t src[100];wcsncat(data, src, 100);printWLine(data);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 b_main_sink(unsigned int data){{unsigned int result=data * 2;printUnsignedLine(result);}}
static void main(){unsigned int data;data=0;data=5;b_main_sink(data);}void b_main_sink(unsigned int data){{unsigned int result=data * 2;printUnsignedLine(result);}}
void _main_sink(char * data){_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}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_sink(data);}
void _main_sink(char * data){_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}static void main(){char * data;char data_buf[100]="";data=data_buf;strcat(data, "*.*");_main_sink(data);}
void b_main_sink(int data_array[]);void _main(){int data;int data_array[5];{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];{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_array[5];{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(int data_array[]){int data=data_array[2];{wchar_t data_buf[10]=L"AAAAAAAAA";{printWcharLine(data_buf[data]);}else{printLine("ERROR: Array index is out-of-bounds");}}}
void _main(){twoints * data;{twoints * data_buf=(twoints *)ALLOCA(100*sizeof(twoints));{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}printStructLine(&data[0]);free(data);}
static void main(){twoints * data;{twoints * data_buf=(twoints *)malloc(100*sizeof(twoints));{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}printStructLine(&data[0]);free(data);}
void b_main_sink(_struct_type my_struct);void _main(){wchar_t * data;_struct_type my_struct;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{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;_struct_type my_struct;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"15");my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){wchar_t * data=my_struct.a;{int i, n, v;if (swscanf(data, L"%d", &n)==1){v=0;for (i=0;i < n;i++){}printIntLine(v);}}}
void b_main_sink(int data);void _main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}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 * data;printIntLine(result);}}
static void main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}b_main_sink(data);}void b_main_sink(int data){c_main_sink(data);}void c_main_sink(int data){{int result=-1;if (data <=(int)sqrt((int)INT_MAX)){result=data * data;printIntLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}
void main(){twoints * data;union_type my_union;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));my_union.a=data;{twoints * data=my_union.b;delete data;}}
static void main(){twoints * data;union_type my_union;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));my_union.a=data;{twoints * data=my_union.b;free(data);}}
void main_sink();void main(){int * data;data=NULL;data=new int[50];_main_data=data;main_sink();}void main_sink(){int * data=_main_data;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);delete [] data;}}
void main_sink();static void main(){int * data;data=NULL;data=new int[100];_main_data=data;main_sink();}void main_sink(){int * data=_main_data;{memcpy(data, src, 100*sizeof(int));printIntLine(data[0]);delete [] data;}}
void main(){twointsclass * data;twointsclass * *data_ptr1=&data;twointsclass * *data_ptr2=&data;data=NULL;{twointsclass * data=*data_ptr1;data=new twointsclass;}{twointsclass * data=*data_ptr2;delete [] data;}}
static void main(){twointsclass * data;twointsclass * *data_ptr1=&data;twointsclass * *data_ptr2=&data;data=NULL;{twointsclass * data=*data_ptr1;data=new twointsclass;}{twointsclass * data=*data_ptr2;delete data;}}
void _main(){main_struct data;_union_type my_union;linked_list head={&head, &head};data.list.next=head.next;data.list.prev=&head;head.next=&data.list;head.next->prev=&data.list;fgets((char*)&data, sizeof(data), stdin);my_union.a=data;{main_struct data=my_union.b;* */prev=data.list.prev;next=data.list.next;prev->next=next;next->prev=prev;}}
static void main(){bad_struct data;_union_type my_union;linked_list head={&head, &head};data.list.next=head.next;data.list.prev=&head;head.next=&data.list;head.next->prev=&data.list;my_union.a=data;{bad_struct data=my_union.b;* */prev=data.list.prev;next=data.list.next;prev->next=next;next->prev=prev;}}
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);}}if (wcsstr(PASSWORD, data)!=NULL) printLine("Access granted");else printLine("Access denied!");}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}if (wcscmp(PASSWORD, data)==0) printLine("Access granted");else printLine("Access denied!");}
void _main(){twoints * data;twoints data_uninit_array[10];data=data_uninit_array;{int i;for(i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}}
static void main(){twoints * data;twoints data_uninit_array[10];data=data_uninit_array;{int i;for(i=0;i<10;i++){data[i].a=i;data[i].b=i;}}{int i;for(i=0;i<10;i++){printIntLine(data[i].a);printIntLine(data[i].b);}}}
static void main_sink(char data){{char result=data * 2;printHexCharLine(result);}}void _main(){char data;void (*func_ptr) (char)=main_sink;data=' ';data=(char)rand();func_ptr(data);}
static void main_sink(char data){{char result=data * 2;printHexCharLine(result);}}static void main(){char data;void (*func_ptr) (char)=main_sink;data=' ';data=5;func_ptr(data);}
void b_main_sink();void _main(){int * data;data=(int *)calloc(100, sizeof(int));_main_data_for_main_sink=data;b_main_sink();}void b_main_sink(){int * data=_main_data_for_main_sink;data[0]=5;printIntLine(data[0]);free(data);}
void b_main_sink();static void main(){int * data;data=(int *)calloc(100, sizeof(int));_bad_data_for_good_sink=data;b_main_sink();}void b_main_sink(){int * data=_bad_data_for_good_sink;if (data!=NULL){data[0]=5;printIntLine(data[0]);free(data);}}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET connect_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}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){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, 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 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){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnvp(_P_WAIT, COMMAND_INT, args);}}
void b_main_sink(char * data);void _main(){char * data;char data_buf[FILENAME_MAX]="";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 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);}}}
void main(){long long * data;union_type my_union;data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));my_union.a=data;{long long * data=my_union.b;delete [] data;}}
static void main(){long long * data;union_type my_union;data=NULL;data=new long long[100];my_union.a=data;{long long * data=my_union.b;delete [] data;}}
static void main_sink(){wchar_t * data=_main_data;{wchar_t dest[50]=L"";size_t i, data_len;data_len=wcslen(data);for (i=0;i < data_len;i++){dest[i]=data[i];}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 dest[50]=L"";size_t i, data_len;data_len=wcslen(data);for (i=0;i < data_len;i++){dest[i]=data[i];}printWLine(data);}}static void main(){wchar_t * data;wchar_t data_buf[100];data=data_buf;_main_data=data;main_sink();}
void b_main_sink(char * data);void _main(){char * data;void (*func_ptr) (char *)=b_main_sink;data=NULL;data=(char *)malloc(10*sizeof(char));func_ptr(data);}void b_main_sink(char * data){{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}}
void b_main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=b_main_sink;data=NULL;data=(char *)malloc((10+1)*sizeof(char));func_ptr(data);}void b_main_sink(char * data){{char data_src[10+1]=SRC_STRING;strncpy(data, data_src, strlen(data_src));printLine(data);free(data);}}
void _main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;wchar_t data_buf[100];data=data_buf;{wchar_t * data=*data_ptr1;}{wchar_t * data=*data_ptr2;{wchar_t dest[50]=L"";wcscat(dest, data);printWLine(data);}}}
static void main(){wchar_t * data;wchar_t * *data_ptr1=&data;wchar_t * *data_ptr2=&data;wchar_t data_buf[100];data=data_buf;{wchar_t * data=*data_ptr1;}{wchar_t * data=*data_ptr2;{wchar_t dest[50]=L"";wcscat(dest, data);printWLine(data);}}}
static void main_sink(wchar_t * data){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=main_sink;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';}}}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);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';}}}func_ptr(data);}
void main_sink(char * data_array[]);void main(){char * data;char * data_array[5];data=NULL;data=new char[50];data_array[2]=data;main_sink(data_array);}void main_sink(char * data_array[]){char * data=data_array[2];{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);delete [] data;}}
void main_sink(char * data_array[]);static void main(){char * data;char * data_array[5];data=NULL;data=new char[100];data_array[2]=data;main_sink(data_array);}void main_sink(char * data_array[]){char * data=data_array[2];{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);delete [] 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;}void _main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;data=main_source(data);{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, data);printWLine(dest);}}
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);{wchar_t dest[100]=L"";SNPRINTF(dest, 100-1, L"%s", data);printWLine(dest);}}
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;{wchar_t mystring[]=L"mystring";data=wcsdup(mystring);}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[100];main_sink_b(data);}void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_c(wchar_t * data){delete [] data;}
void _main(){wchar_t * data;wchar_t data_buf[100]=L"";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;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();}}else{wcscat(data, L"*.*");}_wspawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;if(global_returns_t_or_f()){wcscat(data, L"*.*");}else{wcscat(data, L"*.*");}_wspawnl(_P_WAIT, 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]=L"";data=data_buf;wcscpy(data, L"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");}}}
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");}}}
void main(){int * data;int * &data_ref=data;{int * data_buf=(int *)ALLOCA(100*sizeof(int));{size_t i;for (i=0;i < 100;i++){data_buf[i]=5;}}data=data_buf;}{int * data=data_ref;printIntLine(data[0]);delete [] data;}}
static void main(){int * data;int * &data_ref=data;{int * data_buf=new int[100];{size_t i;for (i=0;i < 100;i++){data_buf[i]=5;}}data=data_buf;}{int * data=data_ref;printIntLine(data[0]);delete [] data;}}
void b_main_sink(_struct_type my_struct);void _main(){char * data;_struct_type my_struct;char data_buf[100]=FULL_COMMAND;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();}my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;system(data);}
void b_main_sink(_struct_type my_struct);static void main(){char * data;_struct_type my_struct;char data_buf[100]=FULL_COMMAND;data=data_buf;strcat(data, "*.*");my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;system(data);}
void b_main_sink(_struct_type my_struct);void _main(){char * data;_struct_type my_struct;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;{char src[100];strncpy(data, src, 100);data[100-1]='\0';printLine(data);}}
void b_main_sink(_struct_type my_struct);static void main(){char * data;_struct_type my_struct;char * data_buf=(char *)ALLOCA(100*sizeof(char));memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){char * data=my_struct.a;{char src[100];strncpy(data, src, 100);data[100-1]='\0';printLine(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);assert(data > ASSERT_VALUE);}
void b_main_sink(void * void_data_ptr);static void main(){int data;data=-1;data=ASSERT_VALUE+1;b_main_sink(&data);}void b_main_sink(void * void_data_ptr){int * data_ptr=(int *)void_data_ptr;int data=(*data_ptr);assert(data > ASSERT_VALUE);}
void main_sink_b(twointsclass * data);void main(){twointsclass * data;data=NULL;data=new twointsclass[100];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_e(twointsclass * data);void main_sink_d(twointsclass * data){main_sink_e(data);}void main_sink_e(twointsclass * data){delete [] data;}
static void main(){twointsclass * data;data=NULL;data=new twointsclass[100];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){main_sink_e(data);}void main_sink_e(twointsclass * data){delete [] data;}
void main_source(twointsclass * &data){{twointsclass data_buf[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}}void main(){twointsclass * data;main_source(data);printIntLine(data[0].a);delete [] data;}
static void main_source(twointsclass * &data){{twointsclass * data_buf=new twointsclass[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}}static void main(){twointsclass * data;main_source(data);printIntLine(data[0].a);delete [] data;}
void b_main_sink(_struct_type my_struct);void _main(){long long * data;_struct_type my_struct;data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));data[0]=5L;printLongLongLine(data[0]);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){long long * data=my_struct.a;}
static void main(){long long * data;_struct_type my_struct;data=NULL;{long long data_goodbuf[100];data=data_goodbuf;data[0]=5L;printLongLongLine(data[0]);}my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){long long * data=my_struct.a;}
void main_sink(char * data_array[]);void main(){char * data;char * data_array[5];data=new char[100];data_array[2]=data;main_sink(data_array);}void main_sink(char * data_array[]){char * data=data_array[2];{char dest[50]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);delete [] data;}}
void main_sink(char * data_array[]);static void main(){char * data;char * data_array[5];data=new char[100];data_array[2]=data;main_sink(data_array);}void main_sink(char * data_array[]){char * data=data_array[2];{char dest[50]="";memcpy(dest, data, strlen(data)*sizeof(char));printLine(data);delete [] data;}}
void main(){char * data;data=NULL;if(global_returns_t_or_f()){data=new char[100];strcpy(data, "A String");printLine(data);}else{{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}}if(global_returns_t_or_f()){}else{delete[] data;}}
static void main(){char * data;data=NULL;if(global_returns_t_or_f()){{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}}else{{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}}if(global_returns_t_or_f()){}else{}}
static void main_sink(){int data=_main_data;assert(data > ASSERT_VALUE);}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();}_main_data=data;main_sink();}
static void main_sink(){int data=_main_data;assert(data > ASSERT_VALUE);}static void main(){int data;data=-1;data=ASSERT_VALUE+1;_main_data=data;main_sink();}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(10*sizeof(wchar_t));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 data_src[10+1]=SRC_STRING;memcpy(data, data_src, wcslen(data_src)*sizeof(wchar_t));printWLine(data);free(data);}}
void b_main_sink(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc((10+1)*sizeof(wchar_t));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 data_src[10+1]=SRC_STRING;memcpy(data, data_src, wcslen(data_src)*sizeof(wchar_t));printWLine(data);free(data);}}
void main(){char * data;data=NULL;data=new char[50];{char * data_copy=data;char * data=data_copy;{char src[100];memcpy(data, src, 100*sizeof(char));printLine(data);delete [] data;}}}
static void main(){char * data;data=NULL;data=new char[100];{char * data_copy=data;char * data=data_copy;{char src[100];memcpy(data, src, 100*sizeof(char));printLine(data);delete [] data;}}}
void main(){char * data;data=NULL;data=new char[100];strcpy(data, "A String");printLine(data);{char * data_copy=data;char * data=data_copy;}}
static void main(){char * data;data=NULL;{char data_goodbuf[100];data=data_goodbuf;strcpy(data, "A String");printLine(data);}{char * data_copy=data;char * data=data_copy;}}
void b_main_sink(float * data_ptr);void _main(){float data;data=0.0F;fscanf (stdin, "%f", &data);b_main_sink(&data);}void b_main_sink(float * data_ptr){float data=*data_ptr;printDoubleLine((double)(100.0/data));}
void b_main_sink(float * data);static void main(){float data;data=0.0F;data=7.0F;b_main_sink(&data);}void b_main_sink(float * data_ptr){float data=*data_ptr;printDoubleLine((double)(100.0/data));}
void main(){char * data;data=NULL;{char mystring[]="mystring";data=strdup(mystring);}delete data;}
static void main(){char * data;data=NULL;{char mystring[]="mystring";data=strdup(mystring);}free(data);}
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);_spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static char * main_source(char * data){strcat(data, "*.*");return data;}static void main(){char * data;char data_buf[100]="";data=data_buf;data=main_source(data);_spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
void main_source(long long * &data);void main(){long long * data;data=NULL;main_source(data);delete [] data;}void main_source(long long * &data){data=NULL;data=(long long *)realloc(data, 100*sizeof(long long));}
static void main(){long long * data;data=NULL;main_source(data);delete [] data;}void main_source(long long * &data){data=new long long[100];}
void _main(){int * data;data=NULL;data=(int *)calloc(100, sizeof(int));data[0]=5;printIntLine(data[0]);}
static void main(){int * data;data=NULL;{int data_goodbuf[100];data=data_goodbuf;data[0]=5;printIntLine(data[0]);}}
static void main_sink(struct _twoints * data){}void main(){struct _twoints * data;data=NULL;data=new struct _twoints;data->a=0;data->b=0;printStructLine((twoints *)data);main_sink(data);}
static void main_sink(struct _twoints * data){delete data;}static void main(){struct _twoints * data;data=NULL;data=new struct _twoints;data->a=0;data->b=0;printStructLine((twoints *)data);main_sink(data);}
wchar_t * b_main_source(wchar_t * data);void _main(){wchar_t * data;data=NULL;data=b_main_source(data);{wchar_t data_src[10+1]=SRC_STRING;wcscpy(data, data_src);printWLine(data);free(data);}}wchar_t * b_main_source(wchar_t * data){data=(wchar_t *)malloc(10*sizeof(wchar_t));return data;}
wchar_t * b_main_source(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=b_main_source(data);{wchar_t data_src[10+1]=SRC_STRING;wcscpy(data, data_src);printWLine(data);free(data);}}wchar_t * b_main_source(wchar_t * data){data=(wchar_t *)malloc((10+1)*sizeof(wchar_t));return data;}
static char * main_source(char * data){data=NULL;data=(char *)realloc(data, 100*sizeof(char));return data;}void main(){char * data;data=NULL;data=main_source(data);delete data;}
static char * main_source(char * data){data=NULL;data=(char *)realloc(data, 100*sizeof(char));return data;}static void main(){char * data;data=NULL;data=main_source(data);free(data);}
void main_sink(char * data);void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;data=new char[50];func_ptr(data);}void main_sink(char * data){{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);delete [] data;}}
void main_sink(char * data);static void main(){char * data;void (*func_ptr) (char *)=main_sink;data=NULL;data=new char[100];func_ptr(data);}void main_sink(char * data){{char src[100];memmove(data, src, 100*sizeof(char));printLine(data);delete [] data;}}
void b_main_sink(wchar_t * data_array[]);void _main(){wchar_t * data;wchar_t * data_array[5];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();}data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];_wsystem(data);}
void b_main_sink(wchar_t * data_array[]);static void main(){wchar_t * data;wchar_t * data_array[5];wchar_t data_buf[100]=FULL_COMMAND;data=data_buf;wcscat(data, L"*.*");data_array[2]=data;b_main_sink(data_array);}void b_main_sink(wchar_t * data_array[]){wchar_t * data=data_array[2];_wsystem(data);}
void b_main_sink(int data);void _main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}void b_main_sink(int data){{char src[100];char dest[100]="";memset(src, 'A', 100-1);src[100-1]='\0';if (data < 100){strncpy(dest, src, data);}printLine(dest);}}
void b_main_sink(int data);static void main(){int data;void (*func_ptr) (int)=b_main_sink;data=-1;data=100-1;func_ptr(data);}void b_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(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";data=data_buf;{char * data=*data_ptr1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET 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();}}{char * data=*data_ptr2;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}}
static void main(){char * data;char * *data_ptr1=&data;char * *data_ptr2=&data;char data_buf[100]="";data=data_buf;{char * data=*data_ptr1;strcat(data, "*.*");}{char * data=*data_ptr2;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}}
void _main(){wchar_t * data;_union_type my_union;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);}}}
static void main(){wchar_t * data;_union_type my_union;wchar_t * data_buf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_buf;my_union.a=data;{wchar_t * data=my_union.b;{wchar_t dest[50]=L"";wcscpy(dest, data);printWLine(data);}}}
void b_main_sink(int * count_ptr);void _main(){int count;count=-1;fscanf (stdin, "%d", &count);b_main_sink(&count);}void b_main_sink(int * count_ptr){int count=*count_ptr;{size_t i=0;FILE *file=NULL;const char *filename="output_main.txt";file=fopen(filename, "w+");if (file==NULL) exit(1);for (i=0;i < (size_t)count;i++){if (strlen(SENTENCE)!=fwrite(SENTENCE, sizeof(char), strlen(SENTENCE), file)) exit(1);}if (file){fclose(file);}}}
static void main(){int count;count=-1;fscanf (stdin, "%d", &count);b_main_sink(&count);}void b_main_sink(int * count_ptr){int count=*count_ptr;{size_t i=0;FILE *file=NULL;const char *filename="output_good.txt";if (count > 0 && count <=20){file=fopen(filename, "w+");if (file==NULL) exit(1);for (i=0;i < (size_t)count;i++){if (strlen(SENTENCE)!=fwrite(SENTENCE, sizeof(char), strlen(SENTENCE), file)) exit(1);}if (file){fclose(file);}}}}
void main_sink_b(wchar_t * data);void main(){wchar_t * data;data=NULL;data=new wchar_t[50];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_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 src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);delete [] data;}}
void main_sink_b(wchar_t * data);static void main(){wchar_t * data;data=NULL;data=new wchar_t[100];main_sink_b(data);}void main_sink_c(wchar_t * data);void main_sink_b(wchar_t * data){main_sink_c(data);}void main_sink_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 src[100];memcpy(data, src, 100*sizeof(wchar_t));printWLine(data);delete [] data;}}
void b_main_sink(wchar_t * * data_ptr);void _main(){wchar_t * data;wchar_t * data_mainbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_mainbuf;b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}
void b_main_sink(wchar_t * * data);static void main(){wchar_t * data;wchar_t * data_badbuf=(wchar_t *)ALLOCA(50*sizeof(wchar_t));wchar_t * data_goodbuf=(wchar_t *)ALLOCA(100*sizeof(wchar_t));data=data_goodbuf;b_main_sink(&data);}void b_main_sink(wchar_t * * data_ptr){wchar_t * data=*data_ptr;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}
void b_main_sink(char * * data_ptr);void _main(){char * data;data=NULL;data=(char *)malloc(100*sizeof(char));free(data);b_main_sink(&data);}void b_main_sink(char * * data_ptr){char * data=*data_ptr;free(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;free(data);}
void b_main_sink(int data);void _main(){int data;data=-1;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);b_main_sink(data);}void c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void d_main_sink(int data);void c_main_sink(int data){d_main_sink(data);}void d_main_sink(int data){if (data!=-1){CloseHandle((HANDLE)data);}}
void b_main_sink(int data);static void main(){int data;data=-1;data=OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);b_main_sink(data);}void c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void d_main_sink(int data);void c_main_sink(int data){d_main_sink(data);}void d_main_sink(int data){if (data!=-1){CLOSE(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 b_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 b_main_sink(wchar_t * data){_wspawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static void main_sink(HANDLE data){}void _main(){HANDLE data;void (*func_ptr) (HANDLE)=main_sink;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);func_ptr(data);}
static void main_sink(HANDLE data){if (data!=INVALID_HANDLE_VALUE){CloseHandle(data);}}static void main(){HANDLE data;void (*func_ptr) (HANDLE)=main_sink;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);func_ptr(data);}
void main(){twoints * data;data=NULL;data=new twoints;data->a=1;data->b=2;delete data;printStructLine(data);}
static void main(){twoints * data;data=NULL;data=new twoints;data->a=1;data->b=2;delete 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;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
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;EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
static int * main_source(int * data){data=(int *)malloc(100*sizeof(int));{size_t i;for(i=0;i < 100;i++){data[i]=5;}}free(data);return data;}void _main(){int * data;data=NULL;data=main_source(data);printIntLine(data[0]);}
static int * main_source(int * data){data=(int *)malloc(100*sizeof(int));{size_t i;for(i=0;i < 100;i++){data[i]=5;}}free(data);return data;}static void main(){int * data;data=NULL;data=main_source(data);}
static void main_sink(wchar_t * data){if (wcsncmp(PASSWORD, data, wcslen(PASSWORD))==0) printLine("Access granted");else printLine("Access denied!");}void _main(){wchar_t * data;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);}
twointsclass * main_source(twointsclass * data);void main(){twointsclass * data;data=NULL;data=main_source(data);delete [] data;}twointsclass * main_source(twointsclass * data){data=new twointsclass[100];delete [] data;return data;}
static void main(){twointsclass * data;data=NULL;data=main_source(data);}twointsclass * main_source(twointsclass * data){data=new twointsclass[100];delete [] data;return data;}
twoints * b_main_source(twoints * data);void _main(){twoints * data;data=NULL;data=b_main_source(data);free(data);}twoints * b_main_source(twoints * data){data=(twoints *)malloc(100*sizeof(twoints));free(data);return data;}
static void main(){twoints * data;data=NULL;data=b_main_source(data);free(data);}twoints * b_main_source(twoints * data){data=(twoints *)malloc(100*sizeof(twoints));return data;}
static twoints * main_source(twoints * data){data=(twoints *)calloc(100, sizeof(twoints));return data;}void main(){twoints * data;data=NULL;data=main_source(data);delete data;}
static twoints * main_source(twoints * data){data=(twoints *)calloc(100, sizeof(twoints));return data;}static void main(){twoints * data;data=NULL;data=main_source(data);free(data);}
static void main_sink(wchar_t * data){{wchar_t src[100];memcpy(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}}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 src[100];memcpy(data, src, 100*sizeof(wchar_t));data[100-1]=L'\0';printWLine(data);}}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_sink_b(char * data);void main(){char * data;data=NULL;data=new char[100];delete [] data;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){delete [] data;}
static void main(){char * data;data=NULL;data=new char[100];delete [] data;main_sink_b(data);}void main_sink_b(char * data){main_sink_c(data);}void main_sink_c(char * data){main_sink_d(data);}void main_sink_d(char * data){main_sink_e(data);}void main_sink_e(char * data){}
long long * main_source(long long * data);void main(){long long * data;data=NULL;data=main_source(data);delete [] data;}long long * main_source(long long * data){data=(long long *)calloc(100, sizeof(long long));return data;}
static void main(){long long * data;data=NULL;data=main_source(data);delete [] data;}long long * main_source(long long * data){data=new long long[100];return data;}
void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t[100];delete [] data;{wchar_t * data=data_ref;delete [] data;}}
static void main(){wchar_t * data;wchar_t * &data_ref=data;data=NULL;data=new wchar_t[100];{wchar_t * data=data_ref;delete [] data;}}
static void main_sink(int data){{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}void main(){int data;void (*func_ptr) (int)=main_sink;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}func_ptr(data);}
static void main_sink(int data){{char * char_string;if (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;void (*func_ptr) (int)=main_sink;data=-1;data=20;func_ptr(data);}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void 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){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;char data_buf[100]="";data=data_buf;strcat(data, "*.*");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){EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);}
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 *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 _main(){wchar_t * data;wchar_t data_mainbuf[50];wchar_t data_goodbuf[100];data=data_mainbuf;{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}}
static void main(){wchar_t * data;wchar_t data_badbuf[50];wchar_t data_goodbuf[100];data=data_goodbuf;{wchar_t * data_copy=data;wchar_t * data=data_copy;{wchar_t src[100];wcscpy(data, src);printWLine(data);}}}
void main(){int * data;int * *data_ptr1=&data;int * *data_ptr2=&data;data=NULL;{int * data=*data_ptr1;data=(int *)calloc(100, sizeof(int));}{int * data=*data_ptr2;delete data;}}
static void main(){int * data;int * *data_ptr1=&data;int * *data_ptr2=&data;data=NULL;{int * data=*data_ptr1;data=new int;}{int * data=*data_ptr2;delete data;}}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET 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){{char dest[100]="";SNPRINTF(dest, 100-1, data);printLine(dest);}}
static void main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void b_main_sink(char * data){{char dest[100]="";SNPRINTF(dest, 100-1, "%s", data);printLine(dest);}}
static void main_sink(wchar_t * data){delete [] data;}void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));main_sink(data);}
static void main_sink(wchar_t * data){free(data);}static void main(){wchar_t * data;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));main_sink(data);}
void b_main_sink(int * * data_ptr);void _main(){int * data;b_main_sink(&data);}void b_main_sink(int * * data_ptr){int * data=*data_ptr;printIntLine(*data);}
static void main(){int * data;data=(int *)malloc(sizeof(int));b_main_sink(&data);}void b_main_sink(int * * data_ptr){int * data=*data_ptr;printIntLine(*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_ptr1=&data;wchar_t * *data_ptr2=&data;wchar_t data_buf[100]=L"";data=data_buf;{wchar_t * data=*data_ptr1;{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();}}{wchar_t * data=*data_ptr2;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, data, args);va_end(args);printWLine(dest);}}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;wcscpy(data, L"fixedstringtest");}{wchar_t * data=*data_ptr2;main_vasink(data, data);}}
void b_main_sink(void * void_count_ptr);void _main(){int count;count=-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;count=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&count);}void b_main_sink(void * void_count_ptr){int * count_ptr=(int *)void_count_ptr;int count=(*count_ptr);{size_t i=0;for (i=0;i < (size_t)count;i++){printLine("Hello");}}}
static void main(){int count;count=-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;count=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&count);}void b_main_sink(void * void_count_ptr){int * count_ptr=(int *)void_count_ptr;int count=(*count_ptr);{size_t i=0;if (count > 0 && count <=20){for (i=0;i < (size_t)count;i++){printLine("Hello");}}}}
void main_sink_b(char * data);void main(){char * data;data=NULL;data=(char *)calloc(100, sizeof(char));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){delete [] data;}
static void main(){char * data;data=NULL;data=(char *)calloc(100, sizeof(char));main_sink_b(data);}void main_sink_b(char * data){main_sink_c(data);}void main_sink_c(char * data){main_sink_d(data);}void main_sink_d(char * data){free(data);}
void main(){if(global_returns_t_or_f()){{long long * pointer=new long long;delete pointer;printLongLongLine(data);}}else{{long long data;data=5L;long long * pointer=new long long;{long long data=*pointer;printLongLongLine(data);}delete pointer;}}}
static void main(){if(global_returns_t_or_f()){{long long data;data=5L;long long * pointer=new long long;{long long data=*pointer;printLongLongLine(data);}delete pointer;}}else{{long long data;data=5L;long long * pointer=new long long;{long long data=*pointer;printLongLongLine(data);}delete pointer;}}}
static char * main_source(char * data){{size_t data_len=strlen(data);char * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){strncat(data+data_len, environment, 100-data_len-1);}}return data;}void _main(){char * data;char data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=main_source(data);{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}
static char * main_source(char * data){strcat(data, "file.txt");return data;}static void main(){char * data;char data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=main_source(data);{HANDLE hFile;hFile=CreateFileA(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}
void b_main_sink(int * data_ptr);void _main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{int result=data * data;printIntLine(result);}}
static void main(){int data;data=-1;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;SOCKET connect_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;connect_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (connect_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=inet_addr("127.0.0.1");s_in.sin_port=htons(TCP_PORT);if (connect(connect_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;recv_rv=recv(connect_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (connect_socket!=INVALID_SOCKET) CLOSE_SOCKET(connect_socket);if (wsa_data_init) WSACleanup();}b_main_sink(&data);}void b_main_sink(int * data_ptr){int data=*data_ptr;{int result=-1;if (data <=(int)sqrt((int)INT_MAX)){result=data * data;printIntLine(result);}else{printLine("Input value is too large to perform arithmetic safely.");}}}
static char * main_source(char * data){{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;}return data;}void main(){char * data;data=NULL;data=main_source(data);{char dest[100];strcpy(dest, data);printLine(dest);}}
static char * main_source(char * data){{char * data_buf=new char[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf;}return data;}static void main(){char * data;data=NULL;data=main_source(data);{char dest[100];strcpy(dest, data);printLine(dest);}}
void b_main_sink();void _main(){struct _twoints * data;data=NULL;data=NULL;data=(struct _twoints *)realloc(data, 100*sizeof(struct _twoints));data[0].a=0;data[0].b=0;printStructLine((twoints *)&data[0]);_main_data=data;b_main_sink();}void b_main_sink(){struct _twoints * data=_main_data;}
static void main(){struct _twoints * data;data=NULL;data=NULL;data=(struct _twoints *)realloc(data, 100*sizeof(struct _twoints));data[0].a=0;data[0].b=0;printStructLine((twoints *)&data[0]);_main_data=data;b_main_sink();}void b_main_sink(){struct _twoints * data=_main_data;free(data);}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';data=data_buf-8;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[100];memmove(dest, data, 100*sizeof(char));dest[100-1]='\0';printLine(dest);}}
void b_main_sink(char * data);static void main(){char * data;char data_buf[100];memset(data_buf, 'A', 100-1);data_buf[100-1]='\0';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[100];memmove(dest, data, 100*sizeof(char));dest[100-1]='\0';printLine(dest);}}
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];memcpy(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];memcpy(dest, data, 100*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);}}
void _main(){char * data;_union_type my_union;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';}}}my_union.a=data;{char * data=my_union.b;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}}
static void main(){char * data;_union_type my_union;char data_buf[100]="";data=data_buf;strcat(data, "*.*");my_union.a=data;{char * data=my_union.b;{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};EXECV(COMMAND_INT_PATH, args);}}}
void b_main_sink(char * data);void _main(){char * data;char data_buf[100]="";data=data_buf;{WSADATA wsa_data;int wsa_data_init=0;int recv_rv;struct sockaddr_in s_in;char *replace;SOCKET listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;size_t data_len=strlen(data);do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, (char *)data+data_len, (int)(100-data_len-1), 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data[recv_rv]='\0';replace=strchr(data, '\r');if (replace) *replace='\0';replace=strchr(data, '\n');if (replace) *replace='\0';}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void d_main_sink(char * data);void c_main_sink(char * data){d_main_sink(data);}void e_main_sink(char * data);void d_main_sink(char * data){e_main_sink(data);}void e_main_sink(char * data){{char *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 c_main_sink(char * data);void b_main_sink(char * data){c_main_sink(data);}void d_main_sink(char * data);void c_main_sink(char * data){d_main_sink(data);}void e_main_sink(char * data);void d_main_sink(char * data){e_main_sink(data);}void e_main_sink(char * data){{char *args[]={COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};_spawnv(_P_WAIT, COMMAND_INT_PATH, args);}}
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;void (*func_ptr) (wchar_t *, ...)=main_vasink;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();}func_ptr(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, data, args);va_end(args);printWLine(dest);}}static void main(){wchar_t * data;void (*func_ptr) (wchar_t *, ...)=main_vasink;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");func_ptr(data);}
void main_sink_b(long long * data);void main(){long long * data;data=NULL;data=NULL;data=(long long *)realloc(data, 100*sizeof(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){delete [] data;}
static void main(){long long * data;data=NULL;data=new long long[100];main_sink_b(data);}void main_sink_b(long long * data){main_sink_c(data);}void main_sink_c(long long * data){main_sink_d(data);}void main_sink_d(long long * data){main_sink_e(data);}void main_sink_e(long long * data){delete [] 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);}}fwprintf(stdout, data);}
static void main(){wchar_t * data;wchar_t data_buf[100]=L"";data=data_buf;wcscpy(data, L"fixedstringtest");fwprintf(stdout, data);}
void _main(){int data;data=-1;{char input_buf[CHAR_ARRAY_SIZE]="";fgets(input_buf, CHAR_ARRAY_SIZE, stdin);data=atoi(input_buf);}{int data_copy=data;int data=data_copy;{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}}
static void main(){int data;data=-1;data=20;{int data_copy=data;int data=data_copy;{char * char_string;if (data > 0){char_string=(char *)malloc(data*sizeof(char));strcpy(char_string, HELLO_STRING);printLine(char_string);free(char_string);}else{printLine("Input is less than 0");}}}}
void main_sink(twoints * * data_ptr);void main(){twoints * data;data=NULL;data=new twoints[100];main_sink(&data);}void main_sink(twoints * * data_ptr){twoints * data=*data_ptr;free(data);}
static void main(){twoints * data;data=NULL;data=(twoints *)malloc(100*sizeof(twoints));main_sink(&data);}void main_sink(twoints * * data_ptr){twoints * data=*data_ptr;free(data);}
void b_main_sink(wchar_t * data);void _main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));free(data);func_ptr(data);}void b_main_sink(wchar_t * data){free(data);}
static void main(){wchar_t * data;void (*func_ptr) (wchar_t *)=b_main_sink;data=NULL;data=(wchar_t *)malloc(100*sizeof(wchar_t));free(data);func_ptr(data);}void b_main_sink(wchar_t * data){}
void b_main_sink(char * data);void _main(){char * data;char data_mainbuf[50];char data_goodbuf[100];data=data_mainbuf;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){{char src[100];strncat(data, src, 100);printLine(data);}}
void b_main_sink(char * data);static void main(){char * data;char data_badbuf[50];char data_goodbuf[100];data=data_goodbuf;b_main_sink(data);}void 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){{char src[100];strncat(data, src, 100);printLine(data);}}
static wchar_t * main_source(wchar_t * data){data=(wchar_t *)malloc(50*sizeof(wchar_t));return data;}void _main(){wchar_t * data;data=NULL;data=main_source(data);{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);free(data);}}
static wchar_t * main_source(wchar_t * data){data=(wchar_t *)malloc(100*sizeof(wchar_t));return data;}static void main(){wchar_t * data;data=NULL;data=main_source(data);{wchar_t dest[100];wmemset(dest, L'C', 100-1);memcpy(dest, data, wcslen(dest)*sizeof(wchar_t));dest[100-1]=L'\0';printWLine(dest);free(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 listen_socket=INVALID_SOCKET;SOCKET accept_socket=INVALID_SOCKET;char input_buf[CHAR_ARRAY_SIZE];do{if (WSAStartup(MAKEWORD(2,2), &wsa_data)!=NO_ERROR) break;wsa_data_init=1;listen_socket=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);if (listen_socket==INVALID_SOCKET) break;memset(&s_in, 0, sizeof(s_in));s_in.sin_family=AF_INET;s_in.sin_addr.s_addr=INADDR_ANY;s_in.sin_port=htons(TCP_PORT);if (bind(listen_socket, (struct sockaddr*)&s_in, sizeof(s_in))==SOCKET_ERROR) break;if (listen(listen_socket, LISTEN_BACKLOG)==SOCKET_ERROR) break;accept_socket=accept(listen_socket, NULL, NULL);if (accept_socket==SOCKET_ERROR) break;recv_rv=recv(accept_socket, input_buf, CHAR_ARRAY_SIZE, 0);if (recv_rv==SOCKET_ERROR || recv_rv==0) break;data=atoi(input_buf);}while (0);if (listen_socket!=INVALID_SOCKET) CLOSE_SOCKET(listen_socket);if (accept_socket!=INVALID_SOCKET) CLOSE_SOCKET(accept_socket);if (wsa_data_init) WSACleanup();}b_main_sink(data);}void c_main_sink(int data);void b_main_sink(int data){c_main_sink(data);}void d_main_sink(int data);void c_main_sink(int data){d_main_sink(data);}void e_main_sink(int data);void d_main_sink(int data){e_main_sink(data);}void e_main_sink(int data){{int result=data-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){d_main_sink(data);}void d_main_sink(int data){e_main_sink(data);}void e_main_sink(int data){{int result=data-1;printIntLine(result);}}