#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 scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ _exit(int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ execl(char *, char *, char *, char *, int /*<<< orphan*/ *);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ waitpid(scalar_t__, int *, int /*<<< orphan*/);
int main() {
  int fd[2];
  pid_t pid, pidA, pidB;
  char buf[12];
  int i, n, cstat;
  if (pipe(fd) < 0) {
    fprintf(stderr, "Erro no tubo\n");
    _exit(1);
  }
  if ((pid = fork()) < 0) {
    fprintf(stderr, "Erro no fork\n");
    _exit(1);
  }
  if (pid == 0) {
    char channel[20];
    close(fd[0]);
    sprintf(channel, "%d", fd[1]);
    execl("./ex2_son", "Son", channel, "1", NULL);
  }
  pidA = pid;
  if ((pid = fork()) < 0) {
    fprintf(stderr, "Erro no fork\n");
    _exit(1);
  }
  if (pid == 0) {
    char channel[20];
    close(fd[0]);
    sprintf(channel, "%d", fd[1]);
    execl("./ex2_son", "Son", channel, "2", NULL);
  }
  pidB = pid;
  close(fd[1]);
  n = read(fd[0], buf, 12);
  for (i = 0; i < 12; i++)
    printf("%c", buf[i]);
  printf("\n");
  n = read(fd[0], buf, 12);
  for (i = 0; i < 12; i++)
    printf("%c", buf[i]);
  printf("\n");
  waitpid(pidA, &cstat, 0);
  waitpid(pidB, &cstat, 0);
  _exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xc(%rbp),%rdi
call   1060 <pipe@plt>
cmp    $0x0,%rax
jge    11e4 <main+0x44>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xe2b(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1030 <_exit@plt>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jge    1218 <main+0x78>
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
lea    0xe05(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1030 <_exit@plt>
cmpq   $0x0,-0x18(%rbp)
jne    1261 <main+0xc1>
mov    -0xc(%rbp),%edi
call   1050 <close@plt>
lea    -0x60(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xde3(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xdd6(%rip),%rdi
lea    0xdd9(%rip),%rsi
lea    0xdd6(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10b0 <execl@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jge    129d <main+0xfd>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
lea    0xd80(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1030 <_exit@plt>
cmpq   $0x0,-0x18(%rbp)
jne    12e6 <main+0x146>
mov    -0xc(%rbp),%edi
call   1050 <close@plt>
lea    -0x80(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xd5e(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x80(%rbp),%rdx
lea    0xd51(%rip),%rdi
lea    0xd54(%rip),%rsi
lea    0xd53(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10b0 <execl@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <close@plt>
mov    -0xc(%rbp),%edi
lea    -0x34(%rbp),%rsi
mov    $0xc,%edx
call   1070 <read@plt>
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0xc,-0x38(%rbp)
jge    1340 <main+0x1a0>
movslq -0x38(%rbp),%rax
movsbl -0x34(%rbp,%rax,1),%esi
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1311 <main+0x171>
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
lea    -0x34(%rbp),%rsi
mov    $0xc,%edx
call   1070 <read@plt>
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0xc,-0x38(%rbp)
jge    1398 <main+0x1f8>
movslq -0x38(%rbp),%rax
movsbl -0x34(%rbp,%rax,1),%esi
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1369 <main+0x1c9>
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
mov    -0x28(%rbp),%rdi
lea    -0x40(%rbp),%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
xor    %edi,%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0x1c(%rsp),%rdi
call   1060 <pipe@plt>
test   %rax,%rax
jns    11cc <main+0x2c>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
lea    0xe36(%rip),%rsi
jmp    1238 <main+0x98>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     1228 <main+0x88>
mov    %rax,%r12
jne    121c <main+0x7c>
mov    0x1c(%rsp),%edi
call   1050 <close@plt>
mov    0x20(%rsp),%edx
lea    0xe2b(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10a0 <sprintf@plt>
lea    0xe1c(%rip),%rdi
lea    0xe1f(%rip),%rsi
lea    0xe1c(%rip),%rcx
mov    %rbx,%rdx
xor    %r8d,%r8d
call   10b0 <execl@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
jns    1247 <main+0xa7>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
lea    0xdd6(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1040 <_exit@plt>
mov    %rax,%r14
jne    128b <main+0xeb>
mov    0x1c(%rsp),%edi
call   1050 <close@plt>
mov    0x20(%rsp),%edx
lea    0xdbc(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10a0 <sprintf@plt>
lea    0xdad(%rip),%rdi
lea    0xdb0(%rip),%rsi
lea    0xdaf(%rip),%rcx
mov    %rbx,%rdx
xor    %r8d,%r8d
call   10b0 <execl@plt>
mov    0x20(%rsp),%edi
call   1050 <close@plt>
mov    0x1c(%rsp),%edi
mov    %rsp,%r15
mov    %r15,%rsi
mov    $0xc,%edx
call   1070 <read@plt>
movsbl (%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x2(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x3(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x4(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x6(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x8(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1070 <read@plt>
movsbl (%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x2(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x3(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x4(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x6(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x8(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x24(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
xor    %edi,%edi
call   1040 <_exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"Erro no tubo\0A\00"
@.str.1 = [14 x i8] c"Erro no fork\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [10 x i8] c"./ex2_son\00"
@.str.4 = [4 x i8] c"Son\00"
@.str.5 = [2 x i8] c"1\00"
@.str.6 = [2 x i8] c"2\00"
define i32 @main() {
%1 = alloca [2 x i32]
%2 = alloca [12 x i8]
%3 = alloca i32
%4 = alloca [20 x i8]
%5 = alloca [20 x i8]
%6 = bitcast [2 x i32]* %1 to i8*
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%8 = bitcast i32* %3 to i8*
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
%10 = call i64 @pipe(i32* %9)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @_exit(i32 1)
unreachable
16: ; preds = %0
%17 = call i64 (...) @fork()
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @_exit(i32 1)
unreachable
23: ; preds = %16
%24 = icmp eq i64 %17, 0
br i1 %24, label %25, label %33
25: ; preds = %23
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%27 = load i32, i32* %9
%28 = call i32 @close(i32 %27)
%29 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%30 = load i32, i32* %29
%31 = call i32 @sprintf(i8* %26, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %30)
%32 = call i32 @execl(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* null)
br label %33
33: ; preds = %25, %23
%34 = call i64 (...) @fork()
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%39 = call i32 @_exit(i32 1)
unreachable
40: ; preds = %33
%41 = icmp eq i64 %34, 0
br i1 %41, label %42, label %50
42: ; preds = %40
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%44 = load i32, i32* %9
%45 = call i32 @close(i32 %44)
%46 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%47 = load i32, i32* %46
%48 = call i32 @sprintf(i8* %43, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %47)
%49 = call i32 @execl(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32* null)
br label %50
50: ; preds = %42, %40
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%52 = load i32, i32* %51
%53 = call i32 @close(i32 %52)
%54 = load i32, i32* %9
%55 = call i32 @read(i32 %54, i8* %7, i32 12)
%56 = load i8, i8* %7
%57 = sext i8 %56 to i32
%58 = call i32 @putchar(i32 %57)
%59 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 1
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = call i32 @putchar(i32 %61)
%63 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 2
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = call i32 @putchar(i32 %65)
%67 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 3
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = call i32 @putchar(i32 %69)
%71 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 4
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = call i32 @putchar(i32 %73)
%75 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 5
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = call i32 @putchar(i32 %77)
%79 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 6
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = call i32 @putchar(i32 %81)
%83 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 7
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = call i32 @putchar(i32 %85)
%87 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 8
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = call i32 @putchar(i32 %89)
%91 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 9
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = call i32 @putchar(i32 %93)
%95 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 10
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = call i32 @putchar(i32 %97)
%99 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 11
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = call i32 @putchar(i32 %101)
%103 = call i32 @putchar(i32 10)
%104 = load i32, i32* %9
%105 = call i32 @read(i32 %104, i8* %7, i32 12)
%106 = load i8, i8* %7
%107 = sext i8 %106 to i32
%108 = call i32 @putchar(i32 %107)
%109 = load i8, i8* %59
%110 = sext i8 %109 to i32
%111 = call i32 @putchar(i32 %110)
%112 = load i8, i8* %63
%113 = sext i8 %112 to i32
%114 = call i32 @putchar(i32 %113)
%115 = load i8, i8* %67
%116 = sext i8 %115 to i32
%117 = call i32 @putchar(i32 %116)
%118 = load i8, i8* %71
%119 = sext i8 %118 to i32
%120 = call i32 @putchar(i32 %119)
%121 = load i8, i8* %75
%122 = sext i8 %121 to i32
%123 = call i32 @putchar(i32 %122)
%124 = load i8, i8* %79
%125 = sext i8 %124 to i32
%126 = call i32 @putchar(i32 %125)
%127 = load i8, i8* %83
%128 = sext i8 %127 to i32
%129 = call i32 @putchar(i32 %128)
%130 = load i8, i8* %87
%131 = sext i8 %130 to i32
%132 = call i32 @putchar(i32 %131)
%133 = load i8, i8* %91
%134 = sext i8 %133 to i32
%135 = call i32 @putchar(i32 %134)
%136 = load i8, i8* %95
%137 = sext i8 %136 to i32
%138 = call i32 @putchar(i32 %137)
%139 = load i8, i8* %99
%140 = sext i8 %139 to i32
%141 = call i32 @putchar(i32 %140)
%142 = call i32 @putchar(i32 10)
%143 = call i32 @waitpid(i64 %17, i32* %3, i32 0)
%144 = call i32 @waitpid(i64 %34, i32* %3, i32 0)
%145 = call i32 @_exit(i32 0)
unreachable
}