#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 */
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ serverAddr;
typedef int /*<<< orphan*/ sendbuffer;
typedef int /*<<< orphan*/ recvbuffer;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_pton(int /*<<< orphan*/, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, int *);
int send(int, int *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("Usage : tcpclient IPAddress\n");
    exit(1);
  }
  int sd;
  int n;
  int bytesToRecv;
  int sendbuffer;
  int recvbuffer;
  char *movePtr;
  struct sockaddr_in serverAddr;
  int ret;
  sd = socket(PF_INET, SOCK_STREAM, 0);
  if (sd == -1) {
    printf("Fail to socket!\n");
    close(sd);
    exit(1);
  }
  memset(&serverAddr, 0, sizeof(serverAddr));
  serverAddr.sin_family = AF_INET;
  inet_pton(AF_INET, argv[1], &serverAddr.sin_addr);
  serverAddr.sin_port = htons(3122);
  ret = connect(sd, (struct sockaddr *)&serverAddr, sizeof(serverAddr));
  if (ret == -1) {
    printf("Fail to connect server!\n");
    close(sd);
    exit(3);
  }
  while (1) {
    printf("Guess a num between 0 and 100 : ");
    scanf("%d", &sendbuffer);
    ret = send(sd, &sendbuffer, sizeof(sendbuffer), 0);
    if (ret == -1) {
      printf("Fail to send!\n");
      close(sd);
      exit(3);
    }
    bytesToRecv = sizeof(recvbuffer);
    movePtr = (char *)(&recvbuffer);
    while ((n = recv(sd, movePtr, bytesToRecv, 0)) > 0) {
      movePtr = movePtr + n;
      bytesToRecv = bytesToRecv - n;
      if (bytesToRecv == 0)
        break;
    }
    if (recvbuffer == -2)
      printf("Too big!\n\n");
    else if (recvbuffer == -1)
      printf("Too small!\n\n");
    else {
      printf("Right. You get it in %d time.\n", recvbuffer);
      break;
    }
  }
  close(sd);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11e8 <main+0x38>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
