#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*/ close(int);
int /*<<< orphan*/ exit(int);
int fork();
scalar_t__ pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ read(int, char *, int);
size_t write(int, char *, int);
int main(int argc, char *argv[], char *env[]) {
  int filedes_p[2];
  int filedes_c[2];
  int p_id;
  size_t size;
  int i = 0;
  int point = 0;
  int ex_cond = 3;
  char *message_list1[] = {"What is your name!?", "How old are you!?",
                           "Goodbye!!!"};
  char *message_list2[] = {"My name is Sandron", "I'm 21", "Bye!!!"};
  char message[32];
  if (pipe(filedes_p) < 0) {
    printf("Errrrrror");
    exit(-1);
  }
  if (pipe(filedes_c) < 0) {
    printf("Errrrrror");
    exit(-1);
  }
  p_id = fork();
  if (p_id < 0) {
    printf("Errrrrror");
    exit(-1);
  } else if (p_id > 0) {
    close(filedes_p[1]);
    close(filedes_c[0]);
    while (point == 0) {
      size = write(filedes_c[1], message_list1[i], 32);
      while (size = read(filedes_p[0], message, 32) < 0)
        ;
      printf("I tyt maloy otvetil: %s\n", message);
      i++;
      if (i >= ex_cond)
        point = -254;
    }
    close(filedes_p[0]);
    close(filedes_c[1]);
  } else {
    close(filedes_p[0]);
    close(filedes_c[1]);
    while (point == 0) {
      while (size = read(filedes_c[0], message, 32) < 0)
        ;
      printf("I tyt batya skazal: %s\n", message);
      size = write(filedes_p[1], message_list2[i], 32);
      i++;
      if (i >= ex_cond)
        point = -254;
    }
    close(filedes_p[1]);
    close(filedes_c[0]);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x3,-0x44(%rbp)
mov    0x2c37(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0x2c34(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x2c31(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0x2c36(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2c33(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0x2c30(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    -0x20(%rbp),%rdi
call   1060 <pipe@plt>
cmp    $0x0,%rax
jge    120f <main+0x9f>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
lea    -0x28(%rbp),%rdi
call   1060 <pipe@plt>
cmp    $0x0,%rax
jge    123a <main+0xca>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    $0x0,%al
call   1090 <fork@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    1266 <main+0xf6>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    1324 <main+0x1b4>
mov    -0x1c(%rbp),%edi
call   1050 <close@plt>
mov    -0x28(%rbp),%edi
call   1050 <close@plt>
cmpl   $0x0,-0x40(%rbp)
jne    130f <main+0x19f>
mov    -0x24(%rbp),%edi
movslq -0x3c(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    $0x20,%edx
call   1070 <read@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cltq
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     12d9 <main+0x169>
jmp    12a4 <main+0x134>
lea    -0xa0(%rbp),%rsi
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jl     130a <main+0x19a>
movl   $0xffffff02,-0x40(%rbp)
jmp    1280 <main+0x110>
mov    -0x20(%rbp),%edi
call   1050 <close@plt>
mov    -0x24(%rbp),%edi
call   1050 <close@plt>
jmp    13d8 <main+0x268>
mov    -0x20(%rbp),%edi
call   1050 <close@plt>
mov    -0x24(%rbp),%edi
call   1050 <close@plt>
cmpl   $0x0,-0x40(%rbp)
jne    13c8 <main+0x258>
jmp    1343 <main+0x1d3>
mov    -0x28(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    $0x20,%edx
call   1070 <read@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cltq
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     1378 <main+0x208>
jmp    1343 <main+0x1d3>
lea    -0xa0(%rbp),%rsi
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%edi
movslq -0x3c(%rbp),%rax
mov    -0x80(%rbp,%rax,8),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
mov    %rax,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jl     13c3 <main+0x253>
movl   $0xffffff02,-0x40(%rbp)
jmp    1334 <main+0x1c4>
mov    -0x1c(%rbp),%edi
call   1050 <close@plt>
mov    -0x28(%rbp),%edi
call   1050 <close@plt>
jmp    13dd <main+0x26d>
xor    %edi,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0x8(%rsp),%rdi
call   1060 <pipe@plt>
test   %rax,%rax
js     119c <main+0x2c>
mov    %rsp,%rdi
call   1060 <pipe@plt>
test   %rax,%rax
js     119c <main+0x2c>
xor    %eax,%eax
call   1090 <fork@plt>
test   %eax,%eax
jns    11b4 <main+0x44>
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
jne    12ae <main+0x13e>
mov    0x8(%rsp),%edi
call   1050 <close@plt>
mov    0x4(%rsp),%edi
call   1050 <close@plt>
lea    0x10(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     11e0 <main+0x70>
lea    0xe79(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
lea    0xe1b(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
mov    (%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     1220 <main+0xb0>
lea    0xe39(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
lea    0xdee(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
mov    (%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     1260 <main+0xf0>
lea    0xdf9(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
lea    0xdb8(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
mov    0xc(%rsp),%edi
call   1050 <close@plt>
mov    (%rsp),%edi
jmp    13b6 <main+0x246>
mov    0xc(%rsp),%edi
call   1050 <close@plt>
mov    (%rsp),%edi
call   1050 <close@plt>
mov    0x4(%rsp),%edi
lea    0xd36(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
lea    0x10(%rsp),%rbx
nopl   0x0(%rax)
mov    0x8(%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     12e0 <main+0x170>
lea    0xd5f(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%edi
lea    0xcfd(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     1330 <main+0x1c0>
lea    0xd0f(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%edi
lea    0xcbf(%rip),%rsi
mov    $0x20,%edx
call   1030 <write@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%edi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <read@plt>
test   %rax,%rax
js     1380 <main+0x210>
lea    0xcbf(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edi
call   1050 <close@plt>
mov    0x4(%rsp),%edi
call   1050 <close@plt>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"What is your name!?\00"
@.str.1 = [18 x i8] c"How old are you!?\00"
@.str.2 = [11 x i8] c"Goodbye!!!\00"
@__const.main.message_list1 = [3 x i8*] [i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0)]
@.str.3 = [19 x i8] c"My name is Sandron\00"
@.str.4 = [7 x i8] c"I'm 21\00"
@.str.5 = [7 x i8] c"Bye!!!\00"
@__const.main.message_list2 = [3 x i8*] [i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0)]
@.str.6 = [10 x i8] c"Errrrrror\00"
@.str.7 = [25 x i8] c"I tyt maloy otvetil: %s\0A\00"
@.str.8 = [24 x i8] c"I tyt batya skazal: %s\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca [2 x i32]
%9 = alloca [2 x i32]
%10 = alloca i32
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [3 x i8*]
%16 = alloca [3 x i8*]
%17 = alloca [32 x i8]
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
store i32 0, i32* %12
store i32 0, i32* %13
store i32 3, i32* %14
%18 = bitcast [3 x i8*]* %15 to i8*
%19 = bitcast [3 x i8*]* %16 to i8*
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%21 = call i64 @pipe(i32* %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%25 = call i32 @exit(i32 -1)
unreachable
26: ; preds = %3
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%28 = call i64 @pipe(i32* %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%32 = call i32 @exit(i32 -1)
unreachable
33: ; preds = %26
%34 = call i32 (...) @fork()
store i32 %34, i32* %10
%35 = load i32, i32* %10
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %33
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 @exit(i32 -1)
unreachable
40: ; preds = %33
%41 = load i32, i32* %10
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %88
43: ; preds = %40
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%45 = load i32, i32* %44
%46 = call i32 @close(i32 %45)
%47 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%48 = load i32, i32* %47
%49 = call i32 @close(i32 %48)
br label %50
50: ; preds = %80, %43
%51 = load i32, i32* %13
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %81
53: ; preds = %50
%54 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%55 = load i32, i32* %54
%56 = load i32, i32* %12
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x i8*], [3 x i8*]* %15, i64 0, i64 %57
%59 = load i8*, i8** %58
%60 = call i64 @write(i32 %55, i8* %59, i32 32)
store i64 %60, i64* %11
br label %61
61: ; preds = %70, %53
%62 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%63 = load i32, i32* %62
%64 = getelementptr inbounds [32 x i8], [32 x i8]* %17, i64 0, i64 0
%65 = call i64 @read(i32 %63, i8* %64, i32 32)
%66 = icmp slt i64 %65, 0
%67 = zext i1 %66 to i32
%68 = sext i32 %67 to i64
store i64 %68, i64* %11
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %61
br label %61
71: ; preds = %61
%72 = getelementptr inbounds [32 x i8], [32 x i8]* %17, i64 0, i64 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %72)
%74 = load i32, i32* %12
%75 = add nsw i32 %74, 1
store i32 %75, i32* %12
%76 = load i32, i32* %12
%77 = load i32, i32* %14
%78 = icmp sge i32 %76, %77
br i1 %78, label %79, label %80
79: ; preds = %71
store i32 -254, i32* %13
br label %80
80: ; preds = %79, %71
br label %50
81: ; preds = %50
%82 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%83 = load i32, i32* %82
%84 = call i32 @close(i32 %83)
%85 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%86 = load i32, i32* %85
%87 = call i32 @close(i32 %86)
br label %133
88: ; preds = %40
%89 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%90 = load i32, i32* %89
%91 = call i32 @close(i32 %90)
%92 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%93 = load i32, i32* %92
%94 = call i32 @close(i32 %93)
br label %95
95: ; preds = %125, %88
%96 = load i32, i32* %13
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %126
98: ; preds = %95
br label %99
99: ; preds = %108, %98
%100 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%101 = load i32, i32* %100
%102 = getelementptr inbounds [32 x i8], [32 x i8]* %17, i64 0, i64 0
%103 = call i64 @read(i32 %101, i8* %102, i32 32)
%104 = icmp slt i64 %103, 0
%105 = zext i1 %104 to i32
%106 = sext i32 %105 to i64
store i64 %106, i64* %11
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %99
br label %99
109: ; preds = %99
%110 = getelementptr inbounds [32 x i8], [32 x i8]* %17, i64 0, i64 0
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %110)
%112 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%113 = load i32, i32* %112
%114 = load i32, i32* %12
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [3 x i8*], [3 x i8*]* %16, i64 0, i64 %115
%117 = load i8*, i8** %116
%118 = call i64 @write(i32 %113, i8* %117, i32 32)
store i64 %118, i64* %11
%119 = load i32, i32* %12
%120 = add nsw i32 %119, 1
store i32 %120, i32* %12
%121 = load i32, i32* %12
%122 = load i32, i32* %14
%123 = icmp sge i32 %121, %122
br i1 %123, label %124, label %125
124: ; preds = %109
store i32 -254, i32* %13
br label %125
125: ; preds = %124, %109
br label %95
126: ; preds = %95
%127 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%128 = load i32, i32* %127
%129 = call i32 @close(i32 %128)
%130 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%131 = load i32, i32* %130
%132 = call i32 @close(i32 %131)
br label %133
133: ; preds = %126, %81
br label %134
134: ; preds = %133
%135 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [20 x i8] c"What is your name!?\00"
@.str.1 = [18 x i8] c"How old are you!?\00"
@.str.2 = [11 x i8] c"Goodbye!!!\00"
@.str.3 = [19 x i8] c"My name is Sandron\00"
@.str.4 = [7 x i8] c"I'm 21\00"
@.str.5 = [7 x i8] c"Bye!!!\00"
@.str.6 = [10 x i8] c"Errrrrror\00"
@.str.7 = [25 x i8] c"I tyt maloy otvetil: %s\0A\00"
@.str.8 = [24 x i8] c"I tyt batya skazal: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = alloca [2 x i32]
%5 = alloca [2 x i32]
%6 = alloca [32 x i8]
%7 = bitcast [2 x i32]* %4 to i8*
%8 = bitcast [2 x i32]* %5 to i8*
%9 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%11 = call i64 @pipe(i32* %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %3
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @exit(i32 -1)
unreachable
16: ; preds = %3
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%18 = call i64 @pipe(i32* %17)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%22 = call i32 @exit(i32 -1)
unreachable
23: ; preds = %16
%24 = call i32 (...) @fork()
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%28 = call i32 @exit(i32 -1)
unreachable
29: ; preds = %23
%30 = icmp eq i32 %24, 0
br i1 %30, label %65, label %31
31: ; preds = %29
%32 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%33 = load i32, i32* %32
%34 = call i32 @close(i32 %33)
%35 = load i32, i32* %17
%36 = call i32 @close(i32 %35)
%37 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%38 = load i32, i32* %37
%39 = call i64 @write(i32 %38, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 32)
br label %40
40: ; preds = %40, %31
%41 = load i32, i32* %10
%42 = call i64 @read(i32 %41, i8* %9, i32 32)
%43 = icmp slt i64 %42, 0
br i1 %43, label %40, label %44
44: ; preds = %40
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%46 = load i32, i32* %37
%47 = call i64 @write(i32 %46, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %48
48: ; preds = %48, %44
%49 = load i32, i32* %10
%50 = call i64 @read(i32 %49, i8* %9, i32 32)
%51 = icmp slt i64 %50, 0
br i1 %51, label %48, label %52
52: ; preds = %48
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%54 = load i32, i32* %37
%55 = call i64 @write(i32 %54, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 32)
br label %56
56: ; preds = %56, %52
%57 = load i32, i32* %10
%58 = call i64 @read(i32 %57, i8* %9, i32 32)
%59 = icmp slt i64 %58, 0
br i1 %59, label %56, label %60
60: ; preds = %56
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%62 = load i32, i32* %10
%63 = call i32 @close(i32 %62)
%64 = load i32, i32* %37
br label %99
65: ; preds = %29
%66 = load i32, i32* %10
%67 = call i32 @close(i32 %66)
%68 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%69 = load i32, i32* %68
%70 = call i32 @close(i32 %69)
%71 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
br label %72
72: ; preds = %65, %72
%73 = load i32, i32* %17
%74 = call i64 @read(i32 %73, i8* %9, i32 32)
%75 = icmp slt i64 %74, 0
br i1 %75, label %72, label %76
76: ; preds = %72
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%78 = load i32, i32* %71
%79 = call i64 @write(i32 %78, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 32)
br label %80
80: ; preds = %80, %76
%81 = load i32, i32* %17
%82 = call i64 @read(i32 %81, i8* %9, i32 32)
%83 = icmp slt i64 %82, 0
br i1 %83, label %80, label %84
84: ; preds = %80
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%86 = load i32, i32* %71
%87 = call i64 @write(i32 %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 32)
br label %88
88: ; preds = %88, %84
%89 = load i32, i32* %17
%90 = call i64 @read(i32 %89, i8* %9, i32 32)
%91 = icmp slt i64 %90, 0
br i1 %91, label %88, label %92
92: ; preds = %88
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%94 = load i32, i32* %71
%95 = call i64 @write(i32 %94, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 32)
%96 = load i32, i32* %71
%97 = call i32 @close(i32 %96)
%98 = load i32, i32* %17
br label %99
99: ; preds = %60, %92
%100 = phi i32 [ %64, %60 ], [ %98, %92 ]
%101 = call i32 @close(i32 %100)
%102 = call i32 @exit(i32 0)
unreachable
}