#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 ssize_t;
typedef int socklen_t;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_DGRAM;
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
scalar_t__ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ strncmp(char *, char *, int);
int main(int argc, char **argv) {
  int sockfd;
  struct sockaddr_in srvaddr;
  struct sockaddr_in cliaddr;
  socklen_t clilen;
  char buf[2048];
  ssize_t nbytes;
  sockfd = socket(AF_INET, SOCK_DGRAM, 0);
  if (sockfd < 0) {
    perror("socket");
    exit(EXIT_FAILURE);
  }
  srvaddr.sin_family = AF_INET;
  srvaddr.sin_port = htons(50000);
  if (strncmp("192.168.56.10", "*", sizeof("*")) == 0) {
    srvaddr.sin_addr.s_addr = htonl(INADDR_ANY);
  } else {
    srvaddr.sin_addr.s_addr = inet_addr("192.168.56.10");
  }
  if (bind(sockfd, (struct sockaddr *)&srvaddr, sizeof srvaddr) < 0) {
    perror("bind");
    exit(EXIT_FAILURE);
  }
  bzero(buf, 2048);
  bzero((char *)&cliaddr, sizeof cliaddr);
  clilen = sizeof cliaddr;
  nbytes = recvfrom(sockfd, buf, 2048, 0, (struct sockaddr *)&cliaddr, &clilen);
  printf("%ld bytes received\n", (long)nbytes);
  printf("From:\t %s:%hu\n", inet_ntoa(cliaddr.sin_addr),
         ntohs(cliaddr.sin_port));
  printf("Data:\t %s\n", buf);
  nbytes = sendto(sockfd, buf, nbytes, 0, (struct sockaddr *)&cliaddr, clilen);
  if (nbytes < 0) {
    perror("sendto");
    exit(EXIT_FAILURE);
  }
  printf("%d bytes sent\n", nbytes);
  if (close(sockfd) < 0) {
    perror("close");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
mov    0x2dbf(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1249 <main+0x59>
lea    0xdca(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    $0xc350,%edi
call   1050 <htons@plt>
mov    %eax,-0x1c(%rbp)
lea    0xd9e(%rip),%rdi
lea    0xda5(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    129a <main+0xaa>
mov    0x2d55(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,-0x20(%rbp)
jmp    12a9 <main+0xb9>
lea    0xd66(%rip),%rdi
call   10a0 <inet_addr@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0x0,%rax
jge    12de <main+0xee>
lea    0xd4c(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2cf1(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
lea    -0x840(%rbp),%rdi
mov    $0x800,%esi
call   10f0 <bzero@plt>
lea    -0x30(%rbp),%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
movl   $0xc,-0x34(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x840(%rbp),%rsi
lea    -0x30(%rbp),%r8
mov    $0x800,%edx
xor    %ecx,%ecx
lea    -0x34(%rbp),%r9
call   10b0 <recvfrom@plt>
mov    %eax,-0x844(%rbp)
movslq -0x844(%rbp),%rsi
lea    0xce6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x30(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,-0x850(%rbp)
mov    -0x2c(%rbp),%edi
call   10c0 <ntohs@plt>
mov    -0x850(%rbp),%rsi
mov    %eax,%edx
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x840(%rbp),%rsi
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x840(%rbp),%rsi
mov    -0x844(%rbp),%edx
lea    -0x30(%rbp),%r8
mov    -0x34(%rbp),%r9d
xor    %ecx,%ecx
call   1080 <sendto@plt>
mov    %eax,-0x844(%rbp)
cmpl   $0x0,-0x844(%rbp)
jge    13cc <main+0x1dc>
lea    0xc91(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2c03(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
mov    -0x844(%rbp),%esi
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1090 <close@plt>
cmp    $0x0,%rax
jge    13fe <main+0x20e>
lea    0xc67(%rip),%rdi
call   10e0 <perror@plt>
xor    %eax,%eax
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x830,%rsp
mov    0x2de2(%rip),%rbx
mov    (%rbx),%edi
mov    0x2dc9(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
test   %eax,%eax
js     137a <main+0x18a>
mov    %eax,%r12d
mov    (%rbx),%eax
mov    %eax,0x18(%rsp)
mov    $0xc350,%edi
call   1050 <htons@plt>
mov    %eax,0x14(%rsp)
lea    0xdc9(%rip),%rdi
lea    0xdd0(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1262 <main+0x72>
lea    0xdac(%rip),%rdi
call   10a0 <inet_addr@plt>
jmp    1270 <main+0x80>
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,0x10(%rsp)
lea    0x10(%rsp),%rsi
mov    %r12d,%edi
mov    $0xc,%edx
call   10d0 <bind@plt>
test   %rax,%rax
js     1383 <main+0x193>
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x800,%esi
call   10f0 <bzero@plt>
lea    0x20(%rsp),%r15
mov    %r15,%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
movl   $0xc,0xc(%rsp)
lea    0xc(%rsp),%r9
mov    %r12d,%edi
mov    %r14,%rsi
mov    $0x800,%edx
xor    %ecx,%ecx
mov    %r15,%r8
call   10b0 <recvfrom@plt>
movslq %eax,%rbx
lea    0xd3d(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%rbp
mov    0x24(%rsp),%edi
call   10c0 <ntohs@plt>
lea    0xd2b(%rip),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd27(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%r9d
mov    %r12d,%edi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %ecx,%ecx
mov    %r15,%r8
call   1080 <sendto@plt>
test   %eax,%eax
js     138c <main+0x19c>
lea    0xd0d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1090 <close@plt>
test   %rax,%rax
js     136c <main+0x17c>
xor    %eax,%eax
add    $0x830,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xced(%rip),%rdi
call   10e0 <perror@plt>
jmp    135a <main+0x16a>
lea    0xc7f(%rip),%rdi
jmp    1393 <main+0x1a3>
lea    0xc8d(%rip),%rdi
jmp    1393 <main+0x1a3>
lea    0xcb7(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2c29(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>

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_DGRAM = global i32 0
@.str = [7 x i8] c"socket\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [14 x i8] c"192.168.56.10\00"
@.str.2 = [2 x i8] c"*\00"
@INADDR_ANY = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [20 x i8] c"%ld bytes received\0A\00"
@.str.5 = [15 x i8] c"From:\09 %s:%hu\0A\00"
@.str.6 = [11 x i8] c"Data:\09 %s\0A\00"
@.str.7 = [7 x i8] c"sendto\00"
@.str.8 = [15 x i8] c"%d bytes sent\0A\00"
@.str.9 = [6 x i8] c"close\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca %struct.sockaddr_in
%8 = alloca %struct.sockaddr_in
%9 = alloca i32
%10 = alloca [2048 x i8]
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* @AF_INET
%13 = load i32, i32* @SOCK_DGRAM
%14 = call i32 @socket(i32 %12, i32 %13, i32 0)
store i32 %14, i32* %6
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @EXIT_FAILURE
%20 = call i32 @exit(i32 %19)
unreachable
21: ; preds = %2
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %22, i32* %23
%24 = call i32 @htons(i32 50000)
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
store i32 %24, i32* %25
%26 = call i64 @strncmp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 2)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %21
%29 = load i32, i32* @INADDR_ANY
%30 = call i32 @htonl(i32 %29)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%32 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %31, i32 0, i32 0
store i32 %30, i32* %32
br label %37
33: ; preds = %21
%34 = call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%36 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i32 0, i32 0
store i32 %34, i32* %36
br label %37
37: ; preds = %33, %28
%38 = load i32, i32* %6
%39 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%40 = call i64 @bind(i32 %38, %struct.sockaddr* %39, i32 12)
%41 = icmp slt i64 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %37
%43 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%44 = load i32, i32* @EXIT_FAILURE
%45 = call i32 @exit(i32 %44)
unreachable
46: ; preds = %37
%47 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%48 = call i32 @bzero(i8* %47, i32 2048)
%49 = bitcast %struct.sockaddr_in* %8 to i8*
%50 = call i32 @bzero(i8* %49, i32 12)
store i32 12, i32* %9
%51 = load i32, i32* %6
%52 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%53 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%54 = call i32 @recvfrom(i32 %51, i8* %52, i32 2048, i32 0, %struct.sockaddr* %53, i32* %9)
store i32 %54, i32* %11
%55 = load i32, i32* %11
%56 = sext i32 %55 to i64
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 %56)
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 0
%59 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %58, i32 0, i32 0
%60 = load i32, i32* %59
%61 = call i8* @inet_ntoa(i32 %60)
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 1
%63 = load i32, i32* %62
%64 = call i32 @ntohs(i32 %63)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %61, i32 %64)
%66 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %66)
%68 = load i32, i32* %6
%69 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%70 = load i32, i32* %11
%71 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%72 = load i32, i32* %9
%73 = call i32 @sendto(i32 %68, i8* %69, i32 %70, i32 0, %struct.sockaddr* %71, i32 %72)
store i32 %73, i32* %11
%74 = load i32, i32* %11
%75 = icmp slt i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %46
%77 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%78 = load i32, i32* @EXIT_FAILURE
%79 = call i32 @exit(i32 %78)
unreachable
80: ; preds = %46
%81 = load i32, i32* %11
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %81)
%83 = load i32, i32* %6
%84 = call i64 @close(i32 %83)
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %80
%87 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %88
88: ; preds = %86, %80
ret i32 0
}

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_DGRAM = global i32 0
@.str = [7 x i8] c"socket\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [14 x i8] c"192.168.56.10\00"
@.str.2 = [2 x i8] c"*\00"
@INADDR_ANY = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [20 x i8] c"%ld bytes received\0A\00"
@.str.5 = [15 x i8] c"From:\09 %s:%hu\0A\00"
@.str.6 = [11 x i8] c"Data:\09 %s\0A\00"
@.str.7 = [7 x i8] c"sendto\00"
@.str.8 = [15 x i8] c"%d bytes sent\0A\00"
@.str.9 = [6 x i8] c"close\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca i32
%6 = alloca [2048 x i8]
%7 = bitcast %struct.sockaddr_in* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = getelementptr inbounds [2048 x i8], [2048 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_DGRAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* @EXIT_FAILURE
%18 = tail call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %20, i32* %21
%22 = tail call i32 @htons(i32 50000)
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %22, i32* %23
%24 = tail call i64 @strncmp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 2)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %19
%27 = load i32, i32* @INADDR_ANY
%28 = tail call i32 @htonl(i32 %27)
br label %31
29: ; preds = %19
%30 = tail call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = phi i32 [ %28, %26 ], [ %30, %29 ]
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %32, i32* %33
%34 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%35 = call i64 @bind(i32 %13, %struct.sockaddr* %34, i32 12)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %31
%38 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%39 = load i32, i32* @EXIT_FAILURE
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %31
%42 = call i32 @bzero(i8* %10, i32 2048)
%43 = call i32 @bzero(i8* %8, i32 12)
store i32 12, i32* %5
%44 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%45 = call i32 @recvfrom(i32 %13, i8* %10, i32 2048, i32 0, %struct.sockaddr* %44, i32* %5)
%46 = sext i32 %45 to i64
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 %46)
%48 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
%49 = load i32, i32* %48
%50 = call i8* @inet_ntoa(i32 %49)
%51 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
%52 = load i32, i32* %51
%53 = call i32 @ntohs(i32 %52)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %50, i32 %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %10)
%56 = load i32, i32* %5
%57 = call i32 @sendto(i32 %13, i8* %10, i32 %45, i32 0, %struct.sockaddr* %44, i32 %56)
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %41
%60 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%61 = load i32, i32* @EXIT_FAILURE
%62 = call i32 @exit(i32 %61)
unreachable
63: ; preds = %41
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %57)
%65 = call i64 @close(i32 %13)
%66 = icmp slt i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %69
69: ; preds = %67, %63
ret i32 0
}