#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sk_send(int, char *, int);
char *srv_readstr(int, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strdup(char *);
char *strstr(char *, char *);
int /*<<< orphan*/ ut_WriteLog(char *, char *);
void srv_AddBuddy(int sock, char *jidname, int ssl) {
  char *buffer = (char *)malloc(1024);
  char *p, *str;
  int i;
  memset(buffer, 0, 1024);
  strcpy(buffer, "<iq type='set'>");
  strcat(buffer, "  <query xmlns='jabber:iq:roster'>");
  strcat(buffer, "    <item");
  strcat(buffer, "      jid='");
  strcat(buffer, jidname);
  strcat(buffer, "' name='");
  str = strdup(jidname);
  p = strstr(str, "@");
  if (p)
    *p = '\0';
  strcat(buffer, str);
  strcat(buffer, "'/></query></iq>");
  sk_send(sock, buffer, ssl);
  free(buffer);
  for (i = 0; i < 2; i++) {
    buffer = srv_readstr(sock, ssl);
    ut_WriteLog("[Sudirription]: %s\n", buffer);
    free(buffer);
  }
  buffer = (char *)malloc(1024);
  memset(buffer, 0, 1024);
  strcpy(buffer, "<presence to='");
  strcat(buffer, jidname);
  strcat(buffer, "' type='sudirribe'>");
  strcat(buffer, "<status>I would like to add you!</status></presence>");
  sk_send(sock, buffer, ssl);
  free(buffer);
  buffer = srv_readstr(sock, ssl);
  ut_WriteLog("[Sudirription]: %s\n", buffer);
  free(buffer);
  buffer = (char *)malloc(1024);
  memset(buffer, 0, 1024);
  strcpy(buffer, "<presence to='");
  strcat(buffer, jidname);
  strcat(buffer, "' type='sudirribed'/>");
  sk_send(sock, buffer, ssl);
  free(buffer);
  buffer = srv_readstr(sock, ssl);
  ut_WriteLog("[Sudirription]: %s\n", buffer);
  free(buffer);
}


x86 assembly (clang, -O0):
<srv_AddBuddy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0x400,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1050 <memset@plt>
mov    -0x20(%rbp),%rdi
lea    0xe25(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    0xe25(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xe38(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xe32(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x10(%rbp),%rdi
call   10b0 <strdup@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xe0d(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1260 <srv_AddBuddy+0xc0>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xddc(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <sk_send@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    12dc <srv_AddBuddy+0x13c>
mov    -0x4(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1060 <srv_readstr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xda5(%rip),%rdi
call   10a0 <ut_WriteLog@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    129c <srv_AddBuddy+0xfc>
mov    $0x400,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1050 <memset@plt>
mov    -0x20(%rbp),%rdi
lea    0xd74(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xd66(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <sk_send@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1060 <srv_readstr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xcfc(%rip),%rdi
call   10a0 <ut_WriteLog@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    $0x400,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1050 <memset@plt>
mov    -0x20(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xd14(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <sk_send@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1060 <srv_readstr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xc71(%rip),%rdi
call   10a0 <ut_WriteLog@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<srv_AddBuddy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r12d
mov    %rsi,%r14
mov    %edi,%r15d
mov    $0x400,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
lea    0xe2a(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
lea    0xe3e(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10a0 <strcat@plt>
lea    0xe2b(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %r14,%rdi
call   10c0 <strdup@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x40,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1246 <srv_AddBuddy+0xa6>
movb   $0x0,(%rax)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <strcat@plt>
lea    0xdfa(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r12d,%edx
call   1090 <sk_send@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15d,%edi
mov    %r12d,%esi
call   1070 <srv_readstr@plt>
mov    %rax,%rbx
lea    0xdd8(%rip),%rbp
mov    %rbp,%rdi
mov    %rax,%rsi
call   10b0 <ut_WriteLog@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15d,%edi
mov    %r12d,%esi
call   1070 <srv_readstr@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %rax,%rsi
call   10b0 <ut_WriteLog@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    $0x400,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    0xd95(%rip),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10a0 <strcat@plt>
lea    0xd87(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
lea    0xd8c(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r12d,%edx
call   1090 <sk_send@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15d,%edi
mov    %r12d,%esi
call   1070 <srv_readstr@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %rax,%rsi
call   10b0 <ut_WriteLog@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    $0x400,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10a0 <strcat@plt>
lea    0xd49(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r12d,%edx
call   1090 <sk_send@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15d,%edi
mov    %r12d,%esi
call   1070 <srv_readstr@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %rax,%rsi
call   10b0 <ut_WriteLog@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"<iq type='set'>\00"
@.str.1 = [35 x i8] c" <query xmlns='jabber:iq:roster'>\00"
@.str.2 = [10 x i8] c" <item\00"
@.str.3 = [12 x i8] c" jid='\00"
@.str.4 = [9 x i8] c"' name='\00"
@.str.5 = [2 x i8] c"@\00"
@.str.6 = [17 x i8] c"'/></query></iq>\00"
@.str.7 = [20 x i8] c"[Sudirription]: %s\0A\00"
@.str.8 = [15 x i8] c"<presence to='\00"
@.str.9 = [20 x i8] c"' type='sudirribe'>\00"
@.str.10 = [53 x i8] c"<status>I would like to add you!</status></presence>\00"
@.str.11 = [22 x i8] c"' type='sudirribed'/>\00"
define void @srv_AddBuddy(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%11 = call i64 @malloc(i32 1024)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %7
%13 = load i8*, i8** %7
%14 = call i32 @memset(i8* %13, i32 0, i32 1024)
%15 = load i8*, i8** %7
%16 = call i32 @strcpy(i8* %15, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%17 = load i8*, i8** %7
%18 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%19 = load i8*, i8** %7
%20 = call i32 @strcat(i8* %19, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%21 = load i8*, i8** %7
%22 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%23 = load i8*, i8** %7
%24 = load i8*, i8** %5
%25 = call i32 @strcat(i8* %23, i8* %24)
%26 = load i8*, i8** %7
%27 = call i32 @strcat(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%28 = load i8*, i8** %5
%29 = call i8* @strdup(i8* %28)
store i8* %29, i8** %9
%30 = load i8*, i8** %9
%31 = call i8* @strstr(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %31, i8** %8
%32 = load i8*, i8** %8
%33 = icmp ne i8* %32, null
br i1 %33, label %34, label %36
34: ; preds = %3
%35 = load i8*, i8** %8
store i8 0, i8* %35
br label %36
36: ; preds = %34, %3
%37 = load i8*, i8** %7
%38 = load i8*, i8** %9
%39 = call i32 @strcat(i8* %37, i8* %38)
%40 = load i8*, i8** %7
%41 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%42 = load i32, i32* %4
%43 = load i8*, i8** %7
%44 = load i32, i32* %6
%45 = call i32 @sk_send(i32 %42, i8* %43, i32 %44)
%46 = load i8*, i8** %7
%47 = call i32 @free(i8* %46)
store i32 0, i32* %10
br label %48
48: ; preds = %59, %36
%49 = load i32, i32* %10
%50 = icmp slt i32 %49, 2
br i1 %50, label %51, label %62
51: ; preds = %48
%52 = load i32, i32* %4
%53 = load i32, i32* %6
%54 = call i8* @srv_readstr(i32 %52, i32 %53)
store i8* %54, i8** %7
%55 = load i8*, i8** %7
%56 = call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %55)
%57 = load i8*, i8** %7
%58 = call i32 @free(i8* %57)
br label %59
59: ; preds = %51
%60 = load i32, i32* %10
%61 = add nsw i32 %60, 1
store i32 %61, i32* %10
br label %48
62: ; preds = %48
%63 = call i64 @malloc(i32 1024)
%64 = inttoptr i64 %63 to i8*
store i8* %64, i8** %7
%65 = load i8*, i8** %7
%66 = call i32 @memset(i8* %65, i32 0, i32 1024)
%67 = load i8*, i8** %7
%68 = call i32 @strcpy(i8* %67, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%69 = load i8*, i8** %7
%70 = load i8*, i8** %5
%71 = call i32 @strcat(i8* %69, i8* %70)
%72 = load i8*, i8** %7
%73 = call i32 @strcat(i8* %72, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%74 = load i8*, i8** %7
%75 = call i32 @strcat(i8* %74, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%76 = load i32, i32* %4
%77 = load i8*, i8** %7
%78 = load i32, i32* %6
%79 = call i32 @sk_send(i32 %76, i8* %77, i32 %78)
%80 = load i8*, i8** %7
%81 = call i32 @free(i8* %80)
%82 = load i32, i32* %4
%83 = load i32, i32* %6
%84 = call i8* @srv_readstr(i32 %82, i32 %83)
store i8* %84, i8** %7
%85 = load i8*, i8** %7
%86 = call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %85)
%87 = load i8*, i8** %7
%88 = call i32 @free(i8* %87)
%89 = call i64 @malloc(i32 1024)
%90 = inttoptr i64 %89 to i8*
store i8* %90, i8** %7
%91 = load i8*, i8** %7
%92 = call i32 @memset(i8* %91, i32 0, i32 1024)
%93 = load i8*, i8** %7
%94 = call i32 @strcpy(i8* %93, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%95 = load i8*, i8** %7
%96 = load i8*, i8** %5
%97 = call i32 @strcat(i8* %95, i8* %96)
%98 = load i8*, i8** %7
%99 = call i32 @strcat(i8* %98, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%100 = load i32, i32* %4
%101 = load i8*, i8** %7
%102 = load i32, i32* %6
%103 = call i32 @sk_send(i32 %100, i8* %101, i32 %102)
%104 = load i8*, i8** %7
%105 = call i32 @free(i8* %104)
%106 = load i32, i32* %4
%107 = load i32, i32* %6
%108 = call i8* @srv_readstr(i32 %106, i32 %107)
store i8* %108, i8** %7
%109 = load i8*, i8** %7
%110 = call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %109)
%111 = load i8*, i8** %7
%112 = call i32 @free(i8* %111)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"<iq type='set'>\00"
@.str.1 = [35 x i8] c" <query xmlns='jabber:iq:roster'>\00"
@.str.2 = [10 x i8] c" <item\00"
@.str.3 = [12 x i8] c" jid='\00"
@.str.4 = [9 x i8] c"' name='\00"
@.str.6 = [17 x i8] c"'/></query></iq>\00"
@.str.7 = [20 x i8] c"[Sudirription]: %s\0A\00"
@.str.8 = [15 x i8] c"<presence to='\00"
@.str.9 = [20 x i8] c"' type='sudirribe'>\00"
@.str.10 = [53 x i8] c"<status>I would like to add you!</status></presence>\00"
@.str.11 = [22 x i8] c"' type='sudirribed'/>\00"
define void @srv_AddBuddy(i32 %0, i8* %1, i32 %2) {
%4 = tail call i64 @malloc(i32 1024)
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 @memset(i8* %5, i32 0, i32 1024)
%7 = tail call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @strcat(i8* %5, i8* %1)
%12 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i8* @strdup(i8* %1)
%14 = tail call i8* @strchr(i8* dereferenceable(1) %13, i32 64)
%15 = icmp eq i8* %14, null
br i1 %15, label %17, label %16
16: ; preds = %3
store i8 0, i8* %14
br label %17
17: ; preds = %16, %3
%18 = tail call i32 @strcat(i8* %5, i8* %13)
%19 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%20 = tail call i32 @sk_send(i32 %0, i8* %5, i32 %2)
%21 = tail call i32 @free(i8* %5)
%22 = tail call i8* @srv_readstr(i32 %0, i32 %2)
%23 = tail call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %22)
%24 = tail call i32 @free(i8* %22)
%25 = tail call i8* @srv_readstr(i32 %0, i32 %2)
%26 = tail call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %25)
%27 = tail call i32 @free(i8* %25)
%28 = tail call i64 @malloc(i32 1024)
%29 = inttoptr i64 %28 to i8*
%30 = tail call i32 @memset(i8* %29, i32 0, i32 1024)
%31 = tail call i32 @strcpy(i8* %29, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%32 = tail call i32 @strcat(i8* %29, i8* %1)
%33 = tail call i32 @strcat(i8* %29, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%34 = tail call i32 @strcat(i8* %29, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%35 = tail call i32 @sk_send(i32 %0, i8* %29, i32 %2)
%36 = tail call i32 @free(i8* %29)
%37 = tail call i8* @srv_readstr(i32 %0, i32 %2)
%38 = tail call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %37)
%39 = tail call i32 @free(i8* %37)
%40 = tail call i64 @malloc(i32 1024)
%41 = inttoptr i64 %40 to i8*
%42 = tail call i32 @memset(i8* %41, i32 0, i32 1024)
%43 = tail call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%44 = tail call i32 @strcat(i8* %41, i8* %1)
%45 = tail call i32 @strcat(i8* %41, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%46 = tail call i32 @sk_send(i32 %0, i8* %41, i32 %2)
%47 = tail call i32 @free(i8* %41)
%48 = tail call i8* @srv_readstr(i32 %0, i32 %2)
%49 = tail call i32 @ut_WriteLog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %48)
%50 = tail call i32 @free(i8* %48)
ret void
}