#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 */

/* Variables and functions */
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ print_usage(char *);
int /*<<< orphan*/ printf(char *, char *);
int read(int, char *, int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ sprintf(char *, char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(char *, char *, int);
int write(int, char *, int);
int main(int argc, char *argv[]) {
  int fd, i;
  int ret;
  char packet[64], tmp[64];
  char reply[64];
  if (argc < 2)
    print_usage(argv[0]);
  fd = open("/dev/osr_usb0", O_RDWR);
  if (-1 == fd) {
    fprintf(stderr, "Failed to open %s\n", "/dev/osr_usb0");
    return 1;
  }
  memset(tmp, 0, 64);
  strncpy(tmp, argv[1], 64 - 3);
  for (i = 0; i < 4; i++) {
    sprintf(packet, "%s %i", tmp, i);
    ret = write(fd, packet, 64);
    if (ret < 0) {
      fprintf(stderr, "Failed to write to device after %d packets\n", i);
      close(fd);
      return 1;
    }
    printf("Send: %s\n", packet);
    sleep(1);
  }
  for (i = 0; i < 4; i++) {
    memset(reply, 0, 64);
    ret = read(fd, reply, 64);
    if (ret < 0) {
      fprintf(stderr, "Failed to read from device\n");
      close(fd);
      return 1;
    }
    printf("Reply: %s\n", reply);
    sleep(1);
  }
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11df <main+0x2f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <print_usage@plt>
mov    0x2e02(%rip),%rax
mov    (%rax),%esi
lea    0xe11(%rip),%rdi
call   10a0 <open@plt>
mov    %eax,-0x14(%rbp)
mov    $0xffffffff,%eax
cmp    -0x14(%rbp),%eax
jne    122f <main+0x7f>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
lea    0xdf9(%rip),%rsi
lea    0xde4(%rip),%rdx
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13a4 <main+0x1f4>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0x3d,%edx
call   1030 <strncpy@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    12fa <main+0x14a>
lea    -0x60(%rbp),%rdi
lea    -0xa0(%rbp),%rdx
mov    -0x18(%rbp),%ecx
lea    0xda0(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x14(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x40,%edx
call   1040 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    12d2 <main+0x122>
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
lea    0xd70(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
movl   $0x1,-0x4(%rbp)
jmp    13a4 <main+0x1f4>
lea    -0x60(%rbp),%rsi
lea    0xd76(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1262 <main+0xb2>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    1395 <main+0x1e5>
lea    -0xe0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    -0x14(%rbp),%edi
lea    -0xe0(%rbp),%rsi
mov    $0x40,%edx
call   1080 <read@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    136a <main+0x1ba>
mov    0x2c92(%rip),%rax
mov    (%rax),%edi
lea    0xd0e(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
movl   $0x1,-0x4(%rbp)
jmp    13a4 <main+0x1f4>
lea    -0xe0(%rbp),%rsi
lea    0xd01(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1301 <main+0x151>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xc8,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11cd <main+0x1d>
mov    (%rbx),%rdi
call   10c0 <print_usage@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%esi
lea    0xe23(%rip),%rdi
call   10a0 <open@plt>
cmp    $0xffffffff,%eax
je     14aa <main+0x2fa>
mov    %eax,%r14d
lea    0x80(%rsp),%rbp
xor    %r15d,%r15d
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    0x8(%rbx),%rsi
mov    %rbp,%rdi
mov    $0x3d,%edx
call   1030 <strncpy@plt>
lea    0xe01(%rip),%rsi
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %ecx,%ecx
call   10b0 <sprintf@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1040 <write@plt>
test   %eax,%eax
js     1486 <main+0x2d6>
lea    0xe02(%rip),%rdi
lea    0x40(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%r15d
mov    $0x1,%edi
call   10d0 <sleep@plt>
lea    0xdac(%rip),%rsi
lea    0x80(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x1,%ecx
call   10b0 <sprintf@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1040 <write@plt>
test   %eax,%eax
js     1486 <main+0x2d6>
lea    0xdaa(%rip),%rdi
lea    0x40(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
lea    0xd5a(%rip),%rsi
lea    0x80(%rsp),%rdx
mov    $0x2,%r15d
mov    %rbx,%rdi
mov    $0x2,%ecx
call   10b0 <sprintf@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1040 <write@plt>
test   %eax,%eax
js     1486 <main+0x2d6>
lea    0xd52(%rip),%rdi
lea    0x40(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
lea    0xd02(%rip),%rsi
lea    0x80(%rsp),%rdx
mov    $0x3,%r15d
mov    %rbx,%rdi
mov    $0x3,%ecx
call   10b0 <sprintf@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1040 <write@plt>
test   %eax,%eax
js     1486 <main+0x2d6>
lea    0xcfa(%rip),%rdi
lea    0x40(%rsp),%rsi
call   1050 <printf@plt>
mov    $0x1,%ebp
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1080 <read@plt>
test   %eax,%eax
js     14dd <main+0x32d>
lea    0xcd6(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1080 <read@plt>
test   %eax,%eax
js     14dd <main+0x32d>
lea    0xc93(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1080 <read@plt>
test   %eax,%eax
js     14dd <main+0x32d>
lea    0xc50(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1080 <read@plt>
test   %eax,%eax
js     14dd <main+0x32d>
lea    0xc11(%rip),%rdi
mov    %rsp,%rsi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %r14d,%edi
call   1070 <close@plt>
xor    %ebp,%ebp
jmp    14cd <main+0x31d>
mov    0x2b4b(%rip),%rax
mov    (%rax),%edi
lea    0xb91(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r14d,%edi
call   1070 <close@plt>
jmp    14c8 <main+0x318>
mov    0x2b27(%rip),%rax
mov    (%rax),%edi
lea    0xb54(%rip),%rsi
lea    0xb3f(%rip),%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2af4(%rip),%rax
mov    (%rax),%edi
lea    0xb70(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r14d,%edi
call   1070 <close@plt>
jmp    14cd <main+0x31d>

LLVM IR (-O0):
@.str = [14 x i8] c"/dev/osr_usb0\00"
@O_RDWR = global i32 0
@stderr = global i32 0
@.str.1 = [19 x i8] c"Failed to open %s\0A\00"
@.str.2 = [6 x i8] c"%s %i\00"
@.str.3 = [44 x i8] c"Failed to write to device after %d packets\0A\00"
@.str.4 = [10 x i8] c"Send: %s\0A\00"
@.str.5 = [28 x i8] c"Failed to read from device\0A\00"
@.str.6 = [11 x i8] c"Reply: %s\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 [64 x i8]
%10 = alloca [64 x i8]
%11 = alloca [64 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @print_usage(i8* %17)
br label %19
19: ; preds = %14, %2
%20 = load i32, i32* @O_RDWR
%21 = call i32 @open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %20)
store i32 %21, i32* %6
%22 = load i32, i32* %6
%23 = icmp eq i32 -1, %22
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %88
27: ; preds = %19
%28 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%29 = call i32 @memset(i8* %28, i32 0, i32 64)
%30 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32 @strncpy(i8* %30, i8* %33, i32 61)
store i32 0, i32* %7
br label %35
35: ; preds = %58, %27
%36 = load i32, i32* %7
%37 = icmp slt i32 %36, 4
br i1 %37, label %38, label %61
38: ; preds = %35
%39 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%40 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%41 = load i32, i32* %7
%42 = call i32 @sprintf(i8* %39, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %40, i32 %41)
%43 = load i32, i32* %6
%44 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%45 = call i32 @write(i32 %43, i8* %44, i32 64)
store i32 %45, i32* %8
%46 = load i32, i32* %8
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %38
%49 = load i32, i32* @stderr
%50 = load i32, i32* %7
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %6
%53 = call i32 @close(i32 %52)
store i32 1, i32* %3
br label %88
54: ; preds = %38
%55 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%56 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %55)
%57 = call i32 @sleep(i32 1)
br label %58
58: ; preds = %54
%59 = load i32, i32* %7
%60 = add nsw i32 %59, 1
store i32 %60, i32* %7
br label %35
61: ; preds = %35
store i32 0, i32* %7
br label %62
62: ; preds = %82, %61
%63 = load i32, i32* %7
%64 = icmp slt i32 %63, 4
br i1 %64, label %65, label %85
65: ; preds = %62
%66 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%67 = call i32 @memset(i8* %66, i32 0, i32 64)
%68 = load i32, i32* %6
%69 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%70 = call i32 @read(i32 %68, i8* %69, i32 64)
store i32 %70, i32* %8
%71 = load i32, i32* %8
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %65
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%76 = load i32, i32* %6
%77 = call i32 @close(i32 %76)
store i32 1, i32* %3
br label %88
78: ; preds = %65
%79 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%80 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %79)
%81 = call i32 @sleep(i32 1)
br label %82
82: ; preds = %78
%83 = load i32, i32* %7
%84 = add nsw i32 %83, 1
store i32 %84, i32* %7
br label %62
85: ; preds = %62
%86 = load i32, i32* %6
%87 = call i32 @close(i32 %86)
store i32 0, i32* %3
br label %88
88: ; preds = %85, %73, %48, %24
%89 = load i32, i32* %3
ret i32 %89
}

LLVM IR (-O2):
@.str = [14 x i8] c"/dev/osr_usb0\00"
@O_RDWR = global i32 0
@stderr = global i32 0
@.str.1 = [19 x i8] c"Failed to open %s\0A\00"
@.str.2 = [6 x i8] c"%s %i\00"
@.str.3 = [44 x i8] c"Failed to write to device after %d packets\0A\00"
@.str.4 = [10 x i8] c"Send: %s\0A\00"
@.str.5 = [28 x i8] c"Failed to read from device\0A\00"
@.str.6 = [11 x i8] c"Reply: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [64 x i8]
%4 = alloca [64 x i8]
%5 = alloca [64 x i8]
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%9 = icmp slt i32 %0, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i8*, i8** %1
%12 = tail call i32 @print_usage(i8* %11)
br label %13
13: ; preds = %10, %2
%14 = load i32, i32* @O_RDWR
%15 = tail call i32 @open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %83
20: ; preds = %13
%21 = call i32 @memset(i8* %7, i32 0, i32 64)
%22 = getelementptr inbounds i8*, i8** %1, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strncpy(i8* %7, i8* %23, i32 61)
%25 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %7, i32 0)
%26 = call i32 @write(i32 %15, i8* %6, i32 64)
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %45, %39, %33, %20
%29 = phi i32 [ 0, %20 ], [ 1, %33 ], [ 2, %39 ], [ 3, %45 ]
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i32 %29)
%32 = call i32 @close(i32 %15)
br label %83
33: ; preds = %20
%34 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%35 = call i32 @sleep(i32 1)
%36 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %7, i32 1)
%37 = call i32 @write(i32 %15, i8* %6, i32 64)
%38 = icmp slt i32 %37, 0
br i1 %38, label %28, label %39
39: ; preds = %33
%40 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%41 = call i32 @sleep(i32 1)
%42 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %7, i32 2)
%43 = call i32 @write(i32 %15, i8* %6, i32 64)
%44 = icmp slt i32 %43, 0
br i1 %44, label %28, label %45
45: ; preds = %39
%46 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%47 = call i32 @sleep(i32 1)
%48 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %7, i32 3)
%49 = call i32 @write(i32 %15, i8* %6, i32 64)
%50 = icmp slt i32 %49, 0
br i1 %50, label %28, label %51
51: ; preds = %45
%52 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%53 = call i32 @sleep(i32 1)
%54 = call i32 @memset(i8* %8, i32 0, i32 64)
%55 = call i32 @read(i32 %15, i8* %8, i32 64)
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %73, %67, %61, %51
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 @close(i32 %15)
br label %83
61: ; preds = %51
%62 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %8)
%63 = call i32 @sleep(i32 1)
%64 = call i32 @memset(i8* %8, i32 0, i32 64)
%65 = call i32 @read(i32 %15, i8* %8, i32 64)
%66 = icmp slt i32 %65, 0
br i1 %66, label %57, label %67
67: ; preds = %61
%68 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %8)
%69 = call i32 @sleep(i32 1)
%70 = call i32 @memset(i8* %8, i32 0, i32 64)
%71 = call i32 @read(i32 %15, i8* %8, i32 64)
%72 = icmp slt i32 %71, 0
br i1 %72, label %57, label %73
73: ; preds = %67
%74 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %8)
%75 = call i32 @sleep(i32 1)
%76 = call i32 @memset(i8* %8, i32 0, i32 64)
%77 = call i32 @read(i32 %15, i8* %8, i32 64)
%78 = icmp slt i32 %77, 0
br i1 %78, label %57, label %79
79: ; preds = %73
%80 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %8)
%81 = call i32 @sleep(i32 1)
%82 = call i32 @close(i32 %15)
br label %83
83: ; preds = %79, %57, %28, %17
%84 = phi i32 [ 1, %17 ], [ 1, %28 ], [ 1, %57 ], [ 0, %79 ]
ret i32 %84
}