#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 EOF;
int check_balanced(int, char, char, int);
int getchar();
int /*<<< orphan*/ print_unbalanced(int, char *);
int main() {
  int c, prev_c;
  int paren, bracket, brace, s_quote, d_quote, comment;
  const int TRUE = 2;
  const int END = 1;
  const int FALSE = 0;
  int in_quote = FALSE;
  int in_comment = FALSE;
  prev_c = '\0';
  paren = bracket = brace = s_quote = d_quote = comment = 0;
  while ((c = getchar()) != EOF) {
    if (((prev_c == '"') || (prev_c == '\'')) && (in_quote == FALSE)) {
      in_quote = TRUE;
    } else if (((prev_c == '"') || (prev_c == '\'')) && (in_quote == TRUE)) {
      in_quote = FALSE;
    }
    if ((prev_c == '/') && (c == '*') && (in_comment == FALSE) &&
        (in_quote == FALSE)) {
      in_comment = TRUE;
      comment++;
    } else if ((prev_c == '*') && (c == '/') && (in_comment == TRUE)) {
      in_comment = END;
      comment--;
      continue;
    }
    if (comment < 0) {
      comment++;
    }
    if ((in_quote == FALSE) && (in_comment == FALSE) && (prev_c != '\0')) {
      paren = check_balanced(c, '(', ')', paren);
      bracket = check_balanced(c, '[', ']', bracket);
      brace = check_balanced(c, '{', '}', brace);
      s_quote = check_balanced(c, '\'', '\'', s_quote);
      d_quote = check_balanced(c, '"', '"', d_quote);
    }
    if (in_comment == END) {
      in_comment = FALSE;
    }
    prev_c = c;
  }
  print_unbalanced(paren, "Parentheses");
  print_unbalanced(bracket, "Brackets");
  print_unbalanced(brace, "Braces");
  print_unbalanced(s_quote, "Single quotation marks");
  print_unbalanced(d_quote, "Double quotation marks");
  print_unbalanced(comment, "Comments");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x28(%rbp)
movl   $0x1,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e44(%rip),%rcx
cmp    (%rcx),%eax
je     1334 <main+0x204>
cmpl   $0x22,-0xc(%rbp)
je     11c0 <main+0x90>
cmpl   $0x27,-0xc(%rbp)
jne    11d6 <main+0xa6>
cmpl   $0x0,-0x34(%rbp)
jne    11d6 <main+0xa6>
movl   $0x2,-0x34(%rbp)
jmp    1200 <main+0xd0>
cmpl   $0x22,-0xc(%rbp)
je     11ea <main+0xba>
cmpl   $0x27,-0xc(%rbp)
jne    11fb <main+0xcb>
cmpl   $0x2,-0x34(%rbp)
jne    11fb <main+0xcb>
movl   $0x0,-0x34(%rbp)
jmp    1200 <main+0xd0>
cmpl   $0x2f,-0xc(%rbp)
jne    123d <main+0x10d>
cmpl   $0x2a,-0x8(%rbp)
jne    123d <main+0x10d>
cmpl   $0x0,-0x38(%rbp)
jne    123d <main+0x10d>
cmpl   $0x0,-0x34(%rbp)
jne    123d <main+0x10d>
movl   $0x2,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1275 <main+0x145>
cmpl   $0x2a,-0xc(%rbp)
jne    1270 <main+0x140>
cmpl   $0x2f,-0x8(%rbp)
jne    1270 <main+0x140>
cmpl   $0x2,-0x38(%rbp)
jne    1270 <main+0x140>
movl   $0x1,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1193 <main+0x63>
jmp    1275 <main+0x145>
cmpl   $0x0,-0x24(%rbp)
jge    1288 <main+0x158>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1318 <main+0x1e8>
cmpl   $0x0,-0x38(%rbp)
jne    1318 <main+0x1e8>
cmpl   $0x0,-0xc(%rbp)
je     1318 <main+0x1e8>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%ecx
mov    $0x28,%esi
mov    $0x29,%edx
call   1040 <check_balanced@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x14(%rbp),%ecx
mov    $0x5b,%esi
mov    $0x5d,%edx
call   1040 <check_balanced@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%ecx
mov    $0x7b,%esi
mov    $0x7d,%edx
call   1040 <check_balanced@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x1c(%rbp),%ecx
mov    $0x27,%edx
mov    %edx,%esi
call   1040 <check_balanced@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%ecx
mov    $0x22,%edx
mov    %edx,%esi
call   1040 <check_balanced@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x1,-0x38(%rbp)
jne    1329 <main+0x1f9>
movl   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1193 <main+0x63>
mov    -0x10(%rbp),%edi
lea    0xcc2(%rip),%rsi
call   1050 <print_unbalanced@plt>
mov    -0x14(%rbp),%edi
lea    0xcbf(%rip),%rsi
call   1050 <print_unbalanced@plt>
mov    -0x18(%rbp),%edi
lea    0xcb9(%rip),%rsi
call   1050 <print_unbalanced@plt>
mov    -0x1c(%rbp),%edi
lea    0xcb1(%rip),%rsi
call   1050 <print_unbalanced@plt>
mov    -0x20(%rbp),%edi
lea    0xcb9(%rip),%rsi
call   1050 <print_unbalanced@plt>
mov    -0x24(%rbp),%edi
lea    0xcc1(%rip),%rsi
call   1050 <print_unbalanced@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0x14(%rsp)
xor    %eax,%eax
call   1030 <getchar@plt>
mov    0x2e94(%rip),%r15
movl   $0x0,0x10(%rsp)
mov    $0x0,%r12d
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x0,%ebx
cmp    (%r15),%eax
je     133a <main+0x20a>
xor    %r13d,%r13d
xor    %ebp,%ebp
xor    %r14d,%r14d
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
xor    %ebx,%ebx
xor    %r12d,%r12d
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
mov    %r12d,0x4(%rsp)
mov    %r14d,%ecx
lea    0x1(%rbx),%r12d
mov    %eax,%r14d
nopl   0x0(%rax)
cmp    $0x22,%ecx
sete   %al
cmp    $0x27,%ecx
sete   %dl
or     %al,%dl
cmp    $0x2,%ebp
mov    %ebp,%eax
mov    $0x0,%esi
cmove  %esi,%eax
test   %dl,%dl
cmove  %ebp,%eax
test   %ebp,%ebp
mov    %eax,%ebp
mov    $0x2,%esi
cmove  %esi,%ebp
test   %dl,%dl
cmove  %eax,%ebp
cmp    $0x2f,%ecx
jne    1205 <main+0xd5>
cmp    $0x2a,%r14d
jne    1205 <main+0xd5>
test   %r13d,%r13d
jne    1205 <main+0xd5>
test   %ebp,%ebp
je     1240 <main+0x110>
cmp    $0x2a,%ecx
jne    1260 <main+0x130>
cmp    $0x2f,%r14d
jne    1260 <main+0x130>
cmp    $0x2,%r13d
jne    1260 <main+0x130>
add    $0xffffffff,%ebx
xor    %eax,%eax
call   1030 <getchar@plt>
mov    %eax,%r14d
add    $0xffffffff,%r12d
mov    $0x2a,%ecx
mov    $0x1,%r13d
cmp    (%r15),%eax
jne    11c0 <main+0x90>
jmp    132e <main+0x1fe>
nopl   0x0(%rax)
mov    %r12d,%ebx
shr    $0x1f,%ebx
add    %r12d,%ebx
mov    $0x2,%r13d
xor    %ebp,%ebp
mov    $0x2a,%r14d
jmp    1317 <main+0x1e7>
nopl   0x0(%rax)
add    $0xffffffff,%r12d
shr    $0x1f,%r12d
add    %r12d,%ebx
test   %ecx,%ecx
je     130a <main+0x1da>
test   %ebp,%ebp
jne    130a <main+0x1da>
test   %r13d,%r13d
jne    130a <main+0x1da>
mov    %r14d,%edi
mov    $0x28,%esi
mov    $0x29,%edx
mov    0x8(%rsp),%ecx
call   1040 <check_balanced@plt>
mov    %eax,0x8(%rsp)
mov    %r14d,%edi
mov    $0x5b,%esi
mov    $0x5d,%edx
mov    0xc(%rsp),%ecx
call   1040 <check_balanced@plt>
mov    %eax,0xc(%rsp)
mov    %r14d,%edi
mov    $0x7b,%esi
mov    $0x7d,%edx
mov    0x14(%rsp),%ecx
call   1040 <check_balanced@plt>
mov    %eax,0x14(%rsp)
mov    %r14d,%edi
mov    $0x27,%esi
mov    $0x27,%edx
mov    0x10(%rsp),%ecx
call   1040 <check_balanced@plt>
mov    %eax,0x10(%rsp)
mov    %r14d,%edi
mov    $0x22,%esi
mov    $0x22,%edx
mov    0x4(%rsp),%ecx
call   1040 <check_balanced@plt>
mov    %eax,%r12d
xor    %r13d,%r13d
jmp    131c <main+0x1ec>
cmp    $0x1,%r13d
mov    $0x0,%eax
cmove  %eax,%r13d
mov    0x4(%rsp),%r12d
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    (%r15),%eax
jne    11ad <main+0x7d>
jmp    133a <main+0x20a>
add    $0xffffffff,%r12d
mov    %r12d,%ebx
mov    0x4(%rsp),%r12d
lea    0xcbf(%rip),%rsi
mov    0x8(%rsp),%edi
call   1050 <print_unbalanced@plt>
lea    0xcbb(%rip),%rsi
mov    0xc(%rsp),%edi
call   1050 <print_unbalanced@plt>
lea    0xcb4(%rip),%rsi
mov    0x14(%rsp),%edi
call   1050 <print_unbalanced@plt>
lea    0xcab(%rip),%rsi
mov    0x10(%rsp),%edi
call   1050 <print_unbalanced@plt>
lea    0xcb2(%rip),%rsi
mov    %r12d,%edi
call   1050 <print_unbalanced@plt>
lea    0xcba(%rip),%rsi
mov    %ebx,%edi
call   1050 <print_unbalanced@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EOF = global i32 0
@.str = [12 x i8] c"Parentheses\00"
@.str.1 = [9 x i8] c"Brackets\00"
@.str.2 = [7 x i8] c"Braces\00"
@.str.3 = [23 x i8] c"Single quotation marks\00"
@.str.4 = [23 x i8] c"Double quotation marks\00"
@.str.5 = [9 x i8] c"Comments\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %1
store i32 2, i32* %10
store i32 1, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %3
store i32 0, i32* %9
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %4
br label %15
15: ; preds = %103, %64, %0
%16 = call i32 (...) @getchar()
store i32 %16, i32* %2
%17 = load i32, i32* @EOF
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %105
19: ; preds = %15
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, 34
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, i32* %3
%24 = icmp eq i32 %23, 39
br i1 %24, label %25, label %29
25: ; preds = %22, %19
%26 = load i32, i32* %13
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 2, i32* %13
br label %40
29: ; preds = %25, %22
%30 = load i32, i32* %3
%31 = icmp eq i32 %30, 34
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = load i32, i32* %3
%34 = icmp eq i32 %33, 39
br i1 %34, label %35, label %39
35: ; preds = %32, %29
%36 = load i32, i32* %13
%37 = icmp eq i32 %36, 2
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 0, i32* %13
br label %39
39: ; preds = %38, %35, %32
br label %40
40: ; preds = %39, %28
%41 = load i32, i32* %3
%42 = icmp eq i32 %41, 47
br i1 %42, label %43, label %55
43: ; preds = %40
%44 = load i32, i32* %2
%45 = icmp eq i32 %44, 42
br i1 %45, label %46, label %55
46: ; preds = %43
%47 = load i32, i32* %14
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %46
%50 = load i32, i32* %13
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
store i32 2, i32* %14
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %68
55: ; preds = %49, %46, %43, %40
%56 = load i32, i32* %3
%57 = icmp eq i32 %56, 42
br i1 %57, label %58, label %67
58: ; preds = %55
%59 = load i32, i32* %2
%60 = icmp eq i32 %59, 47
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = load i32, i32* %14
%63 = icmp eq i32 %62, 2
br i1 %63, label %64, label %67
64: ; preds = %61
store i32 1, i32* %14
%65 = load i32, i32* %9
%66 = add nsw i32 %65, -1
store i32 %66, i32* %9
br label %15
67: ; preds = %61, %58, %55
br label %68
68: ; preds = %67, %52
%69 = load i32, i32* %9
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load i32, i32* %9
%73 = add nsw i32 %72, 1
store i32 %73, i32* %9
br label %74
74: ; preds = %71, %68
%75 = load i32, i32* %13
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %99
77: ; preds = %74
%78 = load i32, i32* %14
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %99
80: ; preds = %77
%81 = load i32, i32* %3
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %99
83: ; preds = %80
%84 = load i32, i32* %2
%85 = load i32, i32* %4
%86 = call i32 @check_balanced(i32 %84, i8 signext 40, i8 signext 41, i32 %85)
store i32 %86, i32* %4
%87 = load i32, i32* %2
%88 = load i32, i32* %5
%89 = call i32 @check_balanced(i32 %87, i8 signext 91, i8 signext 93, i32 %88)
store i32 %89, i32* %5
%90 = load i32, i32* %2
%91 = load i32, i32* %6
%92 = call i32 @check_balanced(i32 %90, i8 signext 123, i8 signext 125, i32 %91)
store i32 %92, i32* %6
%93 = load i32, i32* %2
%94 = load i32, i32* %7
%95 = call i32 @check_balanced(i32 %93, i8 signext 39, i8 signext 39, i32 %94)
store i32 %95, i32* %7
%96 = load i32, i32* %2
%97 = load i32, i32* %8
%98 = call i32 @check_balanced(i32 %96, i8 signext 34, i8 signext 34, i32 %97)
store i32 %98, i32* %8
br label %99
99: ; preds = %83, %80, %77, %74
%100 = load i32, i32* %14
%101 = icmp eq i32 %100, 1
br i1 %101, label %102, label %103
102: ; preds = %99
store i32 0, i32* %14
br label %103
103: ; preds = %102, %99
%104 = load i32, i32* %2
store i32 %104, i32* %3
br label %15
105: ; preds = %15
%106 = load i32, i32* %4
%107 = call i32 @print_unbalanced(i32 %106, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%108 = load i32, i32* %5
%109 = call i32 @print_unbalanced(i32 %108, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%110 = load i32, i32* %6
%111 = call i32 @print_unbalanced(i32 %110, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%112 = load i32, i32* %7
%113 = call i32 @print_unbalanced(i32 %112, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%114 = load i32, i32* %8
%115 = call i32 @print_unbalanced(i32 %114, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%116 = load i32, i32* %9
%117 = call i32 @print_unbalanced(i32 %116, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
@.str = [12 x i8] c"Parentheses\00"
@.str.1 = [9 x i8] c"Brackets\00"
@.str.2 = [7 x i8] c"Braces\00"
@.str.3 = [23 x i8] c"Single quotation marks\00"
@.str.4 = [23 x i8] c"Double quotation marks\00"
@.str.5 = [9 x i8] c"Comments\00"
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %81, label %4
4: ; preds = %0, %68
%5 = phi i32 [ %78, %68 ], [ %1, %0 ]
%6 = phi i32 [ %77, %68 ], [ 0, %0 ]
%7 = phi i32 [ %75, %68 ], [ 0, %0 ]
%8 = phi i32 [ %74, %68 ], [ 0, %0 ]
%9 = phi i32 [ %69, %68 ], [ 0, %0 ]
%10 = phi i32 [ %70, %68 ], [ 0, %0 ]
%11 = phi i32 [ %76, %68 ], [ 0, %0 ]
%12 = phi i32 [ %71, %68 ], [ 0, %0 ]
%13 = phi i32 [ %72, %68 ], [ 0, %0 ]
%14 = phi i32 [ %73, %68 ], [ 0, %0 ]
br label %15
15: ; preds = %4, %47
%16 = phi i32 [ %5, %4 ], [ %49, %47 ]
%17 = phi i32 [ %6, %4 ], [ 1, %47 ]
%18 = phi i32 [ %7, %4 ], [ %29, %47 ]
%19 = phi i32 [ %8, %4 ], [ 42, %47 ]
%20 = phi i32 [ %11, %4 ], [ %48, %47 ]
%21 = icmp eq i32 %19, 34
%22 = icmp eq i32 %19, 39
%23 = or i1 %21, %22
%24 = icmp eq i32 %18, 0
%25 = select i1 %23, i1 %24, i1 false
%26 = icmp eq i32 %18, 2
%27 = select i1 %23, i1 %26, i1 false
%28 = select i1 %27, i32 0, i32 %18
%29 = select i1 %25, i32 2, i32 %28
%30 = icmp eq i32 %19, 47
%31 = icmp eq i32 %16, 42
%32 = and i1 %30, %31
%33 = icmp eq i32 %17, 0
%34 = select i1 %32, i1 %33, i1 false
%35 = icmp eq i32 %29, 0
%36 = select i1 %34, i1 %35, i1 false
br i1 %36, label %37, label %41
37: ; preds = %15
%38 = add nsw i32 %20, 1
%39 = lshr i32 %38, 31
%40 = add nsw i32 %39, %38
br label %68
41: ; preds = %15
%42 = icmp eq i32 %19, 42
%43 = icmp eq i32 %16, 47
%44 = and i1 %42, %43
%45 = icmp eq i32 %17, 2
%46 = select i1 %44, i1 %45, i1 false
br i1 %46, label %47, label %52
47: ; preds = %41
%48 = add nsw i32 %20, -1
%49 = tail call i32 (...) @getchar()
%50 = load i32, i32* @EOF
%51 = icmp eq i32 %49, %50
br i1 %51, label %81, label %15
52: ; preds = %41
%53 = lshr i32 %20, 31
%54 = add nsw i32 %53, %20
%55 = icmp eq i32 %17, 0
%56 = select i1 %35, i1 %55, i1 false
%57 = icmp ne i32 %19, 0
%58 = and i1 %57, %56
br i1 %58, label %59, label %65
59: ; preds = %52
%60 = tail call i32 @check_balanced(i32 %16, i8 signext 40, i8 signext 41, i32 %9)
%61 = tail call i32 @check_balanced(i32 %16, i8 signext 91, i8 signext 93, i32 %10)
%62 = tail call i32 @check_balanced(i32 %16, i8 signext 123, i8 signext 125, i32 %14)
%63 = tail call i32 @check_balanced(i32 %16, i8 signext 39, i8 signext 39, i32 %13)
%64 = tail call i32 @check_balanced(i32 %16, i8 signext 34, i8 signext 34, i32 %12)
br label %68
65: ; preds = %52
%66 = icmp eq i32 %17, 1
%67 = select i1 %66, i32 0, i32 %17
br label %68
68: ; preds = %65, %37, %59
%69 = phi i32 [ %9, %37 ], [ %60, %59 ], [ %9, %65 ]
%70 = phi i32 [ %10, %37 ], [ %61, %59 ], [ %10, %65 ]
%71 = phi i32 [ %12, %37 ], [ %64, %59 ], [ %12, %65 ]
%72 = phi i32 [ %13, %37 ], [ %63, %59 ], [ %13, %65 ]
%73 = phi i32 [ %14, %37 ], [ %62, %59 ], [ %14, %65 ]
%74 = phi i32 [ 42, %37 ], [ %16, %59 ], [ %16, %65 ]
%75 = phi i32 [ 0, %37 ], [ %29, %59 ], [ %29, %65 ]
%76 = phi i32 [ %40, %37 ], [ %54, %59 ], [ %54, %65 ]
%77 = phi i32 [ 2, %37 ], [ 0, %59 ], [ %67, %65 ]
%78 = tail call i32 (...) @getchar()
%79 = load i32, i32* @EOF
%80 = icmp eq i32 %78, %79
br i1 %80, label %81, label %4
81: ; preds = %68, %47, %0
%82 = phi i32 [ 0, %0 ], [ %14, %47 ], [ %73, %68 ]
%83 = phi i32 [ 0, %0 ], [ %13, %47 ], [ %72, %68 ]
%84 = phi i32 [ 0, %0 ], [ %12, %47 ], [ %71, %68 ]
%85 = phi i32 [ 0, %0 ], [ %10, %47 ], [ %70, %68 ]
%86 = phi i32 [ 0, %0 ], [ %9, %47 ], [ %69, %68 ]
%87 = phi i32 [ 0, %0 ], [ %48, %47 ], [ %76, %68 ]
%88 = tail call i32 @print_unbalanced(i32 %86, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%89 = tail call i32 @print_unbalanced(i32 %85, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%90 = tail call i32 @print_unbalanced(i32 %82, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%91 = tail call i32 @print_unbalanced(i32 %83, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%92 = tail call i32 @print_unbalanced(i32 %84, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%93 = tail call i32 @print_unbalanced(i32 %87, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}