#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 {
  int /*<<< orphan*/ sin_family;
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ addr;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int /*<<< orphan*/,
                          int /*<<< orphan*/ *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *,
             int /*<<< orphan*/ *);
int /*<<< orphan*/ sendto(int, char *, size_t, int /*<<< orphan*/,
                          struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
size_t strlen(char *);
int main(int argc, char *argv[]) {
  int port;
  char ip[20];
  int sock;
  struct sockaddr_in addr;
  char buf[1024];
  int n;
  if (argc < 3) {
    printf("Usage: ./client ip port\n");
    return 0;
  } else {
    strcpy(ip, argv[1]);
    sscanf(argv[2], "%d", &port);
  }
  sock = socket(AF_INET, SOCK_DGRAM, 0);
  if (sock < 0) {
    printf("Error creating socket.\n");
    return 2;
  }
  addr.sin_addr.s_addr = inet_addr(ip);
  addr.sin_port = htons(port);
  addr.sin_family = AF_INET;
  printf("[CLIENT] Trying to send something to server...\n");
  strcpy(buf, "img.jpg");
  buf[strlen(buf)] = 0;
  sendto(sock, buf, strlen(buf), 0, (struct sockaddr *)&addr, sizeof(addr));
  char filename[1024];
  strcpy(filename, "new_");
  strcat(filename, buf);
  FILE *fp;
  fp = fopen(filename, "wb");
  while ((n = recvfrom(sock, buf, sizeof(buf), 0, NULL, NULL)) > 0) {
    printf("[CLIENT] Received %d bytes from server!", n);
    fflush(stdout);
    fwrite(buf, n, 0, fp);
  }
  printf("[CLIENT] Terminated.\n");
  fflush(stdout);
  close(sock);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x870,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    121d <main+0x3d>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13fc <main+0x21c>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xddc(%rip),%rsi
lea    -0x14(%rbp),%rdx
call   10c0 <sscanf@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%edi
mov    0x2d8a(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1100 <socket@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    1286 <main+0xa6>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13fc <main+0x21c>
lea    -0x30(%rbp),%rdi
call   1090 <inet_addr@plt>
mov    %eax,-0x38(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <htons@plt>
mov    %eax,-0x3c(%rbp)
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
lea    0xd84(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x440(%rbp),%rdi
lea    0xd9f(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x440(%rbp),%rdi
call   1040 <strlen@plt>
movb   $0x0,-0x440(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
mov    %eax,-0x864(%rbp)
lea    -0x440(%rbp),%rax
mov    %rax,-0x860(%rbp)
lea    -0x440(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x864(%rbp),%edi
mov    -0x860(%rbp),%rsi
mov    %rax,%rdx
lea    -0x40(%rbp),%r8
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
lea    -0x850(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x850(%rbp),%rdi
lea    -0x440(%rbp),%rsi
call   10e0 <strcat@plt>
lea    -0x850(%rbp),%rdi
lea    0xd1b(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x858(%rbp)
mov    -0x34(%rbp),%edi
lea    -0x440(%rbp),%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   10b0 <recvfrom@plt>
mov    %eax,-0x444(%rbp)
cmp    $0x0,%eax
jle    13d1 <main+0x1f1>
mov    -0x444(%rbp),%esi
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2c26(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
lea    -0x440(%rbp),%rdi
mov    -0x444(%rbp),%esi
mov    -0x858(%rbp),%rcx
xor    %edx,%edx
call   10f0 <fwrite@plt>
jmp    1362 <main+0x182>
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2bea(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    -0x34(%rbp),%edi
call   1080 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x870,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x848,%rsp
cmp    $0x2,%edi
jg     1217 <main+0x27>
lea    0xe89(%rip),%rdi
call   1040 <puts@plt>
jmp    13a3 <main+0x1b3>
mov    %rsi,%rbx
mov    0x8(%rsi),%rsi
lea    0x20(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x10(%rbx),%rdi
lea    0xdcd(%rip),%rsi
lea    0xc(%rsp),%rdx
call   10d0 <sscanf@plt>
mov    0x2da4(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
test   %eax,%eax
js     13a7 <main+0x1b7>
mov    %eax,%r12d
lea    0x20(%rsp),%rdi
call   10a0 <inet_addr@plt>
mov    %eax,0x18(%rsp)
mov    0xc(%rsp),%edi
call   1060 <htons@plt>
mov    %eax,0x14(%rsp)
mov    (%rbx),%eax
mov    %eax,0x10(%rsp)
lea    0xdb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xd6e(%rip),%rsi
lea    0x40(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %r15,%rdi
call   1050 <strlen@plt>
movb   $0x0,0x40(%rsp,%rax,1)
mov    %r15,%rdi
call   1050 <strlen@plt>
lea    0x10(%rsp),%r8
mov    %r12d,%edi
mov    %r15,%rsi
mov    %rax,%rdx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1080 <sendto@plt>
lea    0xd32(%rip),%rsi
lea    0x440(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10f0 <strcat@plt>
lea    0xd15(%rip),%rsi
mov    %rbx,%rdi
call   10e0 <fopen@plt>
mov    %rax,%r13
mov    %r12d,%edi
mov    %r15,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   10c0 <recvfrom@plt>
test   %eax,%eax
jle    1381 <main+0x191>
mov    %eax,%ebx
lea    0xce8(%rip),%r15
mov    0x2c9e(%rip),%r14
lea    0x40(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%r14),%edi
call   10b0 <fflush@plt>
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %edx,%edx
mov    %r13,%rcx
call   1100 <fwrite@plt>
mov    %r12d,%edi
mov    %rbp,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   10c0 <recvfrom@plt>
mov    %eax,%ebx
test   %eax,%eax
jg     1340 <main+0x150>
lea    0xce2(%rip),%rdi
call   1040 <puts@plt>
mov    0x2c3c(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
mov    %r12d,%edi
call   1090 <close@plt>
xor    %eax,%eax
jmp    13b8 <main+0x1c8>
lea    0xcd1(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%eax
add    $0x848,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [25 x i8] c"Usage: ./client ip port\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.2 = [24 x i8] c"Error creating socket.\0A\00"
@.str.3 = [48 x i8] c"[CLIENT] Trying to send something to server...\0A\00"
@.str.4 = [8 x i8] c"img.jpg\00"
@.str.5 = [5 x i8] c"new_\00"
@.str.6 = [3 x i8] c"wb\00"
@.str.7 = [40 x i8] c"[CLIENT] Received %d bytes from server!\00"
@stdout = global i32 0
@.str.8 = [22 x i8] c"[CLIENT] Terminated.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [20 x i8]
%8 = alloca i32
%9 = alloca %struct.sockaddr_in
%10 = alloca [1024 x i8]
%11 = alloca i32
%12 = alloca [1024 x i8]
%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 slt i32 %14, 3
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %85
18: ; preds = %2
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @strcpy(i8* %19, i8* %22)
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @sscanf(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
br label %28
28: ; preds = %18
%29 = load i32, i32* @AF_INET
%30 = load i32, i32* @SOCK_DGRAM
%31 = call i32 @socket(i32 %29, i32 %30, i32 0)
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
store i32 2, i32* %3
br label %85
36: ; preds = %28
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%38 = call i32 @inet_addr(i8* %37)
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
%40 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %39, i32 0, i32 0
store i32 %38, i32* %40
%41 = load i32, i32* %6
%42 = call i32 @htons(i32 %41)
%43 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
store i32 %42, i32* %43
%44 = load i32, i32* @AF_INET
%45 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
store i32 %44, i32* %45
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%48 = call i32 @strcpy(i8* %47, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%49 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%50 = call i64 @strlen(i8* %49)
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %50
store i8 0, i8* %51
%52 = load i32, i32* %8
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%54 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%55 = call i64 @strlen(i8* %54)
%56 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%57 = call i32 @sendto(i32 %52, i8* %53, i64 %55, i32 0, %struct.sockaddr* %56, i32 12)
%58 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%59 = call i32 @strcpy(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%62 = call i32 @strcat(i8* %60, i8* %61)
%63 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%64 = call i32* @fopen(i8* %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i32* %64, i32** %13
br label %65
65: ; preds = %70, %36
%66 = load i32, i32* %8
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%68 = call i32 @recvfrom(i32 %66, i8* %67, i32 1024, i32 0, i32* null, i32* null)
store i32 %68, i32* %11
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %79
70: ; preds = %65
%71 = load i32, i32* %11
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %71)
%73 = load i32, i32* @stdout
%74 = call i32 @fflush(i32 %73)
%75 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%76 = load i32, i32* %11
%77 = load i32*, i32** %13
%78 = call i32 @fwrite(i8* %75, i32 %76, i32 0, i32* %77)
br label %65
79: ; preds = %65
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%81 = load i32, i32* @stdout
%82 = call i32 @fflush(i32 %81)
%83 = load i32, i32* %8
%84 = call i32 @close(i32 %83)
store i32 0, i32* %3
br label %85
85: ; preds = %79, %34, %16
%86 = load i32, i32* %3
ret i32 %86
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str.1 = [3 x i8] c"%d\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.4 = [8 x i8] c"img.jpg\00"
@.str.5 = [5 x i8] c"new_\00"
@.str.6 = [3 x i8] c"wb\00"
@.str.7 = [40 x i8] c"[CLIENT] Received %d bytes from server!\00"
@stdout = global i32 0
@str = [47 x i8] c"[CLIENT] Trying to send something to server...\00"
@str.9 = [21 x i8] c"[CLIENT] Terminated.\00"
@str.10 = [23 x i8] c"Error creating socket.\00"
@str.11 = [24 x i8] c"Usage: ./client ip port\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [20 x i8]
%5 = alloca %struct.sockaddr_in
%6 = alloca [1024 x i8]
%7 = alloca [1024 x i8]
%8 = bitcast i32* %3 to i8*
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%10 = bitcast %struct.sockaddr_in* %5 to i8*
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%12 = icmp slt i32 %0, 3
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
br label %62
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @strcpy(i8* %9, i8* %17)
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%22 = load i32, i32* @AF_INET
%23 = load i32, i32* @SOCK_DGRAM
%24 = call i32 @socket(i32 %22, i32 %23, i32 0)
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %15
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.10, i64 0, i64 0))
br label %62
28: ; preds = %15
%29 = call i32 @inet_addr(i8* %9)
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 2, i32 0
store i32 %29, i32* %30
%31 = load i32, i32* %3
%32 = call i32 @htons(i32 %31)
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1
store i32 %32, i32* %33
%34 = load i32, i32* @AF_INET
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
store i32 %34, i32* %35
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%37 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%38 = call i64 @strlen(i8* %11)
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %38
store i8 0, i8* %39
%40 = call i64 @strlen(i8* %11)
%41 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%42 = call i32 @sendto(i32 %24, i8* %11, i64 %40, i32 0, %struct.sockaddr* %41, i32 12)
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%44 = call i32 @strcpy(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%45 = call i32 @strcat(i8* %43, i8* %11)
%46 = call i32* @fopen(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%47 = call i32 @recvfrom(i32 %24, i8* %11, i32 1024, i32 0, i32* null, i32* null)
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %57
49: ; preds = %28, %49
%50 = phi i32 [ %55, %49 ], [ %47, %28 ]
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %50)
%52 = load i32, i32* @stdout
%53 = call i32 @fflush(i32 %52)
%54 = call i32 @fwrite(i8* %11, i32 %50, i32 0, i32* %46)
%55 = call i32 @recvfrom(i32 %24, i8* %11, i32 1024, i32 0, i32* null, i32* null)
%56 = icmp sgt i32 %55, 0
br i1 %56, label %49, label %57
57: ; preds = %49, %28
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.9, i64 0, i64 0))
%59 = load i32, i32* @stdout
%60 = call i32 @fflush(i32 %59)
%61 = call i32 @close(i32 %24)
br label %62
62: ; preds = %57, %26, %13
%63 = phi i32 [ 0, %13 ], [ 2, %26 ], [ 0, %57 ]
ret i32 %63
}