#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;
typedef int /*<<< orphan*/ Read_Msg;

/* Variables and functions */
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ islower(char);
int pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int strlen(char *);
char tolower(char);
char toupper(char);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int /*<<< orphan*/ write(int, char *, int);
int main(void) {
  char Write_Msg[100];
  char Write_Msg2[100];
  char Read_Msg[100];
  char Read_Msg2[100];
  int fd[2];
  int fd2[2];
  pid_t pid;
  printf("Please input a character string: \n");
  fgets(Write_Msg, 100, stdin);
  if (pipe(fd) == -1) {
    fprintf(stderr, "Pipe failed");
    return 1;
  }
  if (pipe(fd2) == -1) {
    fprintf(stderr, "Pipe failed");
    return 1;
  }
  pid = fork();
  if (pid < 0) {
    fprintf(stderr, "Fork failed");
    return 1;
  }
  if (pid > 0) {
    close(fd[0]);
    close(fd2[1]);
    printf("\nParent: Write the message to the pipe 1.\n");
    write(fd[1], Write_Msg, strlen(Write_Msg) + 1);
    wait(NULL);
    read(fd2[0], Read_Msg2, 100);
    printf("\nParent: Read the modified message from pipe 2: %s\n", Read_Msg2);
  } else {
    close(fd[1]);
    close(fd2[0]);
    read(fd[0], Read_Msg, 100);
    printf("\nChild: Read the message from pipe 1: %s", Read_Msg);
    int i;
    for (i = 0; i < sizeof(Read_Msg); i++) {
      if (islower(Read_Msg[i])) {
        Write_Msg2[i] = toupper(Read_Msg[i]);
      } else {
        Write_Msg2[i] = tolower(Read_Msg[i]);
      }
    }
    write(fd2[1], Write_Msg2, 100);
    printf("\nChild: Write the modified message to pipe 2.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    0x2ded(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   10b0 <fgets@plt>
lea    -0x1c8(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0xffffffff,%eax
jne    123d <main+0x6d>
mov    0x2db5(%rip),%rax
mov    (%rax),%edi
lea    0xdf7(%rip),%rsi
call   10c0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1460 <main+0x290>
lea    -0x1d0(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0xffffffff,%eax
jne    1273 <main+0xa3>
mov    0x2d7f(%rip),%rax
mov    (%rax),%edi
lea    0xdc1(%rip),%rsi
call   10c0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1460 <main+0x290>
mov    $0x0,%al
call   10f0 <fork@plt>
mov    %rax,-0x1d8(%rbp)
cmpq   $0x0,-0x1d8(%rbp)
jge    12b0 <main+0xe0>
mov    0x2d42(%rip),%rax
mov    (%rax),%edi
lea    0xd90(%rip),%rsi
call   10c0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1460 <main+0x290>
cmpq   $0x0,-0x1d8(%rbp)
jle    1353 <main+0x183>
mov    -0x1c8(%rbp),%edi
call   1080 <close@plt>
mov    -0x1cc(%rbp),%edi
call   1080 <close@plt>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x1c4(%rbp),%eax
mov    %eax,-0x1ec(%rbp)
lea    -0x70(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
lea    -0x70(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1ec(%rbp),%edi
mov    -0x1e8(%rbp),%rsi
mov    %eax,%edx
add    $0x1,%edx
call   1050 <write@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10e0 <wait@plt>
mov    -0x1d0(%rbp),%edi
lea    -0x1c0(%rbp),%rsi
mov    $0x64,%edx
call   10a0 <read@plt>
lea    -0x1c0(%rbp),%rsi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1459 <main+0x289>
mov    -0x1c4(%rbp),%edi
call   1080 <close@plt>
mov    -0x1d0(%rbp),%edi
call   1080 <close@plt>
mov    -0x1c8(%rbp),%edi
lea    -0x150(%rbp),%rsi
mov    $0x64,%edx
call   10a0 <read@plt>
lea    -0x150(%rbp),%rsi
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x1dc(%rbp)
movslq -0x1dc(%rbp),%rax
cmp    $0x64,%rax
jae    1434 <main+0x264>
movslq -0x1dc(%rbp),%rax
movsbl -0x150(%rbp,%rax,1),%edi
ff
call   1030 <islower@plt>
cmp    $0x0,%rax
je     13f7 <main+0x227>
movslq -0x1dc(%rbp),%rax
movsbl -0x150(%rbp,%rax,1),%edi
ff
call   1040 <toupper@plt>
mov    %al,%cl
movslq -0x1dc(%rbp),%rax
mov    %cl,-0xe0(%rbp,%rax,1)
jmp    141b <main+0x24b>
movslq -0x1dc(%rbp),%rax
movsbl -0x150(%rbp,%rax,1),%edi
ff
call   10d0 <tolower@plt>
mov    %al,%cl
movslq -0x1dc(%rbp),%rax
mov    %cl,-0xe0(%rbp,%rax,1)
jmp    1420 <main+0x250>
mov    -0x1dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1dc(%rbp)
jmp    139f <main+0x1cf>
mov    -0x1cc(%rbp),%edi
lea    -0xe0(%rbp),%rsi
mov    $0x64,%edx
call   1050 <write@plt>
lea    0xc71(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x158,%rsp
lea    0xe84(%rip),%rdi
call   1050 <puts@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%edx
lea    0xf0(%rsp),%rdi
mov    $0x64,%esi
call   10c0 <fgets@plt>
lea    0x8(%rsp),%rdi
call   10a0 <pipe@plt>
cmp    $0xffffffff,%eax
je     12be <main+0xde>
mov    %rsp,%rdi
call   10a0 <pipe@plt>
cmp    $0xffffffff,%eax
je     12be <main+0xde>
xor    %eax,%eax
call   1100 <fork@plt>
test   %rax,%rax
js     12e5 <main+0x105>
je     12f7 <main+0x117>
mov    0x8(%rsp),%edi
call   1090 <close@plt>
mov    0x4(%rsp),%edi
call   1090 <close@plt>
lea    0xe61(%rip),%rdi
call   1050 <puts@plt>
mov    0xc(%rsp),%ebx
lea    0xf0(%rsp),%r14
mov    %r14,%rdi
call   1070 <strlen@plt>
lea    0x1(%rax),%edx
mov    %ebx,%edi
mov    %r14,%rsi
call   1060 <write@plt>
xor    %ebx,%ebx
xor    %edi,%edi
call   10f0 <wait@plt>
mov    (%rsp),%edi
lea    0x80(%rsp),%r14
mov    %r14,%rsi
mov    $0x64,%edx
call   10b0 <read@plt>
lea    0xd66(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    12d8 <main+0xf8>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
lea    0xd32(%rip),%rsi
call   10d0 <fprintf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x158,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
lea    0xd17(%rip),%rsi
jmp    12ce <main+0xee>
mov    0xc(%rsp),%edi
call   1090 <close@plt>
mov    (%rsp),%edi
call   1090 <close@plt>
mov    0x8(%rsp),%edi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
mov    $0x64,%edx
call   10b0 <read@plt>
lea    0xd27(%rip),%rdi
xor    %ebx,%ebx
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1356 <main+0x176>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   10e0 <tolower@plt>
mov    %al,0x80(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0x64,%rbx
je     1374 <main+0x194>
movsbl 0x10(%rsp,%rbx,1),%edi
call   1030 <islower@plt>
movzbl 0x10(%rsp,%rbx,1),%ecx
movsbl %cl,%edi
test   %rax,%rax
je     1340 <main+0x160>
call   1040 <toupper@plt>
jmp    1345 <main+0x165>
mov    0x4(%rsp),%edi
lea    0x80(%rsp),%rsi
mov    $0x64,%edx
call   1060 <write@plt>
lea    0xd06(%rip),%rdi
call   1050 <puts@plt>
xor    %ebx,%ebx
jmp    12d8 <main+0xf8>

LLVM IR (-O0):
@.str = [35 x i8] c"Please input a character string: \0A\00"
@stdin = global i32 0
@stderr = global i32 0
@.str.1 = [12 x i8] c"Pipe failed\00"
@.str.2 = [12 x i8] c"Fork failed\00"
@.str.3 = [43 x i8] c"\0AParent: Write the message to the pipe 1.\0A\00"
@.str.4 = [52 x i8] c"\0AParent: Read the modified message from pipe 2: %s\0A\00"
@.str.5 = [41 x i8] c"\0AChild: Read the message from pipe 1: %s\00"
@.str.6 = [47 x i8] c"\0AChild: Write the modified message to pipe 2.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [2 x i32]
%7 = alloca [2 x i32]
%8 = alloca i64
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%12 = load i32, i32* @stdin
%13 = call i32 @fgets(i8* %11, i32 100, i32 %12)
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%15 = call i32 @pipe(i32* %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %112
20: ; preds = %0
%21 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%22 = call i32 @pipe(i32* %21)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %112
27: ; preds = %20
%28 = call i64 (...) @fork()
store i64 %28, i64* %8
%29 = load i64, i64* %8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, i32* @stderr
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %112
34: ; preds = %27
%35 = load i64, i64* %8
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %59
37: ; preds = %34
%38 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%39 = load i32, i32* %38
%40 = call i32 @close(i32 %39)
%41 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%42 = load i32, i32* %41
%43 = call i32 @close(i32 %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%45 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%46 = load i32, i32* %45
%47 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%48 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%49 = call i32 @strlen(i8* %48)
%50 = add nsw i32 %49, 1
%51 = call i32 @write(i32 %46, i8* %47, i32 %50)
%52 = call i32 @wait(i32* null)
%53 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%54 = load i32, i32* %53
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%56 = call i32 @read(i32 %54, i8* %55, i32 100)
%57 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %57)
br label %111
59: ; preds = %34
%60 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%61 = load i32, i32* %60
%62 = call i32 @close(i32 %61)
%63 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%64 = load i32, i32* %63
%65 = call i32 @close(i32 %64)
%66 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%67 = load i32, i32* %66
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%69 = call i32 @read(i32 %67, i8* %68, i32 100)
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* %70)
store i32 0, i32* %9
br label %72
72: ; preds = %102, %59
%73 = load i32, i32* %9
%74 = sext i32 %73 to i64
%75 = icmp ult i64 %74, 100
br i1 %75, label %76, label %105
76: ; preds = %72
%77 = load i32, i32* %9
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = call i64 @islower(i8 signext %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %92
83: ; preds = %76
%84 = load i32, i32* %9
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %85
%87 = load i8, i8* %86
%88 = call signext i8 @toupper(i8 signext %87)
%89 = load i32, i32* %9
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %90
store i8 %88, i8* %91
br label %101
92: ; preds = %76
%93 = load i32, i32* %9
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %94
%96 = load i8, i8* %95
%97 = call signext i8 @tolower(i8 signext %96)
%98 = load i32, i32* %9
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %99
store i8 %97, i8* %100
br label %101
101: ; preds = %92, %83
br label %102
102: ; preds = %101
%103 = load i32, i32* %9
%104 = add nsw i32 %103, 1
store i32 %104, i32* %9
br label %72
105: ; preds = %72
%106 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%107 = load i32, i32* %106
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%109 = call i32 @write(i32 %107, i8* %108, i32 100)
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
br label %111
111: ; preds = %105, %37
store i32 0, i32* %1
br label %112
112: ; preds = %111, %31, %24, %17
%113 = load i32, i32* %1
ret i32 %113
}

LLVM IR (-O2):
@stdin = global i32 0
@stderr = global i32 0
@.str.1 = [12 x i8] c"Pipe failed\00"
@.str.2 = [12 x i8] c"Fork failed\00"
@.str.4 = [52 x i8] c"\0AParent: Read the modified message from pipe 2: %s\0A\00"
@.str.5 = [41 x i8] c"\0AChild: Read the message from pipe 1: %s\00"
@str = [34 x i8] c"Please input a character string: \00"
@str.7 = [46 x i8] c"\0AChild: Write the modified message to pipe 2.\00"
@str.8 = [42 x i8] c"\0AParent: Write the message to the pipe 1.\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [2 x i32]
%6 = alloca [2 x i32]
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%11 = bitcast [2 x i32]* %5 to i8*
%12 = bitcast [2 x i32]* %6 to i8*
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%14 = load i32, i32* @stdin
%15 = call i32 @fgets(i8* %7, i32 100, i32 %14)
%16 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%17 = call i32 @pipe(i32* %16)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %83
22: ; preds = %0
%23 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%24 = call i32 @pipe(i32* %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %83
29: ; preds = %22
%30 = call i64 (...) @fork()
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %83
35: ; preds = %29
%36 = icmp eq i64 %30, 0
br i1 %36, label %53, label %37
37: ; preds = %35
%38 = load i32, i32* %16
%39 = call i32 @close(i32 %38)
%40 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%41 = load i32, i32* %40
%42 = call i32 @close(i32 %41)
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.8, i64 0, i64 0))
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%45 = load i32, i32* %44
%46 = call i32 @strlen(i8* %7)
%47 = add nsw i32 %46, 1
%48 = call i32 @write(i32 %45, i8* %7, i32 %47)
%49 = call i32 @wait(i32* null)
%50 = load i32, i32* %23
%51 = call i32 @read(i32 %50, i8* %10, i32 100)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %10)
br label %83
53: ; preds = %35
%54 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%55 = load i32, i32* %54
%56 = call i32 @close(i32 %55)
%57 = load i32, i32* %23
%58 = call i32 @close(i32 %57)
%59 = load i32, i32* %16
%60 = call i32 @read(i32 %59, i8* %9, i32 100)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* %9)
br label %62
62: ; preds = %53, %73
%63 = phi i64 [ 0, %53 ], [ %76, %73 ]
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = call i64 @islower(i8 signext %65)
%67 = icmp eq i64 %66, 0
%68 = load i8, i8* %64
br i1 %67, label %71, label %69
69: ; preds = %62
%70 = call signext i8 @toupper(i8 signext %68)
br label %73
71: ; preds = %62
%72 = call signext i8 @tolower(i8 signext %68)
br label %73
73: ; preds = %69, %71
%74 = phi i8 [ %72, %71 ], [ %70, %69 ]
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %63
store i8 %74, i8* %75
%76 = add nuw nsw i64 %63, 1
%77 = icmp eq i64 %76, 100
br i1 %77, label %78, label %62
78: ; preds = %73
%79 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%80 = load i32, i32* %79
%81 = call i32 @write(i32 %80, i8* %8, i32 100)
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.7, i64 0, i64 0))
br label %83
83: ; preds = %37, %78, %32, %26, %19
%84 = phi i32 [ 1, %19 ], [ 1, %26 ], [ 1, %32 ], [ 0, %78 ], [ 0, %37 ]
ret i32 %84
}