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

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ SOCK_STREAM;
int atoi(char *);
int /*<<< orphan*/ bzero(struct sockaddr_in *, int);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htons(int);
scalar_t__ inet_pton(int /*<<< orphan*/, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int write(int, int *, int);
int main(int argc, char *argv[]) {
  int sockfd;
  struct sockaddr_in serverAddr;
  int send_number;
  int recv_number;
  int numBytesRcvd = 0;
  int server_port;
  if (argc < 3) {
    fprintf(stderr, "usage: incrementClient <ServerIPaddress> "
                    "[ServerPortNumber] <number>\n");
    exit(0);
  } else if (argc == 3) {
    fprintf(stderr, "Defaulting to port 10001\n");
    server_port = 10001;
    send_number = atoi(argv[2]);
  } else if (argc == 4) {
    server_port = atoi(argv[2]);
    send_number = atoi(argv[3]);
  }
  sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
  if (sockfd < 0) {
    perror("socket error");
    exit(1);
  }
  printf("Created socket.\n");
  bzero(&serverAddr, sizeof(serverAddr));
  serverAddr.sin_family = AF_INET;
  serverAddr.sin_port = htons(server_port);
  if (inet_pton(AF_INET, argv[1], &serverAddr.sin_addr) <= 0) {
    perror("inet_pton() failed");
    exit(0);
  }
  if (connect(sockfd, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) {
    perror("connect error");
    exit(1);
  }
  printf("Connected to server.\n");
  if (write(sockfd, &send_number, sizeof(int)) != sizeof(int)) {
    perror("write error");
    exit(1);
  }
  printf("Sent number %d to server.\n", send_number);
  if (read(sockfd, &recv_number, sizeof(int)) != sizeof(int)) {
    perror("read() error");
    exit(1);
  }
  printf("Received incremented number %d from server.\n", recv_number);
  close(sockfd);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1213 <main+0x43>
mov    0x2dd2(%rip),%rax
mov    (%rax),%edi
lea    0xdf9(%rip),%rsi
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
cmpl   $0x3,-0x8(%rbp)
jne    124e <main+0x7e>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
lea    0xe19(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x2711,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    127d <main+0xad>
cmpl   $0x4,-0x8(%rbp)
jne    1278 <main+0xa8>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    127d <main+0xad>
jmp    1282 <main+0xb2>
mov    0x2d5f(%rip),%rax
mov    (%rax),%edi
mov    0x2d36(%rip),%rax
mov    (%rax),%esi
mov    0x2d45(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12c5 <main+0xf5>
lea    0xdaa(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0xc,%esi
call   10b0 <bzero@plt>
mov    0x2d00(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x30(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    -0x20(%rbp),%rdx
call   1090 <inet_pton@plt>
cmp    $0x0,%rax
jg     132f <main+0x15f>
lea    0xd5b(%rip),%rdi
call   10a0 <perror@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   10e0 <connect@plt>
cmp    $0x0,%rax
jge    1360 <main+0x190>
lea    0xd40(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
cltq
cmp    $0x4,%rax
je     13a1 <main+0x1d1>
lea    0xd23(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x24(%rbp),%esi
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x4,%edx
call   1070 <read@plt>
cltq
cmp    $0x4,%rax
je     13e5 <main+0x215>
lea    0xd06(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x28(%rbp),%esi
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1060 <close@plt>
xor    %edi,%edi
call   10d0 <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
jg     120f <main+0x2f>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
lea    0xdfd(%rip),%rsi
call   1090 <fprintf@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
mov    %rsi,%rbx
cmp    $0x4,%edi
je     1248 <main+0x68>
cmp    $0x3,%edi
jne    1263 <main+0x83>
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x10(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r14d
mov    %eax,(%rsp)
mov    $0x2711,%r15d
jmp    1263 <main+0x83>
mov    0x10(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r15d
mov    0x18(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r14d
mov    %eax,(%rsp)
mov    0x2d7e(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2d54(%rip),%rax
mov    (%rax),%esi
mov    0x2d63(%rip),%rax
mov    (%rax),%edx
call   1100 <socket@plt>
test   %eax,%eax
jns    129e <main+0xbe>
lea    0xdd1(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    %eax,%r13d
lea    0xe47(%rip),%rdi
call   1030 <puts@plt>
lea    0x8(%rsp),%r12
mov    %r12,%rdi
mov    $0xc,%esi
call   10c0 <bzero@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    %r15d,%edi
call   1050 <htons@plt>
mov    %eax,0xc(%rsp)
mov    0x0(%rbp),%edi
mov    0x8(%rbx),%rsi
mov    %r12,%rdx
call   10a0 <inet_pton@plt>
test   %rax,%rax
jg     12f9 <main+0x119>
lea    0xd80(%rip),%rdi
call   10b0 <perror@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
lea    0x8(%rsp),%rsi
mov    %r13d,%edi
mov    $0xc,%edx
call   10f0 <connect@plt>
test   %rax,%rax
jns    131c <main+0x13c>
lea    0xd69(%rip),%rdi
jmp    128f <main+0xaf>
lea    0xddc(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rsi
mov    %r13d,%edi
mov    $0x4,%edx
call   1040 <write@plt>
cmp    $0x4,%eax
jne    1386 <main+0x1a6>
lea    0xd56(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %r13d,%edi
mov    $0x4,%edx
call   1080 <read@plt>
cmp    $0x4,%eax
jne    1392 <main+0x1b2>
mov    0x4(%rsp),%esi
lea    0xd52(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13d,%edi
call   1070 <close@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
lea    0xd01(%rip),%rdi
jmp    128f <main+0xaf>
lea    0xd1c(%rip),%rdi
jmp    128f <main+0xaf>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [70 x i8] c"usage: incrementClient <ServerIPaddress> [ServerPortNumber] <number>\0A\00"
@.str.1 = [26 x i8] c"Defaulting to port 10001\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.2 = [13 x i8] c"socket error\00"
@.str.3 = [17 x i8] c"Created socket.\0A\00"
@.str.4 = [19 x i8] c"inet_pton() failed\00"
@.str.5 = [14 x i8] c"connect error\00"
@.str.6 = [22 x i8] c"Connected to server.\0A\00"
@.str.7 = [12 x i8] c"write error\00"
@.str.8 = [27 x i8] c"Sent number %d to server.\0A\00"
@.str.9 = [13 x i8] c"read() error\00"
@.str.10 = [45 x i8] c"Received incremented number %d from server.\0A\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %10
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 0)
unreachable
18: ; preds = %2
%19 = load i32, i32* %4
%20 = icmp eq i32 %19, 3
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
store i32 10001, i32* %11
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
store i32 %27, i32* %8
br label %41
28: ; preds = %18
%29 = load i32, i32* %4
%30 = icmp eq i32 %29, 4
br i1 %30, label %31, label %40
31: ; preds = %28
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
%35 = call i32 @atoi(i8* %34)
store i32 %35, i32* %11
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 3
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
store i32 %39, i32* %8
br label %40
40: ; preds = %31, %28
br label %41
41: ; preds = %40, %21
br label %42
42: ; preds = %41
%43 = load i32, i32* @AF_INET
%44 = load i32, i32* @SOCK_STREAM
%45 = load i32, i32* @IPPROTO_TCP
%46 = call i32 @socket(i32 %43, i32 %44, i32 %45)
store i32 %46, i32* %6
%47 = load i32, i32* %6
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %42
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @bzero(%struct.sockaddr_in* %7, i32 12)
%55 = load i32, i32* @AF_INET
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %55, i32* %56
%57 = load i32, i32* %11
%58 = call i32 @htons(i32 %57)
%59 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
store i32 %58, i32* %59
%60 = load i32, i32* @AF_INET
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%65 = call i64 @inet_pton(i32 %60, i8* %63, i32* %64)
%66 = icmp sle i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %52
%68 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%69 = call i32 @exit(i32 0)
unreachable
70: ; preds = %52
%71 = load i32, i32* %6
%72 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%73 = call i64 @connect(i32 %71, %struct.sockaddr* %72, i32 12)
%74 = icmp slt i64 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %70
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%80 = load i32, i32* %6
%81 = call i32 @write(i32 %80, i32* %8, i32 4)
%82 = sext i32 %81 to i64
%83 = icmp ne i64 %82, 4
br i1 %83, label %84, label %87
84: ; preds = %78
%85 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%86 = call i32 @exit(i32 1)
unreachable
87: ; preds = %78
%88 = load i32, i32* %8
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %6
%91 = call i32 @read(i32 %90, i32* %9, i32 4)
%92 = sext i32 %91 to i64
%93 = icmp ne i64 %92, 4
br i1 %93, label %94, label %97
94: ; preds = %87
%95 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%96 = call i32 @exit(i32 1)
unreachable
97: ; preds = %87
%98 = load i32, i32* %9
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %6
%101 = call i32 @close(i32 %100)
%102 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [70 x i8] c"usage: incrementClient <ServerIPaddress> [ServerPortNumber] <number>\0A\00"
@.str.1 = [26 x i8] c"Defaulting to port 10001\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.2 = [13 x i8] c"socket error\00"
@.str.4 = [19 x i8] c"inet_pton() failed\00"
@.str.5 = [14 x i8] c"connect error\00"
@.str.7 = [12 x i8] c"write error\00"
@.str.8 = [27 x i8] c"Sent number %d to server.\0A\00"
@.str.9 = [13 x i8] c"read() error\00"
@.str.10 = [45 x i8] c"Received incremented number %d from server.\0A\00"
@str = [16 x i8] c"Created socket.\00"
@str.11 = [21 x i8] c"Connected to server.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca i32
%5 = alloca i32
%6 = bitcast %struct.sockaddr_in* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = icmp slt i32 %0, 3
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @exit(i32 0)
unreachable
14: ; preds = %2
switch i32 %0, label %28 [
i32 3, label %15
i32 4, label %21
]
15: ; preds = %14
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = load i8*, i8** %18
%20 = tail call i32 @atoi(i8* %19)
store i32 %20, i32* %4
br label %28
21: ; preds = %14
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = tail call i32 @atoi(i8* %23)
%25 = getelementptr inbounds i8*, i8** %1, i64 3
%26 = load i8*, i8** %25
%27 = tail call i32 @atoi(i8* %26)
store i32 %27, i32* %4
br label %28
28: ; preds = %14, %15, %21
%29 = phi i32 [ %20, %15 ], [ %27, %21 ], [ undef, %14 ]
%30 = phi i32 [ 10001, %15 ], [ %24, %21 ], [ undef, %14 ]
%31 = load i32, i32* @AF_INET
%32 = load i32, i32* @SOCK_STREAM
%33 = load i32, i32* @IPPROTO_TCP
%34 = tail call i32 @socket(i32 %31, i32 %32, i32 %33)
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %28
%37 = tail call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%38 = tail call i32 @exit(i32 1)
unreachable
39: ; preds = %28
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%41 = call i32 @bzero(%struct.sockaddr_in* %3, i32 12)
%42 = load i32, i32* @AF_INET
%43 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %42, i32* %43
%44 = tail call i32 @htons(i32 %30)
%45 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %44, i32* %45
%46 = load i32, i32* @AF_INET
%47 = getelementptr inbounds i8*, i8** %1, i64 1
%48 = load i8*, i8** %47
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
%50 = call i64 @inet_pton(i32 %46, i8* %48, i32* %49)
%51 = icmp slt i64 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %39
%53 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%54 = call i32 @exit(i32 0)
unreachable
55: ; preds = %39
%56 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%57 = call i64 @connect(i32 %34, %struct.sockaddr* %56, i32 12)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%61 = call i32 @exit(i32 1)
unreachable
62: ; preds = %55
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0))
%64 = call i32 @write(i32 %34, i32* %4, i32 4)
%65 = icmp eq i32 %64, 4
br i1 %65, label %69, label %66
66: ; preds = %62
%67 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%68 = call i32 @exit(i32 1)
unreachable
69: ; preds = %62
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %29)
%71 = call i32 @read(i32 %34, i32* %5, i32 4)
%72 = icmp eq i32 %71, 4
br i1 %72, label %76, label %73
73: ; preds = %69
%74 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%75 = call i32 @exit(i32 1)
unreachable
76: ; preds = %69
%77 = load i32, i32* %5
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %77)
%79 = call i32 @close(i32 %34)
%80 = call i32 @exit(i32 0)
unreachable
}