#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 */
typedef int /*<<< orphan*/ ssize_t;
typedef scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ perror(char *);
int pipe(int *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ read(int, char *, int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ write(int, ...);
int main(int args, char *argv[]) {
  int pds_p_h[2];
  int pds_h_p[2];
  int stat = pipe(pds_p_h);
  if (stat == -1) {
    perror("pipe");
    exit(EXIT_FAILURE);
  }
  stat = pipe(pds_h_p);
  if (stat == -1) {
    perror("pipe");
    exit(EXIT_FAILURE);
  }
  pid_t pid = fork();
  if (pid < 0) {
    perror("fork");
    exit(EXIT_FAILURE);
  } else if (pid == 0) {
    int msgs = 0;
    char *cbuff;
    while (msgs < 10) {
      ssize_t rea = read(pds_p_h[0], cbuff, sizeof(&cbuff));
      printf("%s\n", cbuff);
      sleep(1);
      ssize_t writ = write(pds_h_p[1], "l", 1);
      msgs++;
    }
    ssize_t writ = write(pds_h_p[1], "q", 1);
    exit(EXIT_SUCCESS);
  } else if (pid > 0) {
    int stop = 0;
    while (stop == 0) {
      char *buf;
      ssize_t readed = read(0, buf, sizeof(&buf));
      ssize_t written = write(pds_p_h[1], &buf, readed);
      readed = read(pds_p_h[0], buf, 1);
      if (buf[0] == 'q')
        stop = 1;
    }
    exit(EXIT_SUCCESS);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
call   1050 <pipe@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    11bf <main+0x3f>
lea    0xe54(%rip),%rdi
call   1070 <perror@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
lea    -0x20(%rbp),%rdi
call   1050 <pipe@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    11ef <main+0x6f>
lea    0xe24(%rip),%rdi
call   1070 <perror@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jge    121f <main+0x9f>
lea    0xdf9(%rip),%rdi
call   1070 <perror@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
cmpq   $0x0,-0x30(%rbp)
jne    12b7 <main+0x137>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1290 <main+0x110>
mov    -0x18(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%rsi
lea    0xdb0(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    -0x1c(%rbp),%edi
lea    0xd9b(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <write@plt>
mov    %eax,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1231 <main+0xb1>
mov    -0x1c(%rbp),%edi
lea    0xd76(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <write@plt>
mov    %eax,-0x4c(%rbp)
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
cmpq   $0x0,-0x30(%rbp)
jle    1338 <main+0x1b8>
movl   $0x0,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jne    132a <main+0x1aa>
mov    -0x58(%rbp),%rsi
xor    %edi,%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x5c(%rbp),%edx
lea    -0x58(%rbp),%rsi
mov    $0x0,%al
call   1030 <write@plt>
mov    %eax,-0x60(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x58(%rbp),%rsi
mov    $0x1,%edx
call   1060 <read@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x71,%eax
jne    1325 <main+0x1a5>
movl   $0x1,-0x50(%rbp)
jmp    12c9 <main+0x149>
mov    0x2ca7(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
jmp    133d <main+0x1bd>
jmp    1342 <main+0x1c2>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsp,%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
je     11a3 <main+0x23>
lea    0x8(%rsp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
jne    11bd <main+0x3d>
lea    0xe56(%rip),%rdi
call   1070 <perror@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
xor    %eax,%eax
call   10a0 <fork@plt>
test   %rax,%rax
jns    11d2 <main+0x52>
lea    0xe35(%rip),%rdi
jmp    11aa <main+0x2a>
jne    13f3 <main+0x273>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
lea    0xe1e(%rip),%r14
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
lea    0xe05(%rip),%rbx
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    0xc(%rsp),%edi
lea    0xc2b(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
jmp    1438 <main+0x2b8>
lea    0x10(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    $0x8,%edx
call   1060 <read@plt>
mov    0x4(%rsp),%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%rsp),%edi
mov    0x10(%rsp),%rsi
mov    $0x1,%edx
call   1060 <read@plt>
mov    0x10(%rsp),%rax
cmpb   $0x71,(%rax)
jne    1400 <main+0x280>
mov    0x2b99(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"pipe\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [2 x i8] c"l\00"
@.str.4 = [2 x i8] c"q\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [2 x i32]
%6 = alloca [2 x i32]
%7 = alloca i32
%8 = alloca i64
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%19 = call i32 @pipe(i32* %18)
store i32 %19, i32* %7
%20 = load i32, i32* %7
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %2
%23 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %2
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%28 = call i32 @pipe(i32* %27)
store i32 %28, i32* %7
%29 = load i32, i32* %7
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %35
31: ; preds = %26
%32 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %26
%36 = call i64 (...) @fork()
store i64 %36, i64* %8
%37 = load i64, i64* %8
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%41 = load i32, i32* @EXIT_FAILURE
%42 = call i32 @exit(i32 %41)
unreachable
43: ; preds = %35
%44 = load i64, i64* %8
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %69
46: ; preds = %43
store i32 0, i32* %9
br label %47
47: ; preds = %50, %46
%48 = load i32, i32* %9
%49 = icmp slt i32 %48, 10
br i1 %49, label %50, label %63
50: ; preds = %47
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%52 = load i32, i32* %51
%53 = load i8*, i8** %10
%54 = call i32 @read(i32 %52, i8* %53, i32 8)
store i32 %54, i32* %11
%55 = load i8*, i8** %10
%56 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %55)
%57 = call i32 @sleep(i32 1)
%58 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%59 = load i32, i32* %58
%60 = call i32 (i32, ...) @write(i32 %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
store i32 %60, i32* %12
%61 = load i32, i32* %9
%62 = add nsw i32 %61, 1
store i32 %62, i32* %9
br label %47
63: ; preds = %47
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 (i32, ...) @write(i32 %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
store i32 %66, i32* %13
%67 = load i32, i32* @EXIT_SUCCESS
%68 = call i32 @exit(i32 %67)
unreachable
69: ; preds = %43
%70 = load i64, i64* %8
%71 = icmp sgt i64 %70, 0
br i1 %71, label %72, label %97
72: ; preds = %69
store i32 0, i32* %14
br label %73
73: ; preds = %93, %72
%74 = load i32, i32* %14
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %94
76: ; preds = %73
%77 = load i8*, i8** %15
%78 = call i32 @read(i32 0, i8* %77, i32 8)
store i32 %78, i32* %16
%79 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%80 = load i32, i32* %79
%81 = load i32, i32* %16
%82 = call i32 (i32, ...) @write(i32 %80, i8** %15, i32 %81)
store i32 %82, i32* %17
%83 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%84 = load i32, i32* %83
%85 = load i8*, i8** %15
%86 = call i32 @read(i32 %84, i8* %85, i32 1)
store i32 %86, i32* %16
%87 = load i8*, i8** %15
%88 = getelementptr inbounds i8, i8* %87, i64 0
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 113
br i1 %91, label %92, label %93
92: ; preds = %76
store i32 1, i32* %14
br label %93
93: ; preds = %92, %76
br label %73
94: ; preds = %73
%95 = load i32, i32* @EXIT_SUCCESS
%96 = call i32 @exit(i32 %95)
unreachable
97: ; preds = %69
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"pipe\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [2 x i8] c"l\00"
@.str.4 = [2 x i8] c"q\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i32]
%4 = alloca [2 x i32]
%5 = alloca i8*
%6 = bitcast [2 x i32]* %3 to i8*
%7 = bitcast [2 x i32]* %4 to i8*
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%9 = call i32 @pipe(i32* %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @EXIT_FAILURE
%14 = call i32 @exit(i32 %13)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%17 = call i32 @pipe(i32* %16)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* @EXIT_FAILURE
%22 = call i32 @exit(i32 %21)
unreachable
23: ; preds = %15
%24 = call i64 (...) @fork()
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %23
%27 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %23
%31 = icmp eq i64 %24, 0
br i1 %31, label %35, label %32
32: ; preds = %30
%33 = bitcast i8** %5 to i8*
%34 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
br label %101
35: ; preds = %30
%36 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%37 = load i32, i32* %8
%38 = call i32 @read(i32 %37, i8* undef, i32 8)
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%40 = call i32 @sleep(i32 1)
%41 = load i32, i32* %36
%42 = call i32 (i32, ...) @write(i32 %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%43 = load i32, i32* %8
%44 = call i32 @read(i32 %43, i8* undef, i32 8)
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%46 = call i32 @sleep(i32 1)
%47 = load i32, i32* %36
%48 = call i32 (i32, ...) @write(i32 %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%49 = load i32, i32* %8
%50 = call i32 @read(i32 %49, i8* undef, i32 8)
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%52 = call i32 @sleep(i32 1)
%53 = load i32, i32* %36
%54 = call i32 (i32, ...) @write(i32 %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%55 = load i32, i32* %8
%56 = call i32 @read(i32 %55, i8* undef, i32 8)
%57 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%58 = call i32 @sleep(i32 1)
%59 = load i32, i32* %36
%60 = call i32 (i32, ...) @write(i32 %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%61 = load i32, i32* %8
%62 = call i32 @read(i32 %61, i8* undef, i32 8)
%63 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%64 = call i32 @sleep(i32 1)
%65 = load i32, i32* %36
%66 = call i32 (i32, ...) @write(i32 %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%67 = load i32, i32* %8
%68 = call i32 @read(i32 %67, i8* undef, i32 8)
%69 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%70 = call i32 @sleep(i32 1)
%71 = load i32, i32* %36
%72 = call i32 (i32, ...) @write(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%73 = load i32, i32* %8
%74 = call i32 @read(i32 %73, i8* undef, i32 8)
%75 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%76 = call i32 @sleep(i32 1)
%77 = load i32, i32* %36
%78 = call i32 (i32, ...) @write(i32 %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%79 = load i32, i32* %8
%80 = call i32 @read(i32 %79, i8* undef, i32 8)
%81 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%82 = call i32 @sleep(i32 1)
%83 = load i32, i32* %36
%84 = call i32 (i32, ...) @write(i32 %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%85 = load i32, i32* %8
%86 = call i32 @read(i32 %85, i8* undef, i32 8)
%87 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%88 = call i32 @sleep(i32 1)
%89 = load i32, i32* %36
%90 = call i32 (i32, ...) @write(i32 %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%91 = load i32, i32* %8
%92 = call i32 @read(i32 %91, i8* undef, i32 8)
%93 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* undef)
%94 = call i32 @sleep(i32 1)
%95 = load i32, i32* %36
%96 = call i32 (i32, ...) @write(i32 %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%97 = load i32, i32* %36
%98 = call i32 (i32, ...) @write(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%99 = load i32, i32* @EXIT_SUCCESS
%100 = call i32 @exit(i32 %99)
unreachable
101: ; preds = %32, %101
%102 = call i32 @read(i32 0, i8* undef, i32 8)
%103 = load i32, i32* %34
%104 = call i32 (i32, ...) @write(i32 %103, i8** %5, i32 %102)
%105 = load i32, i32* %8
%106 = load i8*, i8** %5
%107 = call i32 @read(i32 %105, i8* %106, i32 1)
%108 = load i8*, i8** %5
%109 = load i8, i8* %108
%110 = icmp eq i8 %109, 113
br i1 %110, label %111, label %101
111: ; preds = %101
%112 = load i32, i32* @EXIT_SUCCESS
%113 = call i32 @exit(i32 %112)
unreachable
}