#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 */
char EOF;
int /*<<< orphan*/ add(unsigned int, unsigned int);
int /*<<< orphan*/ divide(unsigned int, unsigned int);
char getchar();
scalar_t__ isNumChecker(char);
scalar_t__ isOperator(char);
unsigned int makeOperand(char, unsigned int);
int /*<<< orphan*/ modulo(unsigned int, unsigned int);
int /*<<< orphan*/ multiply(unsigned int, unsigned int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ subtract(unsigned int, unsigned int);
int main() {
  char char_response = 0;
  unsigned int first_operand = 0;
  unsigned int second_operand = 0;
  int end_of_operand_flag = 0;
  int operand_success = 0;
  int operation_success = 0;
  char operation = 0;
  printf("Let's test some simple expressions. Type \'N\' at any time to "
         "exit.\nPlease input an expression: ");
  while ((char_response = getchar()) != EOF) {
    putchar(char_response);
    if (char_response == 'N') {
      printf("\nThanks for playing. Goodbye.\n");
      break;
    }
    if (isNumChecker(char_response)) {
      if (operand_success == 0) {
        first_operand = makeOperand(char_response, first_operand);
      }
      if (operand_success == 1) {
        second_operand = makeOperand(char_response, second_operand);
      }
      end_of_operand_flag = 1;
    }
    if (!isNumChecker(char_response) && end_of_operand_flag == 1) {
      operand_success++;
      end_of_operand_flag = 0;
    }
    if (isOperator(char_response)) {
      if (operation_success == 0 && operand_success == 1)
        operation = char_response;
      operation_success++;
    }
    if (char_response == '\n') {
      if (operation == 0 || operation_success > 1)
        printf("Invalid expression.\n");
      if (operand_success == 2 && operation_success == 1) {
        if (operation == '+')
          add(first_operand, second_operand);
        if (operation == '-')
          subtract(first_operand, second_operand);
        if (operation == '*')
          multiply(first_operand, second_operand);
        if (operation == '/')
          divide(first_operand, second_operand);
        if (operation == '%')
          modulo(first_operand, second_operand);
      }
      printf("Please input a valid expression: ");
      first_operand = 0;
      second_operand = 0;
      end_of_operand_flag = 0;
      operand_success = 0;
      operation_success = 0;
      operation = 0;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movb   $0x0,-0x1d(%rbp)
lea    0xe0f(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl %al,%eax
mov    0x2dde(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     13e8 <main+0x238>
movsbl -0x5(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x4e,%eax
jne    123c <main+0x8c>
lea    0xe2d(%rip),%rdi
call   1070 <printf@plt>
jmp    13e8 <main+0x238>
movsbl -0x5(%rbp),%edi
call   1090 <isNumChecker@plt>
cmp    $0x0,%rax
je     128c <main+0xdc>
cmpl   $0x0,-0x18(%rbp)
jne    126a <main+0xba>
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%esi
movsbl %al,%edi
call   10c0 <makeOperand@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0x18(%rbp)
jne    1285 <main+0xd5>
mov    -0x5(%rbp),%al
mov    -0x10(%rbp),%esi
movsbl %al,%edi
call   10c0 <makeOperand@plt>
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movsbl -0x5(%rbp),%edi
call   1090 <isNumChecker@plt>
cmp    $0x0,%rax
jne    12b9 <main+0x109>
cmpl   $0x1,-0x14(%rbp)
jne    12b9 <main+0x109>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movsbl -0x5(%rbp),%edi
call   1080 <isOperator@plt>
cmp    $0x0,%rax
je     12ef <main+0x13f>
cmpl   $0x0,-0x1c(%rbp)
jne    12e6 <main+0x136>
cmpl   $0x1,-0x18(%rbp)
jne    12e6 <main+0x136>
mov    -0x5(%rbp),%al
mov    %al,-0x1d(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0xa,%eax
jne    13e3 <main+0x233>
movsbl -0x1d(%rbp),%eax
cmp    $0x0,%eax
je     1313 <main+0x163>
cmpl   $0x1,-0x1c(%rbp)
jle    131f <main+0x16f>
lea    0xd64(%rip),%rdi
call   1070 <printf@plt>
cmpl   $0x2,-0x18(%rbp)
jne    13b0 <main+0x200>
cmpl   $0x1,-0x1c(%rbp)
jne    13b0 <main+0x200>
movsbl -0x1d(%rbp),%eax
cmp    $0x2b,%eax
jne    134b <main+0x19b>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <add@plt>
movsbl -0x1d(%rbp),%eax
cmp    $0x2d,%eax
jne    1363 <main+0x1b3>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   10d0 <subtract@plt>
movsbl -0x1d(%rbp),%eax
cmp    $0x2a,%eax
jne    137b <main+0x1cb>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1050 <multiply@plt>
movsbl -0x1d(%rbp),%eax
cmp    $0x2f,%eax
jne    1393 <main+0x1e3>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1060 <divide@plt>
movsbl -0x1d(%rbp),%eax
cmp    $0x25,%eax
jne    13ab <main+0x1fb>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   10b0 <modulo@plt>
jmp    13b0 <main+0x200>
lea    0xcdc(%rip),%rdi
call   1070 <printf@plt>
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movb   $0x0,-0x1d(%rbp)
jmp    11f6 <main+0x46>
xor    %eax,%eax
add    $0x20,%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    0xe57(%rip),%rdi
call   1080 <printf@plt>
xor    %eax,%eax
call   10b0 <getchar@plt>
mov    %eax,%ebx
mov    0x2dfe(%rip),%rax
cmp    (%rax),%bl
je     13d5 <main+0x215>
movl   $0x0,0x14(%rsp)
xor    %r14d,%r14d
xor    %r12d,%r12d
xor    %r13d,%r13d
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
jmp    1278 <main+0xb8>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
call   10c0 <modulo@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe54(%rip),%rdi
call   1080 <printf@plt>
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
xor    %r15d,%r15d
xor    %r12d,%r12d
xor    %r14d,%r14d
movl   $0x0,0x14(%rsp)
xor    %eax,%eax
call   10b0 <getchar@plt>
mov    %eax,%ebx
mov    %r15d,%r13d
mov    0x2d78(%rip),%rax
cmp    (%rax),%bl
je     13d5 <main+0x215>
movsbl %bl,%ebp
mov    %ebp,%edi
call   1030 <putchar@plt>
cmp    $0x4e,%bpl
je     13c9 <main+0x209>
mov    %ebp,%edi
call   10a0 <isNumChecker@plt>
test   %rax,%rax
je     12cf <main+0x10f>
mov    $0x1,%r13d
cmp    $0x1,%r12d
je     12c0 <main+0x100>
test   %r12d,%r12d
jne    12cf <main+0x10f>
mov    %ebp,%edi
mov    0xc(%rsp),%esi
call   10d0 <makeOperand@plt>
mov    %eax,0xc(%rsp)
jmp    12cf <main+0x10f>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    0x10(%rsp),%esi
call   10d0 <makeOperand@plt>
mov    %eax,0x10(%rsp)
mov    %ebp,%edi
call   10a0 <isNumChecker@plt>
test   %rax,%rax
sete   %cl
cmp    $0x1,%r13d
sete   %al
xor    %r15d,%r15d
and    %cl,%al
jne    12ed <main+0x12d>
mov    %r13d,%r15d
movzbl %al,%eax
add    %eax,%r12d
mov    %ebp,%edi
call   1090 <isOperator@plt>
test   %rax,%rax
je     132b <main+0x16b>
mov    %r12d,%eax
xor    $0x1,%eax
or     %r14d,%eax
je     1320 <main+0x160>
mov    0x14(%rsp),%eax
movzbl %al,%eax
jmp    1323 <main+0x163>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl %bl,%eax
mov    %eax,0x14(%rsp)
add    $0x1,%r14d
cmp    $0xa,%bl
jne    125d <main+0x9d>
mov    0x14(%rsp),%ebx
test   %bl,%bl
je     1342 <main+0x182>
cmp    $0x2,%r14d
jl     134e <main+0x18e>
lea    0xd64(%rip),%rdi
call   1060 <puts@plt>
cmp    $0x2,%r12d
jne    1230 <main+0x70>
cmp    $0x1,%r14d
jne    1230 <main+0x70>
add    $0xdb,%bl
cmp    $0xa,%bl
ja     1230 <main+0x70>
movzbl %bl,%eax
lea    0xc88(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
call   1050 <multiply@plt>
jmp    1230 <main+0x70>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
call   1040 <add@plt>
jmp    1230 <main+0x70>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
call   10e0 <subtract@plt>
jmp    1230 <main+0x70>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
call   1070 <divide@plt>
jmp    1230 <main+0x70>
lea    0xcf1(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [95 x i8] c"Let's test some simple expressions. Type 'N' at any time to exit.\0APlease input an expression: \00"
@EOF = global i8 0
@.str.1 = [31 x i8] c"\0AThanks for playing. Goodbye.\0A\00"
@.str.2 = [21 x i8] c"Invalid expression.\0A\00"
@.str.3 = [34 x i8] c"Please input a valid expression: \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 0, i32* %1
store i8 0, i8* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i8 0, i8* %8
%9 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %130, %0
%11 = call signext i8 (...) @getchar()
store i8 %11, i8* %2
%12 = sext i8 %11 to i32
%13 = load i8, i8* @EOF
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %12, %14
br i1 %15, label %16, label %131
16: ; preds = %10
%17 = load i8, i8* %2
%18 = call i32 @putchar(i8 signext %17)
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 78
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
br label %131
24: ; preds = %16
%25 = load i8, i8* %2
%26 = call i64 @isNumChecker(i8 signext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %24
%29 = load i32, i32* %6
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = load i8, i8* %2
%33 = load i32, i32* %3
%34 = call i32 @makeOperand(i8 signext %32, i32 %33)
store i32 %34, i32* %3
br label %35
35: ; preds = %31, %28
%36 = load i32, i32* %6
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load i8, i8* %2
%40 = load i32, i32* %4
%41 = call i32 @makeOperand(i8 signext %39, i32 %40)
store i32 %41, i32* %4
br label %42
42: ; preds = %38, %35
store i32 1, i32* %5
br label %43
43: ; preds = %42, %24
%44 = load i8, i8* %2
%45 = call i64 @isNumChecker(i8 signext %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %53, label %47
47: ; preds = %43
%48 = load i32, i32* %5
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
store i32 0, i32* %5
br label %53
53: ; preds = %50, %47, %43
%54 = load i8, i8* %2
%55 = call i64 @isOperator(i8 signext %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %68
57: ; preds = %53
%58 = load i32, i32* %7
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = load i32, i32* %6
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = load i8, i8* %2
store i8 %64, i8* %8
br label %65
65: ; preds = %63, %60, %57
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
store i32 %67, i32* %7
br label %68
68: ; preds = %65, %53
%69 = load i8, i8* %2
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 10
br i1 %71, label %72, label %130
72: ; preds = %68
%73 = load i8, i8* %8
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %72
%77 = load i32, i32* %7
%78 = icmp sgt i32 %77, 1
br i1 %78, label %79, label %81
79: ; preds = %76, %72
%80 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %81
81: ; preds = %79, %76
%82 = load i32, i32* %6
%83 = icmp eq i32 %82, 2
br i1 %83, label %84, label %128
84: ; preds = %81
%85 = load i32, i32* %7
%86 = icmp eq i32 %85, 1
br i1 %86, label %87, label %128
87: ; preds = %84
%88 = load i8, i8* %8
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 43
br i1 %90, label %91, label %95
91: ; preds = %87
%92 = load i32, i32* %3
%93 = load i32, i32* %4
%94 = call i32 @add(i32 %92, i32 %93)
br label %95
95: ; preds = %91, %87
%96 = load i8, i8* %8
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 45
br i1 %98, label %99, label %103
99: ; preds = %95
%100 = load i32, i32* %3
%101 = load i32, i32* %4
%102 = call i32 @subtract(i32 %100, i32 %101)
br label %103
103: ; preds = %99, %95
%104 = load i8, i8* %8
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 42
br i1 %106, label %107, label %111
107: ; preds = %103
%108 = load i32, i32* %3
%109 = load i32, i32* %4
%110 = call i32 @multiply(i32 %108, i32 %109)
br label %111
111: ; preds = %107, %103
%112 = load i8, i8* %8
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 47
br i1 %114, label %115, label %119
115: ; preds = %111
%116 = load i32, i32* %3
%117 = load i32, i32* %4
%118 = call i32 @divide(i32 %116, i32 %117)
br label %119
119: ; preds = %115, %111
%120 = load i8, i8* %8
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 37
br i1 %122, label %123, label %127
123: ; preds = %119
%124 = load i32, i32* %3
%125 = load i32, i32* %4
%126 = call i32 @modulo(i32 %124, i32 %125)
br label %127
127: ; preds = %123, %119
br label %128
128: ; preds = %127, %84, %81
%129 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i8 0, i8* %8
br label %130
130: ; preds = %128, %68
br label %10
131: ; preds = %22, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [95 x i8] c"Let's test some simple expressions. Type 'N' at any time to exit.\0APlease input an expression: \00"
@EOF = global i8 0
@.str.3 = [34 x i8] c"Please input a valid expression: \00"
@str = [20 x i8] c"Invalid expression.\00"
@str.4 = [30 x i8] c"\0AThanks for playing. Goodbye.\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%2 = tail call signext i8 (...) @getchar()
%3 = load i8, i8* @EOF
%4 = icmp eq i8 %2, %3
br i1 %4, label %81, label %5
5: ; preds = %0, %71
%6 = phi i8 [ %78, %71 ], [ %2, %0 ]
%7 = phi i8 [ %77, %71 ], [ 0, %0 ]
%8 = phi i32 [ %76, %71 ], [ 0, %0 ]
%9 = phi i32 [ %75, %71 ], [ 0, %0 ]
%10 = phi i32 [ %74, %71 ], [ 0, %0 ]
%11 = phi i32 [ %73, %71 ], [ 0, %0 ]
%12 = phi i32 [ %72, %71 ], [ 0, %0 ]
%13 = tail call i32 @putchar(i8 signext %6)
%14 = icmp eq i8 %6, 78
br i1 %14, label %15, label %17
15: ; preds = %5
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.4, i64 0, i64 0))
br label %81
17: ; preds = %5
%18 = tail call i64 @isNumChecker(i8 signext %6)
%19 = icmp eq i64 %18, 0
br i1 %19, label %25, label %20
20: ; preds = %17
switch i32 %9, label %25 [
i32 0, label %21
i32 1, label %23
]
21: ; preds = %20
%22 = tail call i32 @makeOperand(i8 signext %6, i32 %12)
br label %25
23: ; preds = %20
%24 = tail call i32 @makeOperand(i8 signext %6, i32 %11)
br label %25
25: ; preds = %20, %21, %23, %17
%26 = phi i32 [ %12, %17 ], [ %12, %23 ], [ %22, %21 ], [ %12, %20 ]
%27 = phi i32 [ %11, %17 ], [ %24, %23 ], [ %11, %21 ], [ %11, %20 ]
%28 = phi i32 [ %10, %17 ], [ 1, %23 ], [ 1, %21 ], [ 1, %20 ]
%29 = tail call i64 @isNumChecker(i8 signext %6)
%30 = icmp eq i64 %29, 0
%31 = icmp eq i32 %28, 1
%32 = select i1 %30, i1 %31, i1 false
%33 = select i1 %32, i32 0, i32 %28
%34 = zext i1 %32 to i32
%35 = add nsw i32 %9, %34
%36 = tail call i64 @isOperator(i8 signext %6)
%37 = icmp eq i64 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %25
%39 = icmp eq i32 %8, 0
%40 = icmp eq i32 %35, 1
%41 = select i1 %39, i1 %40, i1 false
%42 = select i1 %41, i8 %6, i8 %7
%43 = add nsw i32 %8, 1
br label %44
44: ; preds = %38, %25
%45 = phi i32 [ %43, %38 ], [ %8, %25 ]
%46 = phi i8 [ %42, %38 ], [ %7, %25 ]
%47 = icmp eq i8 %6, 10
br i1 %47, label %48, label %71
48: ; preds = %44
%49 = icmp eq i8 %46, 0
%50 = icmp sgt i32 %45, 1
%51 = select i1 %49, i1 true, i1 %50
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
br label %54
54: ; preds = %48, %52
%55 = icmp eq i32 %35, 2
%56 = icmp eq i32 %45, 1
%57 = select i1 %55, i1 %56, i1 false
br i1 %57, label %58, label %69
58: ; preds = %54
switch i8 %46, label %69 [
i8 43, label %59
i8 45, label %61
i8 42, label %63
i8 47, label %65
i8 37, label %67
]
59: ; preds = %58
%60 = tail call i32 @add(i32 %26, i32 %27)
br label %69
61: ; preds = %58
%62 = tail call i32 @subtract(i32 %26, i32 %27)
br label %69
63: ; preds = %58
%64 = tail call i32 @multiply(i32 %26, i32 %27)
br label %69
65: ; preds = %58
%66 = tail call i32 @divide(i32 %26, i32 %27)
br label %69
67: ; preds = %58
%68 = tail call i32 @modulo(i32 %26, i32 %27)
br label %69
69: ; preds = %65, %63, %61, %59, %58, %67, %54
%70 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
br label %71
71: ; preds = %69, %44
%72 = phi i32 [ 0, %69 ], [ %26, %44 ]
%73 = phi i32 [ 0, %69 ], [ %27, %44 ]
%74 = phi i32 [ 0, %69 ], [ %33, %44 ]
%75 = phi i32 [ 0, %69 ], [ %35, %44 ]
%76 = phi i32 [ 0, %69 ], [ %45, %44 ]
%77 = phi i8 [ 0, %69 ], [ %46, %44 ]
%78 = tail call signext i8 (...) @getchar()
%79 = load i8, i8* @EOF
%80 = icmp eq i8 %78, %79
br i1 %80, label %81, label %5
81: ; preds = %71, %0, %15
ret i32 0
}