#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;
};
struct hostent {
  int /*<<< orphan*/ h_length;
  scalar_t__ h_addr;
};
typedef int /*<<< orphan*/ serv_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ SOCK_STREAM;
int atoi(char *);
int /*<<< orphan*/ bcopy(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ build_websocket_handshake(char *);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ free(char *);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ htons(int);
char *malloc(int);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, char *, int);
int /*<<< orphan*/ sleep(int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
char *strerror(int /*<<< orphan*/);
int strlen(char *);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char **argv) {
  if (argc != 3) {
    printf("Number of arguments is not correct!!!!\n");
    printf("Usage: programName host portNr\n");
    exit(EXIT_FAILURE);
  }
  char *host = argv[1];
  int portnr = atoi(argv[2]);
  int sockfd;
  struct sockaddr_in serv_addr;
  struct hostent *server;
  sockfd = socket(AF_INET, SOCK_STREAM, 0);
  if (sockfd < 0) {
    printf("socket failed\n");
    return -1;
  }
  server = gethostbyname(host);
  if (server == NULL) {
    printf("no such host\n");
    close(sockfd);
    return -1;
  }
  memset((char *)&serv_addr, 0, sizeof(serv_addr));
  serv_addr.sin_family = AF_INET;
  serv_addr.sin_port = htons(portnr);
  bcopy((char *)server->h_addr, (char *)&serv_addr.sin_addr.s_addr,
        server->h_length);
  if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr))) {
    printf("connect error: %s\n", strerror(errno));
    close(sockfd);
    return -1;
  }
  char *tx_data = malloc(512);
  char *rx_data = malloc(512);
  memset(rx_data, '\0', 512);
  build_websocket_handshake(tx_data);
  int length = strlen(tx_data);
  write(sockfd, tx_data, length);
  read(sockfd, rx_data, 512);
  printf("message: %s\n", rx_data);
  while (1) {
    printf("reading\n");
    memset(rx_data, '\0', 512);
    read(sockfd, rx_data, 512);
    printf("message: %s\n", rx_data);
    sleep(500);
  }
  free(tx_data);
  free(rx_data);
  close(sockfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     125a <main+0x4a>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
mov    0x2d52(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jge    12b6 <main+0xa6>
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    143f <main+0x22f>
mov    -0x18(%rbp),%rdi
call   10a0 <gethostbyname@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12f0 <main+0xe0>
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%edi
call   1080 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    143f <main+0x22f>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
call   1050 <htons@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    (%rax),%edx
call   10d0 <bcopy@plt>
mov    -0x20(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0xc,%edx
call   1100 <connect@plt>
cmp    $0x0,%rax
je     137c <main+0x16c>
mov    0x2c80(%rip),%rax
mov    (%rax),%edi
call   1110 <strerror@plt>
mov    %rax,%rsi
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%edi
call   1080 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    143f <main+0x22f>
mov    $0x200,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    $0x200,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1070 <memset@plt>
mov    -0x40(%rbp),%rdi
call   10c0 <build_websocket_handshake@plt>
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    -0x4c(%rbp),%edx
call   1030 <write@plt>
mov    -0x20(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    $0x200,%edx
call   1090 <read@plt>
mov    -0x48(%rbp),%rsi
lea    0xc90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1070 <memset@plt>
mov    -0x20(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    $0x200,%edx
call   1090 <read@plt>
mov    -0x48(%rbp),%rsi
lea    0xc4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1f4,%edi
call   1120 <sleep@plt>
jmp    13ef <main+0x1df>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
cmp    $0x3,%edi
jne    13d0 <main+0x1b0>
mov    0x8(%rsi),%rbp
mov    0x10(%rsi),%rdi
call   10f0 <atoi@plt>
mov    %eax,%ebx
mov    0x2d9d(%rip),%r12
mov    (%r12),%edi
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1140 <socket@plt>
test   %eax,%eax
js     12e0 <main+0xc0>
mov    %eax,%r14d
mov    %rbp,%rdi
call   10b0 <gethostbyname@plt>
test   %rax,%rax
je     12ee <main+0xce>
mov    %rax,%rbp
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    (%r12),%eax
mov    %eax,0x8(%rsp)
mov    %ebx,%edi
call   1060 <htons@plt>
mov    %eax,0x4(%rsp)
mov    0x8(%rbp),%rsi
mov    0x0(%rbp),%edx
mov    %r15,%rdi
call   10e0 <memmove@plt>
mov    %r14d,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1110 <connect@plt>
test   %rax,%rax
je     1314 <main+0xf4>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
call   1120 <strerror@plt>
lea    0xd2c(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    12fa <main+0xda>
lea    0xd4e(%rip),%rdi
call   1030 <puts@plt>
jmp    1302 <main+0xe2>
lea    0xd33(%rip),%rdi
call   1030 <puts@plt>
mov    %r14d,%edi
call   1090 <close@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x200,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbp
mov    $0x200,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1080 <memset@plt>
mov    %rbp,%rdi
call   10d0 <build_websocket_handshake@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %r14d,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x200,%edx
call   10a0 <read@plt>
lea    0xca2(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc9b(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1080 <memset@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x200,%edx
call   10a0 <read@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1f4,%edi
call   1130 <sleep@plt>
jmp    1390 <main+0x170>
lea    0xc6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xc87(%rip),%rdi
call   1030 <puts@plt>
mov    0x2bd9(%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.hostent = type { i32, i64 }
%struct.sockaddr = type { i32 }
@.str = [40 x i8] c"Number of arguments is not correct!!!!\0A\00"
@.str.1 = [32 x i8] c"Usage: programName host portNr\0A\00"
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.2 = [15 x i8] c"socket failed\0A\00"
@.str.3 = [14 x i8] c"no such host\0A\00"
@.str.4 = [19 x i8] c"connect error: %s\0A\00"
@errno = global i32 0
@.str.5 = [13 x i8] c"message: %s\0A\00"
@.str.6 = [9 x i8] c"reading\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.sockaddr_in
%10 = alloca %struct.hostent*
%11 = alloca i8*
%12 = alloca 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 ne i32 %14, 3
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* @EXIT_FAILURE
%20 = call i32 @exit(i32 %19)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
store i8* %24, i8** %6
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call i32 @atoi(i8* %27)
store i32 %28, i32* %7
%29 = load i32, i32* @AF_INET
%30 = load i32, i32* @SOCK_STREAM
%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 = %21
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %102
36: ; preds = %21
%37 = load i8*, i8** %6
%38 = call %struct.hostent* @gethostbyname(i8* %37)
store %struct.hostent* %38, %struct.hostent** %10
%39 = load %struct.hostent*, %struct.hostent** %10
%40 = icmp eq %struct.hostent* %39, null
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* %8
%44 = call i32 @close(i32 %43)
store i32 -1, i32* %3
br label %102
45: ; preds = %36
%46 = bitcast %struct.sockaddr_in* %9 to i8*
%47 = call i32 @memset(i8* %46, i8 signext 0, i32 12)
%48 = load i32, i32* @AF_INET
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i32 %48, i32* %49
%50 = load i32, i32* %7
%51 = call i32 @htons(i32 %50)
%52 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
store i32 %51, i32* %52
%53 = load %struct.hostent*, %struct.hostent** %10
%54 = getelementptr inbounds %struct.hostent, %struct.hostent* %53, i32 0, i32 1
%55 = load i64, i64* %54
%56 = inttoptr i64 %55 to i8*
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%58 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %57, i32 0, i32 0
%59 = bitcast i32* %58 to i8*
%60 = load %struct.hostent*, %struct.hostent** %10
%61 = getelementptr inbounds %struct.hostent, %struct.hostent* %60, i32 0, i32 0
%62 = load i32, i32* %61
%63 = call i32 @bcopy(i8* %56, i8* %59, i32 %62)
%64 = load i32, i32* %8
%65 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%66 = call i64 @connect(i32 %64, %struct.sockaddr* %65, i32 12)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %45
%69 = load i32, i32* @errno
%70 = call i8* @strerror(i32 %69)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %70)
%72 = load i32, i32* %8
%73 = call i32 @close(i32 %72)
store i32 -1, i32* %3
br label %102
74: ; preds = %45
%75 = call i8* @malloc(i32 512)
store i8* %75, i8** %11
%76 = call i8* @malloc(i32 512)
store i8* %76, i8** %12
%77 = load i8*, i8** %12
%78 = call i32 @memset(i8* %77, i8 signext 0, i32 512)
%79 = load i8*, i8** %11
%80 = call i32 @build_websocket_handshake(i8* %79)
%81 = load i8*, i8** %11
%82 = call i32 @strlen(i8* %81)
store i32 %82, i32* %13
%83 = load i32, i32* %8
%84 = load i8*, i8** %11
%85 = load i32, i32* %13
%86 = call i32 @write(i32 %83, i8* %84, i32 %85)
%87 = load i32, i32* %8
%88 = load i8*, i8** %12
%89 = call i32 @read(i32 %87, i8* %88, i32 512)
%90 = load i8*, i8** %12
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %90)
br label %92
92: ; preds = %74, %92
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%94 = load i8*, i8** %12
%95 = call i32 @memset(i8* %94, i8 signext 0, i32 512)
%96 = load i32, i32* %8
%97 = load i8*, i8** %12
%98 = call i32 @read(i32 %96, i8* %97, i32 512)
%99 = load i8*, i8** %12
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %99)
%101 = call i32 @sleep(i32 500)
br label %92
102: ; preds = %68, %41, %34
%103 = load i32, i32* %3
ret i32 %103
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
%struct.sockaddr = type { i32 }
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.4 = [19 x i8] c"connect error: %s\0A\00"
@errno = global i32 0
@.str.5 = [13 x i8] c"message: %s\0A\00"
@str = [8 x i8] c"reading\00"
@str.7 = [13 x i8] c"no such host\00"
@str.8 = [14 x i8] c"socket failed\00"
@str.9 = [39 x i8] c"Number of arguments is not correct!!!!\00"
@str.10 = [31 x i8] c"Usage: programName host portNr\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = icmp eq i32 %0, 3
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.10, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32 @atoi(i8* %14)
%16 = bitcast %struct.sockaddr_in* %3 to i8*
%17 = load i32, i32* @AF_INET
%18 = load i32, i32* @SOCK_STREAM
%19 = tail call i32 @socket(i32 %17, i32 %18, i32 0)
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %10
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.8, i64 0, i64 0))
br label %63
23: ; preds = %10
%24 = tail call %struct.hostent* @gethostbyname(i8* %12)
%25 = icmp eq %struct.hostent* %24, null
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.7, i64 0, i64 0))
%28 = tail call i32 @close(i32 %19)
br label %63
29: ; preds = %23
%30 = call i32 @memset(i8* %16, i8 signext 0, i32 12)
%31 = load i32, i32* @AF_INET
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %31, i32* %32
%33 = call i32 @htons(i32 %15)
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %33, i32* %34
%35 = getelementptr inbounds %struct.hostent, %struct.hostent* %24, i64 0, i32 1
%36 = load i64, i64* %35
%37 = inttoptr i64 %36 to i8*
%38 = getelementptr inbounds %struct.hostent, %struct.hostent* %24, i64 0, i32 0
%39 = load i32, i32* %38
%40 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%41 = call i64 @connect(i32 %19, %struct.sockaddr* %40, i32 12)
%42 = icmp eq i64 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %29
%44 = load i32, i32* @errno
%45 = call i8* @strerror(i32 %44)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %45)
%47 = call i32 @close(i32 %19)
br label %63
48: ; preds = %29
%49 = call dereferenceable_or_null(512) i8* @malloc(i32 512)
%50 = call dereferenceable_or_null(512) i8* @malloc(i32 512)
%51 = call i32 @memset(i8* %50, i8 signext 0, i32 512)
%52 = call i32 @build_websocket_handshake(i8* %49)
%53 = call i32 @strlen(i8* %49)
%54 = call i32 @write(i32 %19, i8* %49, i32 %53)
%55 = call i32 @read(i32 %19, i8* %50, i32 512)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %50)
br label %57
57: ; preds = %57, %48
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%59 = call i32 @memset(i8* %50, i8 signext 0, i32 512)
%60 = call i32 @read(i32 %19, i8* %50, i32 512)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %50)
%62 = call i32 @sleep(i32 500)
br label %57
63: ; preds = %43, %26, %21
ret i32 -1
}