#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_un {
  char *sun_path;
  int /*<<< orphan*/ sun_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ arguments;

/* Variables and functions */
int /*<<< orphan*/ AF_UNIX;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int send(int, char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char *);
int main(int argc, char const *argv[]) {
  int a, i, j, n, s, t, len;
  struct sockaddr_un remote;
  char arguments[100], str[10000];
  if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
    perror("socket");
    exit(1);
  }
  printf("Trying to connect...\n");
  remote.sun_family = AF_UNIX;
  strcpy(remote.sun_path, argv[1]);
  len = strlen(remote.sun_path) + sizeof(remote.sun_family);
  if (connect(s, (struct sockaddr *)&remote, len) == -1) {
    perror("connect");
    exit(1);
  }
  printf("Connected.\n");
  memset(arguments, '\0', sizeof(arguments));
  while (printf("Ange kommando > ") &&
         fgets(arguments, sizeof(arguments), stdin)) {
    arguments[strlen(arguments) - 1] = '\0';
    if (send(s, arguments, sizeof(arguments), 0) == -1) {
      perror("send");
      exit(1);
    }
    while ((t = recv(s, str, 100, 0)) > 0) {
      str[t] = '\0';
      if ((strcmp("ENDOFTRANS", str)))
        printf("%s", str);
      else
        break;
    }
    if (t < 0) {
      perror("recv");
      exit(1);
    } else if (t == 0)
      printf("Server closed connection\n");
  }
  close(s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x27d0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x24(%rbp)
cmp    $0xffffffff,%eax
jne    1224 <main+0x54>
lea    0xdeb(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
cltq
add    $0x4,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x24(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10e0 <connect@plt>
cmp    $0xffffffff,%eax
jne    128f <main+0xbf>
lea    0xd9d(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1080 <memset@plt>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x27c1(%rbp)
je     12f8 <main+0x128>
lea    -0xb0(%rbp),%rdi
mov    0x2d01(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x27c1(%rbp)
mov    -0x27c1(%rbp),%al
test   $0x1,%al
jne    130b <main+0x13b>
jmp    140f <main+0x23f>
lea    -0xb0(%rbp),%rdi
call   1050 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0xb0(%rbp,%rax,1)
mov    -0x24(%rbp),%edi
lea    -0xb0(%rbp),%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
jne    1359 <main+0x189>
lea    0xcf8(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
jmp    135e <main+0x18e>
mov    -0x24(%rbp),%edi
lea    -0x27c0(%rbp),%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x28(%rbp)
cmp    $0x0,%eax
jle    13cd <main+0x1fd>
movslq -0x28(%rbp),%rax
movb   $0x0,-0x27c0(%rbp,%rax,1)
lea    -0x27c0(%rbp),%rsi
lea    0xcad(%rip),%rdi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
je     13c3 <main+0x1f3>
lea    -0x27c0(%rbp),%rsi
lea    0xc9b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13c8 <main+0x1f8>
jmp    13cd <main+0x1fd>
jmp    135e <main+0x18e>
cmpl   $0x0,-0x28(%rbp)
jge    13ed <main+0x21d>
lea    0xc77(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
cmpl   $0x0,-0x28(%rbp)
jne    1405 <main+0x235>
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    140a <main+0x23a>
jmp    12b0 <main+0xe0>
mov    -0x24(%rbp),%edi
call   1090 <close@plt>
xor    %eax,%eax
add    $0x27d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2798,%rsp
mov    %rsi,%rbx
mov    0x2ded(%rip),%r14
mov    (%r14),%edi
mov    0x2dcb(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1100 <socket@plt>
cmp    $0xffffffff,%eax
je     13a0 <main+0x1c0>
mov    %eax,%ebp
lea    0xe18(%rip),%rdi
call   1050 <puts@plt>
mov    (%r14),%eax
mov    %eax,0x8(%rsp)
mov    0x8(%rbx),%rsi
call   1040 <strcpy@plt>
call   1060 <strlen@plt>
lea    0x4(%rax),%edx
mov    %rsp,%rsi
mov    %ebp,%edi
call   10f0 <connect@plt>
cmp    $0xffffffff,%eax
je     13a9 <main+0x1c9>
lea    0xdf6(%rip),%rdi
call   1050 <puts@plt>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1090 <memset@plt>
lea    0xd98(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
test   %eax,%eax
je     1366 <main+0x186>
lea    0x80(%rsp),%rbx
lea    0xd90(%rip),%r15
lea    0xd94(%rip),%r12
lea    0xd6c(%rip),%r13
jmp    12d6 <main+0xf6>
cs nopw 0x0(%rax,%rax,1)
nop
test   %eax,%eax
js     138a <main+0x1aa>
lea    0xd99(%rip),%rdi
call   1050 <puts@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
test   %eax,%eax
je     1366 <main+0x186>
mov    0x2d03(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    $0x64,%esi
call   10b0 <fgets@plt>
test   %rax,%rax
je     1366 <main+0x186>
mov    %r14,%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r14,1)
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
call   1070 <send@plt>
cmp    $0xffffffff,%eax
je     1381 <main+0x1a1>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
jle    12b0 <main+0xd0>
mov    %eax,%eax
movb   $0x0,0x80(%rsp,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     12c4 <main+0xe4>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1320 <main+0x140>
mov    %ebp,%edi
call   10a0 <close@plt>
xor    %eax,%eax
add    $0x2798,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc98(%rip),%rdi
jmp    1391 <main+0x1b1>
lea    0xca2(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xc59(%rip),%rdi
jmp    1391 <main+0x1b1>
lea    0xc57(%rip),%rdi
jmp    1391 <main+0x1b1>

LLVM IR (-O0):
%struct.sockaddr_un = type { i8*, i32 }
%struct.sockaddr = type { i32 }
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [22 x i8] c"Trying to connect...\0A\00"
@.str.2 = [8 x i8] c"connect\00"
@.str.3 = [12 x i8] c"Connected.\0A\00"
@.str.4 = [17 x i8] c"Ange kommando > \00"
@stdin = global i32 0
@.str.5 = [5 x i8] c"send\00"
@.str.6 = [11 x i8] c"ENDOFTRANS\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [5 x i8] c"recv\00"
@.str.9 = [26 x i8] c"Server closed connection\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 i32
%12 = alloca i32
%13 = alloca %struct.sockaddr_un
%14 = alloca [100 x i8]
%15 = alloca [10000 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* @AF_UNIX
%17 = load i32, i32* @SOCK_STREAM
%18 = call i32 @socket(i32 %16, i32 %17, i32 0)
store i32 %18, i32* %10
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* @AF_UNIX
%26 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %13, i32 0, i32 1
store i32 %25, i32* %26
%27 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %13, i32 0, i32 0
%28 = load i8*, i8** %27
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @strcpy(i8* %28, i8* %31)
%33 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %13, i32 0, i32 0
%34 = load i8*, i8** %33
%35 = call i32 @strlen(i8* %34)
%36 = sext i32 %35 to i64
%37 = add i64 %36, 4
%38 = trunc i64 %37 to i32
store i32 %38, i32* %12
%39 = load i32, i32* %10
%40 = bitcast %struct.sockaddr_un* %13 to %struct.sockaddr*
%41 = load i32, i32* %12
%42 = call i32 @connect(i32 %39, %struct.sockaddr* %40, i32 %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %47
44: ; preds = %23
%45 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %23
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%49 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 0
%50 = call i32 @memset(i8* %49, i8 signext 0, i32 100)
br label %51
51: ; preds = %104, %47
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 0
%56 = load i32, i32* @stdin
%57 = call i64 @fgets(i8* %55, i32 100, i32 %56)
%58 = icmp ne i64 %57, 0
br label %59
59: ; preds = %54, %51
%60 = phi i1 [ false, %51 ], [ %58, %54 ]
br i1 %60, label %61, label %105
61: ; preds = %59
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 %65
store i8 0, i8* %66
%67 = load i32, i32* %10
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 0
%69 = call i32 @send(i32 %67, i8* %68, i32 100, i32 0)
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %74
71: ; preds = %61
%72 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %61
br label %75
75: ; preds = %91, %74
%76 = load i32, i32* %10
%77 = getelementptr inbounds [10000 x i8], [10000 x i8]* %15, i64 0, i64 0
%78 = call i32 @recv(i32 %76, i8* %77, i32 100, i32 0)
store i32 %78, i32* %11
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %92
80: ; preds = %75
%81 = load i32, i32* %11
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [10000 x i8], [10000 x i8]* %15, i64 0, i64 %82
store i8 0, i8* %83
%84 = getelementptr inbounds [10000 x i8], [10000 x i8]* %15, i64 0, i64 0
%85 = call i64 @strcmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %80
%88 = getelementptr inbounds [10000 x i8], [10000 x i8]* %15, i64 0, i64 0
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %88)
br label %91
90: ; preds = %80
br label %92
91: ; preds = %87
br label %75
92: ; preds = %90, %75
%93 = load i32, i32* %11
%94 = icmp slt i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%97 = call i32 @exit(i32 1)
unreachable
98: ; preds = %92
%99 = load i32, i32* %11
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
br label %103
103: ; preds = %101, %98
br label %104
104: ; preds = %103
br label %51
105: ; preds = %59
%106 = load i32, i32* %10
%107 = call i32 @close(i32 %106)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i8*, i32 }
%struct.sockaddr = type { i32 }
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.2 = [8 x i8] c"connect\00"
@.str.4 = [17 x i8] c"Ange kommando > \00"
@stdin = global i32 0
@.str.5 = [5 x i8] c"send\00"
@.str.6 = [11 x i8] c"ENDOFTRANS\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [5 x i8] c"recv\00"
@str = [21 x i8] c"Trying to connect...\00"
@str.10 = [11 x i8] c"Connected.\00"
@str.11 = [25 x i8] c"Server closed connection\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_un
%4 = alloca [100 x i8]
%5 = alloca [10000 x i8]
%6 = bitcast %struct.sockaddr_un* %3 to i8*
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [10000 x i8], [10000 x i8]* %5, i64 0, i64 0
%9 = load i32, i32* @AF_UNIX
%10 = load i32, i32* @SOCK_STREAM
%11 = tail call i32 @socket(i32 %9, i32 %10, i32 0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%18 = load i32, i32* @AF_UNIX
%19 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %3, i64 0, i32 1
store i32 %18, i32* %19
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = tail call i32 @strcpy(i8* undef, i8* %21)
%23 = tail call i32 @strlen(i8* undef)
%24 = add i32 %23, 4
%25 = bitcast %struct.sockaddr_un* %3 to %struct.sockaddr*
%26 = call i32 @connect(i32 %11, %struct.sockaddr* %25, i32 %24)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %31
28: ; preds = %16
%29 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %16
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0))
%33 = call i32 @memset(i8* %7, i8 signext 0, i32 100)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %74, label %36
36: ; preds = %31, %71
%37 = load i32, i32* @stdin
%38 = call i64 @fgets(i8* %7, i32 100, i32 %37)
%39 = icmp eq i64 %38, 0
br i1 %39, label %74, label %40
40: ; preds = %36
%41 = call i32 @strlen(i8* %7)
%42 = add nsw i32 %41, -1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %43
store i8 0, i8* %44
%45 = call i32 @send(i32 %11, i8* %7, i32 100, i32 0)
%46 = icmp eq i32 %45, -1
br i1 %46, label %50, label %47
47: ; preds = %40
%48 = call i32 @recv(i32 %11, i8* %8, i32 100, i32 0)
%49 = icmp sgt i32 %48, 0
br i1 %49, label %53, label %63
50: ; preds = %40
%51 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %47, %59
%54 = phi i32 [ %61, %59 ], [ %48, %47 ]
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds [10000 x i8], [10000 x i8]* %5, i64 0, i64 %55
store i8 0, i8* %56
%57 = call i64 @strcmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %8)
%58 = icmp eq i64 %57, 0
br i1 %58, label %71, label %59
59: ; preds = %53
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %8)
%61 = call i32 @recv(i32 %11, i8* %8, i32 100, i32 0)
%62 = icmp sgt i32 %61, 0
br i1 %62, label %53, label %63
63: ; preds = %59, %47
%64 = phi i32 [ %48, %47 ], [ %61, %59 ]
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%68 = call i32 @exit(i32 1)
unreachable
69: ; preds = %63
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.11, i64 0, i64 0))
br label %71
71: ; preds = %53, %69
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %36
74: ; preds = %36, %71, %31
%75 = call i32 @close(i32 %11)
ret i32 0
}