#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ server;
typedef int /*<<< orphan*/ dest;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int accept(int, struct sockaddr *, int *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htons(int);
char *inet_ntoa(TYPE_1__);
int listen(int, int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int main() {
  struct sockaddr_in server;
  struct sockaddr_in dest;
  int status, socket_fd, client_fd, num;
  socklen_t size;
  char buffer[10241];
  char *buff;
  int yes = 1;
  if ((socket_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    fprintf(stderr, "Socket failure!!\n");
    exit(1);
  }
  if (setsockopt(socket_fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) ==
      -1) {
    perror("setsockopt");
    exit(1);
  }
  memset(&server, 0, sizeof(server));
  memset(&dest, 0, sizeof(dest));
  server.sin_family = AF_INET;
  server.sin_port = htons(3490);
  server.sin_addr.s_addr = INADDR_ANY;
  if ((bind(socket_fd, (struct sockaddr *)&server, sizeof(struct sockaddr))) ==
      -1) {
    fprintf(stderr, "Binding Failure\n");
    exit(1);
  }
  if ((listen(socket_fd, 10)) == -1) {
    fprintf(stderr, "Listening Failure\n");
    exit(1);
  }
  while (1) {
    size = sizeof(struct sockaddr_in);
    if ((client_fd = accept(socket_fd, (struct sockaddr *)&dest, &size)) ==
        -1) {
      perror("accept");
      exit(1);
    }
    printf("Server got connection from client %s\n", inet_ntoa(dest.sin_addr));
    while (1) {
      if ((num = recv(client_fd, buffer, 10240, 0)) == -1) {
        perror("recv");
        exit(1);
      } else if (num == 0) {
        printf("Connection closed\n");
        return 0;
      }
      buffer[num] = '\0';
      printf("Message received: %s\n", buffer);
    }
    close(client_fd);
    close(socket_fd);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2850,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x284c(%rbp)
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
mov    0x2dc4(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x28(%rbp)
cmp    $0xffffffff,%eax
jne    1230 <main+0x60>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x28(%rbp),%edi
mov    0x2dae(%rip),%rax
mov    (%rax),%esi
mov    0x2d75(%rip),%rax
mov    (%rax),%edx
lea    -0x284c(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
cmp    $0xffffffff,%eax
jne    1276 <main+0xa6>
lea    0xdab(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d43(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    $0xda2,%edi
call   1060 <htons@plt>
mov    %eax,-0xc(%rbp)
mov    0x2d22(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x28(%rbp),%edi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   10b0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12f4 <main+0x124>
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
lea    0xd38(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x28(%rbp),%edi
mov    $0xa,%esi
call   10a0 <listen@plt>
cmp    $0xffffffff,%eax
jne    1329 <main+0x159>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
lea    0xd14(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    132e <main+0x15e>
movl   $0xc,-0x34(%rbp)
mov    -0x28(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x34(%rbp),%rdx
call   10d0 <accept@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
jne    1367 <main+0x197>
lea    0xce9(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%edi
call   1050 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x2c(%rbp),%edi
lea    -0x2840(%rbp),%rsi
mov    $0x2800,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x30(%rbp)
cmp    $0xffffffff,%eax
jne    13b8 <main+0x1e8>
lea    0xcc5(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x0,-0x30(%rbp)
jne    13db <main+0x20b>
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x2850,%rsp
pop    %rbp
ret
jmp    13e0 <main+0x210>
movslq -0x30(%rbp),%rax
movb   $0x0,-0x2840(%rbp,%rax,1)
lea    -0x2840(%rbp),%rsi
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1380 <main+0x1b0>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x2840,%rsp
movl   $0x1,0x8(%rsp)
mov    0x2de6(%rip),%r14
mov    (%r14),%edi
mov    0x2dbc(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1100 <socket@plt>
cmp    $0xffffffff,%eax
je     1370 <main+0x190>
mov    %eax,%ebx
mov    0x2dc9(%rip),%rax
mov    (%rax),%esi
mov    0x2d90(%rip),%rax
mov    (%rax),%edx
lea    0x8(%rsp),%rcx
mov    %ebx,%edi
mov    $0x4,%r8d
call   1050 <setsockopt@plt>
cmp    $0xffffffff,%eax
je     1382 <main+0x1a2>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1090 <memset@plt>
lea    0x20(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1090 <memset@plt>
mov    (%r14),%eax
mov    %eax,0x18(%rsp)
mov    $0xda2,%edi
call   1070 <htons@plt>
mov    %eax,0x14(%rsp)
mov    0x2d52(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x4,%edx
call   10c0 <bind@plt>
cmp    $0xffffffff,%eax
je     138b <main+0x1ab>
mov    %ebx,%edi
mov    $0xa,%esi
call   10b0 <listen@plt>
cmp    $0xffffffff,%eax
je     139d <main+0x1bd>
movl   $0xc,0xc(%rsp)
lea    0x20(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %ebx,%edi
call   10e0 <accept@plt>
cmp    $0xffffffff,%eax
je     13bc <main+0x1dc>
mov    %eax,%ebp
mov    0x20(%rsp),%edi
call   1060 <inet_ntoa@plt>
lea    0xd5b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x30(%rsp),%rbx
lea    0xd70(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2800,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
je     1340 <main+0x160>
cmp    $0xffffffff,%eax
je     135a <main+0x17a>
cltq
movb   $0x0,0x30(%rsp,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1310 <main+0x130>
lea    0xd42(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x2840,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xd0d(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    0x2c51(%rip),%rax
mov    (%rax),%edi
lea    0xc80(%rip),%rsi
jmp    13ad <main+0x1cd>
lea    0xc89(%rip),%rdi
jmp    1361 <main+0x181>
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
lea    0xc82(%rip),%rsi
jmp    13ad <main+0x1cd>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
lea    0xc81(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xc7e(%rip),%rdi
jmp    1361 <main+0x181>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [18 x i8] c"Socket failure!!\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.1 = [11 x i8] c"setsockopt\00"
@INADDR_ANY = global i32 0
@.str.2 = [17 x i8] c"Binding Failure\0A\00"
@.str.3 = [19 x i8] c"Listening Failure\0A\00"
@.str.4 = [7 x i8] c"accept\00"
@.str.5 = [38 x i8] c"Server got connection from client %s\0A\00"
@.str.6 = [5 x i8] c"recv\00"
@.str.7 = [19 x i8] c"Connection closed\0A\00"
@.str.8 = [22 x i8] c"Message received: %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.sockaddr_in
%3 = alloca %struct.sockaddr_in
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [10241 x i8]
%10 = alloca i8*
%11 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %11
%12 = load i32, i32* @AF_INET
%13 = load i32, i32* @SOCK_STREAM
%14 = call i32 @socket(i32 %12, i32 %13, i32 0)
store i32 %14, i32* %5
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %0
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %0
%21 = load i32, i32* %5
%22 = load i32, i32* @SOL_SOCKET
%23 = load i32, i32* @SO_REUSEADDR
%24 = call i32 @setsockopt(i32 %21, i32 %22, i32 %23, i32* %11, i32 4)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @exit(i32 1)
unreachable
29: ; preds = %20
%30 = call i32 @memset(%struct.sockaddr_in* %2, i32 0, i32 12)
%31 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%32 = load i32, i32* @AF_INET
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 2
store i32 %32, i32* %33
%34 = call i32 @htons(i32 3490)
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 1
store i32 %34, i32* %35
%36 = load i32, i32* @INADDR_ANY
%37 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 0
%38 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %37, i32 0, i32 0
store i32 %36, i32* %38
%39 = load i32, i32* %5
%40 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%41 = call i32 @bind(i32 %39, %struct.sockaddr* %40, i32 4)
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %47
43: ; preds = %29
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %29
%48 = load i32, i32* %5
%49 = call i32 @listen(i32 %48, i32 10)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %47
br label %56
56: ; preds = %55
store i32 12, i32* %8
%57 = load i32, i32* %5
%58 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%59 = call i32 @accept(i32 %57, %struct.sockaddr* %58, i32* %8)
store i32 %59, i32* %6
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%63 = call i32 @exit(i32 1)
unreachable
64: ; preds = %56
%65 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 0
%66 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %65, i32 0, i32 0
%67 = load i32, i32* %66
%68 = call i8* @inet_ntoa(i32 %67)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %68)
br label %70
70: ; preds = %64, %84
%71 = load i32, i32* %6
%72 = getelementptr inbounds [10241 x i8], [10241 x i8]* %9, i64 0, i64 0
%73 = call i32 @recv(i32 %71, i8* %72, i32 10240, i32 0)
store i32 %73, i32* %7
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %70
%79 = load i32, i32* %7
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
83: ; preds = %78
br label %84
84: ; preds = %83
%85 = load i32, i32* %7
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [10241 x i8], [10241 x i8]* %9, i64 0, i64 %86
store i8 0, i8* %87
%88 = getelementptr inbounds [10241 x i8], [10241 x i8]* %9, i64 0, i64 0
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %88)
br label %70
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [18 x i8] c"Socket failure!!\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.1 = [11 x i8] c"setsockopt\00"
@INADDR_ANY = global i32 0
@.str.2 = [17 x i8] c"Binding Failure\0A\00"
@.str.3 = [19 x i8] c"Listening Failure\0A\00"
@.str.4 = [7 x i8] c"accept\00"
@.str.5 = [38 x i8] c"Server got connection from client %s\0A\00"
@.str.6 = [5 x i8] c"recv\00"
@.str.8 = [22 x i8] c"Message received: %s\0A\00"
@str = [18 x i8] c"Connection closed\00"
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca %struct.sockaddr_in
%3 = alloca i32
%4 = alloca [10241 x i8]
%5 = alloca i32
%6 = bitcast %struct.sockaddr_in* %1 to i8*
%7 = bitcast %struct.sockaddr_in* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = getelementptr inbounds [10241 x i8], [10241 x i8]* %4, i64 0, i64 0
%10 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_STREAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %0
%20 = load i32, i32* @SOL_SOCKET
%21 = load i32, i32* @SO_REUSEADDR
%22 = call i32 @setsockopt(i32 %13, i32 %20, i32 %21, i32* %5, i32 4)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %19
%28 = call i32 @memset(%struct.sockaddr_in* %1, i32 0, i32 12)
%29 = call i32 @memset(%struct.sockaddr_in* %2, i32 0, i32 12)
%30 = load i32, i32* @AF_INET
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %30, i32* %31
%32 = call i32 @htons(i32 3490)
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1
store i32 %32, i32* %33
%34 = load i32, i32* @INADDR_ANY
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0, i32 0
store i32 %34, i32* %35
%36 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%37 = call i32 @bind(i32 %13, %struct.sockaddr* %36, i32 4)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %43
39: ; preds = %27
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %27
%44 = call i32 @listen(i32 %13, i32 10)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %50
46: ; preds = %43
%47 = load i32, i32* @stderr
%48 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%49 = call i32 @exit(i32 1)
unreachable
50: ; preds = %43
store i32 12, i32* %3
%51 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%52 = call i32 @accept(i32 %13, %struct.sockaddr* %51, i32* %3)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%56 = call i32 @exit(i32 1)
unreachable
57: ; preds = %50
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 0, i32 0
%59 = load i32, i32* %58
%60 = call i8* @inet_ntoa(i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %60)
br label %62
62: ; preds = %69, %57
%63 = call i32 @recv(i32 %52, i8* %9, i32 10240, i32 0)
switch i32 %63, label %69 [
i32 -1, label %64
i32 0, label %67
]
64: ; preds = %62
%65 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %62
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
ret i32 0
69: ; preds = %62
%70 = sext i32 %63 to i64
%71 = getelementptr inbounds [10241 x i8], [10241 x i8]* %4, i64 0, i64 %70
store i8 0, i8* %71
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %9)
br label %62
}