#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 timeval {
  int dummy;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ si_server;
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htons(int);
scalar_t__ inet_aton(char *, int /*<<< orphan*/ *);
char *inet_ntoa(int /*<<< orphan*/);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *, char *, int);
int recv(int, char *, int, int /*<<< orphan*/);
int send(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  struct sockaddr_in si_server;
  int port, s, i, slen = sizeof(si_server);
  char buf[512];
  char srv_addr[16];
  fd_set readfds;
  struct timeval tv;
  int ret;
  if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
    perror("socket");
    exit(EXIT_FAILURE);
  }
  memset((char *)&si_server, 0, sizeof(si_server));
  si_server.sin_family = AF_INET;
  si_server.sin_port = htons(50000);
  if (inet_aton("127.0.0.1", &si_server.sin_addr) == 0) {
    fprintf(stderr, "inet_aton() failed\n");
    exit(EXIT_FAILURE);
  }
  if (connect(s, (struct sockaddr *)&si_server, sizeof(si_server)) == -1) {
    fprintf(stderr, "connect() failed\n");
    exit(EXIT_FAILURE);
  }
  for (i = 0; i < 1000000; i++) {
    sprintf(buf, "DATA PACKET # %d", i);
    printf("Sending -- %s -- to %s:%d\n", buf, inet_ntoa(si_server.sin_addr),
           ntohs(si_server.sin_port));
    if (send(s, buf, 512, 0) == -1) {
      perror("send()");
      exit(EXIT_FAILURE);
    }
    ret = recv(s, buf, 512, 0);
    if (ret > 0) {
      printf("Received -- %s -- from %s:%d\n", buf,
             inet_ntoa(si_server.sin_addr), ntohs(si_server.sin_port));
    } else {
      perror("recv()");
      exit(EXIT_FAILURE);
    }
    sleep(2);
  }
  close(s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x270,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xc,-0x30(%rbp)
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
mov    0x2d98(%rip),%rax
mov    (%rax),%esi
mov    0x2da7(%rip),%rax
mov    (%rax),%edx
call   1120 <socket@plt>
mov    %eax,-0x28(%rbp)
cmp    $0xffffffff,%eax
jne    1266 <main+0x66>
lea    0xdad(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    $0xc350,%edi
call   1050 <htons@plt>
mov    %eax,-0x20(%rbp)
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    0xd69(%rip),%rdi
call   10b0 <inet_aton@plt>
cmp    $0x0,%rax
jne    12d0 <main+0xd0>
mov    0x2d1c(%rip),%rax
mov    (%rax),%edi
lea    0xd54(%rip),%rsi
call   10a0 <fprintf@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x28(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   1100 <connect@plt>
cmp    $0xffffffff,%eax
jne    130d <main+0x10d>
mov    0x2cdf(%rip),%rax
mov    (%rax),%edi
lea    0xd2b(%rip),%rsi
call   10a0 <fprintf@plt>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0xf4240,-0x2c(%rbp)
jge    1452 <main+0x252>
lea    -0x230(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd05(%rip),%rsi
call   10e0 <sprintf@plt>
lea    -0x230(%rbp),%rax
mov    %rax,-0x260(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,-0x258(%rbp)
mov    -0x20(%rbp),%edi
call   10c0 <ntohs@plt>
mov    -0x260(%rbp),%rsi
mov    -0x258(%rbp),%rdx
mov    %eax,%ecx
lea    0xcd5(%rip),%rdi
call   1070 <printf@plt>
mov    -0x28(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    $0x200,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
jne    13b1 <main+0x1b1>
lea    0xcc5(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2c16(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x28(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    $0x200,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x24c(%rbp)
cmpl   $0x0,-0x24c(%rbp)
jle    1420 <main+0x220>
lea    -0x230(%rbp),%rax
mov    %rax,-0x270(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,-0x268(%rbp)
mov    -0x20(%rbp),%edi
call   10c0 <ntohs@plt>
mov    -0x270(%rbp),%rsi
mov    -0x268(%rbp),%rdx
mov    %eax,%ecx
lea    0xc54(%rip),%rdi
call   1070 <printf@plt>
jmp    143a <main+0x23a>
lea    0xc61(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2b8d(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    $0x2,%edi
call   1110 <sleep@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1314 <main+0x114>
mov    -0x28(%rbp),%edi
call   1090 <close@plt>
xor    %eax,%eax
add    $0x270,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
mov    0x2dd0(%rip),%rbx
mov    (%rbx),%edi
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
mov    0x2db6(%rip),%rax
mov    (%rax),%edx
call   1120 <socket@plt>
cmp    $0xffffffff,%eax
je     1382 <main+0x182>
mov    %eax,%r15d
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    (%rbx),%eax
mov    %eax,0x8(%rsp)
mov    $0xc350,%edi
call   1050 <htons@plt>
mov    %eax,(%rsp)
lea    0x4(%rsp),%rsi
lea    0xd9c(%rip),%rdi
call   10b0 <inet_aton@plt>
test   %rax,%rax
je     138b <main+0x18b>
mov    %rsp,%rsi
mov    %r15d,%edi
mov    $0xc,%edx
call   1100 <connect@plt>
cmp    $0xffffffff,%eax
je     13a2 <main+0x1a2>
xor    %ebp,%ebp
lea    0x10(%rsp),%r12
lea    0xdca(%rip),%r13
mov    %r12,%rdi
lea    0xd8d(%rip),%rsi
mov    %ebp,%edx
call   10e0 <sprintf@plt>
mov    0x4(%rsp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%r14
mov    (%rsp),%edi
call   10c0 <ntohs@plt>
lea    0xd7c(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %eax,%ecx
call   1070 <printf@plt>
mov    %r15d,%edi
mov    %r12,%rsi
mov    $0x200,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
je     135f <main+0x15f>
mov    %r15d,%edi
mov    %r12,%rsi
mov    $0x200,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
jle    1368 <main+0x168>
mov    0x4(%rsp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%rbx
mov    (%rsp),%edi
call   10c0 <ntohs@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
call   1070 <printf@plt>
mov    $0x2,%edi
call   1110 <sleep@plt>
add    $0x1,%ebp
cmp    $0xf4240,%ebp
jne    12a0 <main+0xa0>
mov    %r15d,%edi
call   1090 <close@plt>
xor    %eax,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcfd(%rip),%rdi
jmp    136f <main+0x16f>
lea    0xd19(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    0xc77(%rip),%rdi
jmp    136f <main+0x16f>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0xc76(%rip),%rsi
call   10a0 <fprintf@plt>
jmp    1374 <main+0x174>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
lea    0xc73(%rip),%rsi
call   10a0 <fprintf@plt>
jmp    1374 <main+0x174>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.timeval = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str = [7 x i8] c"socket\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [10 x i8] c"127.0.0.1\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"inet_aton() failed\0A\00"
@.str.3 = [18 x i8] c"connect() failed\0A\00"
@.str.4 = [17 x i8] c"DATA PACKET # %d\00"
@.str.5 = [27 x i8] c"Sending -- %s -- to %s:%d\0A\00"
@.str.6 = [7 x i8] c"send()\00"
@.str.7 = [30 x i8] c"Received -- %s -- from %s:%d\0A\00"
@.str.8 = [7 x i8] c"recv()\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [512 x i8]
%12 = alloca [16 x i8]
%13 = alloca i32
%14 = alloca %struct.timeval
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 12, i32* %10
%16 = load i32, i32* @AF_INET
%17 = load i32, i32* @SOCK_STREAM
%18 = load i32, i32* @IPPROTO_TCP
%19 = call i32 @socket(i32 %16, i32 %17, i32 %18)
store i32 %19, i32* %8
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @exit(i32 %23)
unreachable
25: ; preds = %2
%26 = bitcast %struct.sockaddr_in* %6 to i8*
%27 = call i32 @memset(i8* %26, i32 0, i32 12)
%28 = load i32, i32* @AF_INET
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %28, i32* %29
%30 = call i32 @htons(i32 50000)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
store i32 %30, i32* %31
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
%33 = call i64 @inet_aton(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32* %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %25
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%38 = load i32, i32* @EXIT_FAILURE
%39 = call i32 @exit(i32 %38)
unreachable
40: ; preds = %25
%41 = load i32, i32* %8
%42 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%43 = call i32 @connect(i32 %41, %struct.sockaddr* %42, i32 12)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %50
45: ; preds = %40
%46 = load i32, i32* @stderr
%47 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %40
store i32 0, i32* %9
br label %51
51: ; preds = %95, %50
%52 = load i32, i32* %9
%53 = icmp slt i32 %52, 1000000
br i1 %53, label %54, label %98
54: ; preds = %51
%55 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%56 = load i32, i32* %9
%57 = call i32 @sprintf(i8* %55, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%59 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
%60 = load i32, i32* %59
%61 = call i8* @inet_ntoa(i32 %60)
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%63 = load i32, i32* %62
%64 = call i32 @ntohs(i32 %63)
%65 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %58, i8* %61, i32 %64)
%66 = load i32, i32* %8
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%68 = call i32 @send(i32 %66, i8* %67, i32 512, i32 0)
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %74
70: ; preds = %54
%71 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%72 = load i32, i32* @EXIT_FAILURE
%73 = call i32 @exit(i32 %72)
unreachable
74: ; preds = %54
%75 = load i32, i32* %8
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%77 = call i32 @recv(i32 %75, i8* %76, i32 512, i32 0)
store i32 %77, i32* %15
%78 = load i32, i32* %15
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %89
80: ; preds = %74
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%82 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
%83 = load i32, i32* %82
%84 = call i8* @inet_ntoa(i32 %83)
%85 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%86 = load i32, i32* %85
%87 = call i32 @ntohs(i32 %86)
%88 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %81, i8* %84, i32 %87)
br label %93
89: ; preds = %74
%90 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%91 = load i32, i32* @EXIT_FAILURE
%92 = call i32 @exit(i32 %91)
unreachable
93: ; preds = %80
%94 = call i32 @sleep(i32 2)
br label %95
95: ; preds = %93
%96 = load i32, i32* %9
%97 = add nsw i32 %96, 1
store i32 %97, i32* %9
br label %51
98: ; preds = %51
%99 = load i32, i32* %8
%100 = call i32 @close(i32 %99)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str = [7 x i8] c"socket\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [10 x i8] c"127.0.0.1\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"inet_aton() failed\0A\00"
@.str.3 = [18 x i8] c"connect() failed\0A\00"
@.str.4 = [17 x i8] c"DATA PACKET # %d\00"
@.str.5 = [27 x i8] c"Sending -- %s -- to %s:%d\0A\00"
@.str.6 = [7 x i8] c"send()\00"
@.str.7 = [30 x i8] c"Received -- %s -- from %s:%d\0A\00"
@.str.8 = [7 x i8] c"recv()\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [512 x i8]
%5 = bitcast %struct.sockaddr_in* %3 to i8*
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%7 = load i32, i32* @AF_INET
%8 = load i32, i32* @SOCK_STREAM
%9 = load i32, i32* @IPPROTO_TCP
%10 = tail call i32 @socket(i32 %7, i32 %8, i32 %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @EXIT_FAILURE
%15 = tail call i32 @exit(i32 %14)
unreachable
16: ; preds = %2
%17 = call i32 @memset(i8* %5, i32 0, i32 12)
%18 = load i32, i32* @AF_INET
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %18, i32* %19
%20 = call i32 @htons(i32 50000)
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %20, i32* %21
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
%23 = call i64 @inet_aton(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %16
%31 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%32 = call i32 @connect(i32 %10, %struct.sockaddr* %31, i32 12)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%37 = load i32, i32* @EXIT_FAILURE
%38 = call i32 @exit(i32 %37)
unreachable
39: ; preds = %30, %56
%40 = phi i32 [ %63, %56 ], [ 0, %30 ]
%41 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %22
%43 = call i8* @inet_ntoa(i32 %42)
%44 = load i32, i32* %21
%45 = call i32 @ntohs(i32 %44)
%46 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %6, i8* %43, i32 %45)
%47 = call i32 @send(i32 %10, i8* %6, i32 512, i32 0)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %53
49: ; preds = %39
%50 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%51 = load i32, i32* @EXIT_FAILURE
%52 = call i32 @exit(i32 %51)
unreachable
53: ; preds = %39
%54 = call i32 @recv(i32 %10, i8* %6, i32 512, i32 0)
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %65
56: ; preds = %53
%57 = load i32, i32* %22
%58 = call i8* @inet_ntoa(i32 %57)
%59 = load i32, i32* %21
%60 = call i32 @ntohs(i32 %59)
%61 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %6, i8* %58, i32 %60)
%62 = call i32 @sleep(i32 2)
%63 = add nuw nsw i32 %40, 1
%64 = icmp eq i32 %63, 1000000
br i1 %64, label %69, label %39
65: ; preds = %53
%66 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%67 = load i32, i32* @EXIT_FAILURE
%68 = call i32 @exit(i32 %67)
unreachable
69: ; preds = %56
%70 = call i32 @close(i32 %10)
ret i32 0
}