#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*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
scalar_t__ getpid();
char *malloc(int);
scalar_t__ pipe(int *);
int /*<<< orphan*/ read(int, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ string_to_upper(char *, int);
int strlen(char *);
int /*<<< orphan*/ wait(int *);
int /*<<< orphan*/ write(int, ...);
int main(int argc, char *argv[]) {
  int main_pipe[2], status_pipe[2], status, len;
  pid_t dev_pid = 0, usr_pid = 0;
  char *s, *c;
  if (pipe(main_pipe) || pipe(status_pipe)) {
    fprintf(stderr, "Error with the pipe\n");
    exit(-1);
  }
  s = malloc(sizeof(char) * 1024);
  c = malloc(sizeof(char));
  if (fork()) {
    if (fork()) {
      wait(&status);
      wait(&status);
      exit(0);
    } else {
      usr_pid = getpid();
      close(main_pipe[1]);
      close(status_pipe[0]);
    }
  } else {
    dev_pid = getpid();
    close(main_pipe[0]);
    close(status_pipe[1]);
  }
  do {
    if (getpid() == dev_pid) {
      fprintf(stdout, "Enter a string: ");
      scanf("%s", s);
      len = strlen(s) + 1;
      write(main_pipe[1], &len, sizeof(int));
      write(main_pipe[1], s, sizeof(char) * len);
      read(status_pipe[0], c, sizeof(char));
    } else {
      read(main_pipe[0], &len, sizeof(int));
      read(main_pipe[0], s, sizeof(char) * len);
      string_to_upper(s, len);
      fprintf(stdout, "Converted: %s\n", s);
      fflush(stdout);
      write(status_pipe[1], c, sizeof(char));
    }
  } while (strcmp(s, "end") != 0 && strcmp(s, "END") != 0);
  free(s);
  free(c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
lea    -0x18(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0x0,%rax
jne    124c <main+0x4c>
lea    -0x20(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0x0,%rax
je     126d <main+0x6d>
mov    0x2d8d(%rip),%rax
mov    (%rax),%edi
lea    0xda4(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    $0xffffffff,%edi
call   1100 <exit@plt>
mov    $0x400,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    $0x1,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    $0x0,%al
call   1120 <fork@plt>
cmp    $0x0,%rax
je     12e4 <main+0xe4>
mov    $0x0,%al
call   1120 <fork@plt>
cmp    $0x0,%rax
je     12c4 <main+0xc4>
lea    -0x24(%rbp),%rdi
call   1110 <wait@plt>
lea    -0x24(%rbp),%rdi
call   1110 <wait@plt>
xor    %edi,%edi
call   1100 <exit@plt>
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    -0x20(%rbp),%edi
call   1080 <close@plt>
jmp    12ff <main+0xff>
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%edi
call   1080 <close@plt>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
jmp    1304 <main+0x104>
mov    $0x0,%al
call   1050 <getpid@plt>
cmp    -0x30(%rbp),%rax
jne    138c <main+0x18c>
mov    0x2cbc(%rip),%rax
mov    (%rax),%edi
lea    0xcf0(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x40(%rbp),%rsi
lea    0xcef(%rip),%rdi
call   10f0 <scanf@plt>
mov    -0x40(%rbp),%rdi
call   1060 <strlen@plt>
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <write@plt>
mov    -0x14(%rbp),%edi
mov    -0x40(%rbp),%rsi
movslq -0x28(%rbp),%rdx
shl    $0x0,%rdx
mov    $0x0,%al
call   1040 <write@plt>
mov    -0x20(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   10a0 <read@plt>
jmp    13fd <main+0x1fd>
mov    -0x18(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   10a0 <read@plt>
mov    -0x18(%rbp),%edi
mov    -0x40(%rbp),%rsi
movslq -0x28(%rbp),%rdx
shl    $0x0,%rdx
mov    $0x0,%al
call   10a0 <read@plt>
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   1070 <string_to_upper@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
lea    0xc54(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2bf5(%rip),%rax
mov    (%rax),%edi
call   10e0 <fflush@plt>
mov    -0x1c(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <write@plt>
jmp    1402 <main+0x202>
mov    -0x40(%rbp),%rdi
lea    0xc2b(%rip),%rsi
call   10b0 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x49(%rbp)
je     143e <main+0x23e>
mov    -0x40(%rbp),%rdi
lea    0xc0d(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    1304 <main+0x104>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
call   1090 <pipe@plt>
test   %rax,%rax
jne    13ec <main+0x1ec>
lea    0x10(%rsp),%rdi
call   1090 <pipe@plt>
test   %rax,%rax
jne    13ec <main+0x1ec>
mov    $0x400,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbx
mov    $0x1,%edi
call   10d0 <malloc@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1120 <fork@plt>
test   %rax,%rax
je     1283 <main+0x83>
xor    %eax,%eax
call   1120 <fork@plt>
test   %rax,%rax
jne    140d <main+0x20d>
xor    %r15d,%r15d
xor    %eax,%eax
call   1050 <getpid@plt>
mov    0xc(%rsp),%edi
call   1080 <close@plt>
mov    0x10(%rsp),%edi
jmp    129a <main+0x9a>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %rax,%r15
mov    0x8(%rsp),%edi
call   1080 <close@plt>
mov    0x14(%rsp),%edi
call   1080 <close@plt>
mov    0x2d32(%rip),%r13
lea    0x4(%rsp),%rbp
lea    0xd86(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <getpid@plt>
cmp    %r15,%rax
jne    1340 <main+0x140>
mov    0x0(%r13),%edi
lea    0xd3e(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
lea    0xd41(%rip),%rdi
mov    %rbx,%rsi
call   10f0 <scanf@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
add    $0x1,%eax
mov    %eax,0x4(%rsp)
mov    0xc(%rsp),%edi
mov    $0x4,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <write@plt>
mov    0xc(%rsp),%edi
movslq 0x4(%rsp),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <write@plt>
mov    0x10(%rsp),%edi
mov    $0x1,%edx
mov    %r14,%rsi
xor    %eax,%eax
call   10a0 <read@plt>
jmp    13a3 <main+0x1a3>
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%edi
mov    $0x4,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   10a0 <read@plt>
mov    0x8(%rsp),%edi
movslq 0x4(%rsp),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <read@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1070 <string_to_upper@plt>
mov    0x0(%r13),%edi
lea    0xcac(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x0(%r13),%edi
call   10e0 <fflush@plt>
mov    0x14(%rsp),%edi
mov    $0x1,%edx
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <write@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     13cb <main+0x1cb>
mov    %rbx,%rdi
lea    0xc7f(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    12c0 <main+0xc0>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bed(%rip),%rax
mov    (%rax),%edi
lea    0xc04(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    $0xffffffff,%edi
call   1100 <exit@plt>
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
call   1110 <wait@plt>
mov    %rbx,%rdi
call   1110 <wait@plt>
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"Error with the pipe\0A\00"
@stdout = global i32 0
@.str.1 = [17 x i8] c"Enter a string: \00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [15 x i8] c"Converted: %s\0A\00"
@.str.4 = [4 x i8] c"end\00"
@.str.5 = [4 x i8] c"END\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i32]
%7 = alloca [2 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %10
store i64 0, i64* %11
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%15 = call i64 @pipe(i32* %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %2
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%19 = call i64 @pipe(i32* %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %17, %2
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @exit(i32 -1)
unreachable
25: ; preds = %17
%26 = call i8* @malloc(i32 1024)
store i8* %26, i8** %12
%27 = call i8* @malloc(i32 1)
store i8* %27, i8** %13
%28 = call i64 (...) @fork()
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %46
30: ; preds = %25
%31 = call i64 (...) @fork()
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = call i32 @wait(i32* %8)
%35 = call i32 @wait(i32* %8)
%36 = call i32 @exit(i32 0)
unreachable
37: ; preds = %30
%38 = call i64 (...) @getpid()
store i64 %38, i64* %11
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%40 = load i32, i32* %39
%41 = call i32 @close(i32 %40)
%42 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%43 = load i32, i32* %42
%44 = call i32 @close(i32 %43)
br label %45
45: ; preds = %37
br label %54
46: ; preds = %25
%47 = call i64 (...) @getpid()
store i64 %47, i64* %10
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%49 = load i32, i32* %48
%50 = call i32 @close(i32 %49)
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%52 = load i32, i32* %51
%53 = call i32 @close(i32 %52)
br label %54
54: ; preds = %46, %45
br label %55
55: ; preds = %113, %54
%56 = call i64 (...) @getpid()
%57 = load i64, i64* %10
%58 = icmp eq i64 %56, %57
br i1 %58, label %59, label %81
59: ; preds = %55
%60 = load i32, i32* @stdout
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%62 = load i8*, i8** %12
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %62)
%64 = load i8*, i8** %12
%65 = call i32 @strlen(i8* %64)
%66 = add nsw i32 %65, 1
store i32 %66, i32* %9
%67 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%68 = load i32, i32* %67
%69 = call i32 (i32, ...) @write(i32 %68, i32* %9, i64 4)
%70 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%71 = load i32, i32* %70
%72 = load i8*, i8** %12
%73 = load i32, i32* %9
%74 = sext i32 %73 to i64
%75 = mul i64 1, %74
%76 = call i32 (i32, ...) @write(i32 %71, i8* %72, i64 %75)
%77 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%78 = load i32, i32* %77
%79 = load i8*, i8** %13
%80 = call i32 (i32, ...) @read(i32 %78, i8* %79, i64 1)
br label %104
81: ; preds = %55
%82 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%83 = load i32, i32* %82
%84 = call i32 (i32, ...) @read(i32 %83, i32* %9, i64 4)
%85 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%86 = load i32, i32* %85
%87 = load i8*, i8** %12
%88 = load i32, i32* %9
%89 = sext i32 %88 to i64
%90 = mul i64 1, %89
%91 = call i32 (i32, ...) @read(i32 %86, i8* %87, i64 %90)
%92 = load i8*, i8** %12
%93 = load i32, i32* %9
%94 = call i32 @string_to_upper(i8* %92, i32 %93)
%95 = load i32, i32* @stdout
%96 = load i8*, i8** %12
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %96)
%98 = load i32, i32* @stdout
%99 = call i32 @fflush(i32 %98)
%100 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%101 = load i32, i32* %100
%102 = load i8*, i8** %13
%103 = call i32 (i32, ...) @write(i32 %101, i8* %102, i64 1)
br label %104
104: ; preds = %81, %59
br label %105
105: ; preds = %104
%106 = load i8*, i8** %12
%107 = call i64 @strcmp(i8* %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %113
109: ; preds = %105
%110 = load i8*, i8** %12
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%112 = icmp ne i64 %111, 0
br label %113
113: ; preds = %109, %105
%114 = phi i1 [ false, %105 ], [ %112, %109 ]
br i1 %114, label %55, label %115
115: ; preds = %113
%116 = load i8*, i8** %12
%117 = call i32 @free(i8* %116)
%118 = load i8*, i8** %13
%119 = call i32 @free(i8* %118)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"Error with the pipe\0A\00"
@stdout = global i32 0
@.str.1 = [17 x i8] c"Enter a string: \00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [15 x i8] c"Converted: %s\0A\00"
@.str.4 = [4 x i8] c"end\00"
@.str.5 = [4 x i8] c"END\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i32]
%4 = alloca [2 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = bitcast [2 x i32]* %3 to i8*
%8 = bitcast [2 x i32]* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%12 = call i64 @pipe(i32* %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%16 = call i64 @pipe(i32* %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %14, %2
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @exit(i32 -1)
unreachable
22: ; preds = %14
%23 = call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%24 = call dereferenceable_or_null(1) i8* @malloc(i32 1)
%25 = call i64 (...) @fork()
%26 = icmp eq i64 %25, 0
br i1 %26, label %40, label %27
27: ; preds = %22
%28 = call i64 (...) @fork()
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %27
%31 = call i32 @wait(i32* %5)
%32 = call i32 @wait(i32* %5)
%33 = call i32 @exit(i32 0)
unreachable
34: ; preds = %27
%35 = call i64 (...) @getpid()
%36 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%37 = load i32, i32* %36
%38 = call i32 @close(i32 %37)
%39 = load i32, i32* %15
br label %46
40: ; preds = %22
%41 = call i64 (...) @getpid()
%42 = load i32, i32* %11
%43 = call i32 @close(i32 %42)
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%45 = load i32, i32* %44
br label %46
46: ; preds = %40, %34
%47 = phi i32 [ %45, %40 ], [ %39, %34 ]
%48 = phi i64 [ %41, %40 ], [ 0, %34 ]
%49 = call i32 @close(i32 %47)
%50 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
br label %52
52: ; preds = %87, %46
%53 = call i64 (...) @getpid()
%54 = icmp eq i64 %53, %48
br i1 %54, label %55, label %69
55: ; preds = %52
%56 = load i32, i32* @stdout
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %23)
%59 = call i32 @strlen(i8* %23)
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
%61 = load i32, i32* %51
%62 = call i32 (i32, ...) @write(i32 %61, i32* %6, i64 4)
%63 = load i32, i32* %51
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = call i32 (i32, ...) @write(i32 %63, i8* %23, i64 %65)
%67 = load i32, i32* %15
%68 = call i32 (i32, ...) @read(i32 %67, i8* %24, i64 1)
br label %84
69: ; preds = %52
%70 = load i32, i32* %11
%71 = call i32 (i32, ...) @read(i32 %70, i32* %6, i64 4)
%72 = load i32, i32* %11
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = call i32 (i32, ...) @read(i32 %72, i8* %23, i64 %74)
%76 = load i32, i32* %6
%77 = call i32 @string_to_upper(i8* %23, i32 %76)
%78 = load i32, i32* @stdout
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%80 = load i32, i32* @stdout
%81 = call i32 @fflush(i32 %80)
%82 = load i32, i32* %50
%83 = call i32 (i32, ...) @write(i32 %82, i8* %24, i64 1)
br label %84
84: ; preds = %55, %69
%85 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %90, label %87
87: ; preds = %84
%88 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %52
90: ; preds = %84, %87
%91 = call i32 @free(i8* %23)
%92 = call i32 @free(i8* %24)
ret i32 0
}