mov    0x2de0(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    122e <main+0x7e>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2da3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2d97(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    -0x40(%rbp),%rdx
add    $0x4,%rdx
call   1090 <inet_pton@plt>
mov    $0xc32,%edi
call   1040 <htons@plt>
mov    %eax,-0x40(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0xc,%edx
call   10c0 <connect@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    12b3 <main+0x103>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    $0x3,%edi
call   10b0 <exit@plt>
jmp    12b8 <main+0x108>
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd9b(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   10a0 <scanf@plt>
mov    -0x14(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1050 <send@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    1316 <main+0x166>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    $0x3,%edi
call   10b0 <exit@plt>
movl   $0x4,-0x1c(%rbp)
lea    -0x24(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x1c(%rbp),%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jle    136e <main+0x1be>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    1369 <main+0x1b9>
jmp    136e <main+0x1be>
jmp    1325 <main+0x175>
cmpl   $0xfffffffe,-0x24(%rbp)
jne    138b <main+0x1db>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13c3 <main+0x213>
cmpl   $0xffffffff,-0x24(%rbp)
jne    13a8 <main+0x1f8>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13be <main+0x20e>
mov    -0x24(%rbp),%esi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13c8 <main+0x218>
jmp    13c3 <main+0x213>
jmp    12b8 <main+0x108>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    1214 <main+0x54>
mov    %rsi,%rbp
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
mov    0x2df2(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
cmp    $0xffffffff,%eax
jne    122a <main+0x6a>
lea    0xe84(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xe74(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    %eax,%r13d
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
mov    %edi,0x10(%rsp)
mov    0x8(%rbp),%rsi
lea    0xc(%rsp),%rdx
call   10a0 <inet_pton@plt>
mov    $0xc32,%edi
call   1050 <htons@plt>
mov    %eax,0x8(%rsp)
mov    %r13d,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10d0 <connect@plt>
cmp    $0xffffffff,%eax
jne    1288 <main+0xc8>
lea    0xde1(%rip),%rdi
jmp    12cd <main+0x10d>
lea    0xd71(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd84(%rip),%rdi
lea    0x4(%rsp),%rbx
mov    %rbx,%rsi
call   10b0 <scanf@plt>
mov    $0x4,%ebp
mov    %r13d,%edi
mov    %rbx,%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
jne    12e4 <main+0x124>
lea    0xd8c(%rip),%rdi
call   1040 <puts@plt>
mov    %r13d,%edi
call   1090 <close@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>
mov    %rsp,%rbx
lea    0xd33(%rip),%r15
lea    0x4(%rsp),%r12
mov    %rbx,%r14
jmp    133d <main+0x17d>
nopl   0x0(%rax,%rax,1)
call   1040 <puts@plt>
lea    0xcf4(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   10b0 <scanf@plt>
mov    $0x4,%ebp
mov    %r13d,%edi
mov    %r12,%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
mov    %r14,%rbx
cmp    $0xffffffff,%eax
je     12c6 <main+0x106>
mov    %r13d,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
jle    1359 <main+0x199>
mov    %eax,%ecx
add    %rcx,%rbx
sub    %eax,%ebp
jne    133d <main+0x17d>
mov    (%rsp),%esi
lea    0xcec(%rip),%rdi
cmp    $0xfffffffe,%esi
je     1300 <main+0x140>
cmp    $0xffffffff,%esi
jne    1376 <main+0x1b6>
lea    0xccf(%rip),%rdi
jmp    1300 <main+0x140>
lea    0xca7(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r13d,%edi
call   1090 <close@plt>
xor    %edi,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [29 x i8] c"Usage : tcpclient IPAddress\0A\00"
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [17 x i8] c"Fail to socket!\0A\00"
@AF_INET = global i32 0
@.str.2 = [25 x i8] c"Fail to connect server!\0A\00"
@.str.3 = [33 x i8] c"Guess a num between 0 and 100 : \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [15 x i8] c"Fail to send!\0A\00"
@.str.6 = [11 x i8] c"Too big!\0A\0A\00"
@.str.7 = [13 x i8] c"Too small!\0A\0A\00"
@.str.8 = [31 x i8] c"Right. You get it in %d time.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca %struct.sockaddr_in
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %2
%20 = load i32, i32* @PF_INET
%21 = load i32, i32* @SOCK_STREAM
%22 = call i32 @socket(i32 %20, i32 %21, i32 0)
store i32 %22, i32* %6
%23 = load i32, i32* %6
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %30
25: ; preds = %19
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* %6
%28 = call i32 @close(i32 %27)
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %19
%31 = call i32 @memset(%struct.sockaddr_in* %12, i32 0, i32 12)
%32 = load i32, i32* @AF_INET
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 2
store i32 %32, i32* %33
%34 = load i32, i32* @AF_INET
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 1
%39 = call i32 @inet_pton(i32 %34, i8* %37, i32* %38)
%40 = call i32 @htons(i32 3122)
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 0
store i32 %40, i32* %41
%42 = load i32, i32* %6
%43 = bitcast %struct.sockaddr_in* %12 to %struct.sockaddr*
%44 = call i32 @connect(i32 %42, %struct.sockaddr* %43, i32 12)
store i32 %44, i32* %13
%45 = load i32, i32* %13
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %52
47: ; preds = %30
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32, i32* %6
%50 = call i32 @close(i32 %49)
%51 = call i32 @exit(i32 3)
unreachable
52: ; preds = %30
br label %53
53: ; preds = %52, %99
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%55 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %9)
%56 = load i32, i32* %6
%57 = call i32 @send(i32 %56, i32* %9, i32 4, i32 0)
store i32 %57, i32* %13
%58 = load i32, i32* %13
%59 = icmp eq i32 %58, -1
br i1 %59, label %60, label %65
60: ; preds = %53
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%62 = load i32, i32* %6
%63 = call i32 @close(i32 %62)
%64 = call i32 @exit(i32 3)
unreachable
65: ; preds = %53
store i32 4, i32* %8
%66 = bitcast i32* %10 to i8*
store i8* %66, i8** %11
br label %67
67: ; preds = %84, %65
%68 = load i32, i32* %6
%69 = load i8*, i8** %11
%70 = load i32, i32* %8
%71 = call i32 @recv(i32 %68, i8* %69, i32 %70, i32 0)
store i32 %71, i32* %7
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %85
73: ; preds = %67
%74 = load i8*, i8** %11
%75 = load i32, i32* %7
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %74, i64 %76
store i8* %77, i8** %11
%78 = load i32, i32* %8
%79 = load i32, i32* %7
%80 = sub nsw i32 %78, %79
store i32 %80, i32* %8
%81 = load i32, i32* %8
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %73
br label %85
84: ; preds = %73
br label %67
85: ; preds = %83, %67
%86 = load i32, i32* %10
%87 = icmp eq i32 %86, -2
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %99
90: ; preds = %85
%91 = load i32, i32* %10
%92 = icmp eq i32 %91, -1
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
br label %98
95: ; preds = %90
%96 = load i32, i32* %10
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %96)
br label %100
98: ; preds = %93
br label %99
99: ; preds = %98, %88
br label %53
100: ; preds = %95
%101 = load i32, i32* %6
%102 = call i32 @close(i32 %101)
%103 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@AF_INET = global i32 0
@.str.3 = [33 x i8] c"Guess a num between 0 and 100 : \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.8 = [31 x i8] c"Right. You get it in %d time.\0A\00"
@str = [12 x i8] c"Too small!\0A\00"
@str.9 = [10 x i8] c"Too big!\0A\00"
@str.10 = [14 x i8] c"Fail to send!\00"
@str.11 = [24 x i8] c"Fail to connect server!\00"
@str.12 = [16 x i8] c"Fail to socket!\00"
@str.13 = [28 x i8] c"Usage : tcpclient IPAddress\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_in
%6 = icmp eq i32 %0, 2
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.13, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast %struct.sockaddr_in* %5 to i8*
%14 = load i32, i32* @PF_INET
%15 = load i32, i32* @SOCK_STREAM
%16 = tail call i32 @socket(i32 %14, i32 %15, i32 0)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %10
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.12, i64 0, i64 0))
%20 = tail call i32 @close(i32 -1)
%21 = tail call i32 @exit(i32 1)
unreachable
22: ; preds = %10
%23 = call i32 @memset(%struct.sockaddr_in* %5, i32 0, i32 12)
%24 = load i32, i32* @AF_INET
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 2
store i32 %24, i32* %25
%26 = getelementptr inbounds i8*, i8** %1, i64 1
%27 = load i8*, i8** %26
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1
%29 = call i32 @inet_pton(i32 %24, i8* %27, i32* %28)
%30 = call i32 @htons(i32 3122)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
store i32 %30, i32* %31
%32 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%33 = call i32 @connect(i32 %16, %struct.sockaddr* %32, i32 12)
%34 = icmp eq i32 %33, -1
br i1 %34, label %40, label %35
35: ; preds = %22
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%38 = call i32 @send(i32 %16, i32* %3, i32 4, i32 0)
%39 = icmp eq i32 %38, -1
br i1 %39, label %44, label %48
40: ; preds = %22
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%42 = call i32 @close(i32 %16)
%43 = call i32 @exit(i32 3)
unreachable
44: ; preds = %68, %35
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.10, i64 0, i64 0))
%46 = call i32 @close(i32 %16)
%47 = call i32 @exit(i32 3)
unreachable
48: ; preds = %35, %58
%49 = phi i32 [ %59, %58 ], [ 4, %35 ]
%50 = phi i8* [ %60, %58 ], [ %12, %35 ]
%51 = call i32 @recv(i32 %16, i8* %50, i32 %49, i32 0)
%52 = icmp slt i32 %51, 1
%53 = zext i32 %51 to i64
%54 = getelementptr inbounds i8, i8* %50, i64 %53
%55 = sub nsw i32 %49, %51
%56 = icmp eq i32 %55, 0
%57 = select i1 %52, i1 true, i1 %56
br i1 %57, label %61, label %58
58: ; preds = %48, %68
%59 = phi i32 [ %55, %48 ], [ 4, %68 ]
%60 = phi i8* [ %54, %48 ], [ %12, %68 ]
br label %48
61: ; preds = %48
%62 = load i32, i32* %4
switch i32 %62, label %64 [
i32 -2, label %68
i32 -1, label %63
]
63: ; preds = %61
br label %68
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %62)
%66 = call i32 @close(i32 %16)
%67 = call i32 @exit(i32 0)
unreachable
68: ; preds = %61, %63
%69 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0), %63 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.9, i64 0, i64 0), %61 ]
%70 = call i32 @puts(i8* dereferenceable(1) %69)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%72 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%73 = call i32 @send(i32 %16, i32* %3, i32 4, i32 0)
%74 = icmp eq i32 %73, -1
br i1 %74, label %44, label %58
}