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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  FILE *csource;
  char filename[100];
  int checkbrackets;
  int countLeftBrace = 0, countRightBrace = 0, countLeftSquare = 0,
      countRightSquare = 0, countLeftCurly = 0, countRightCurly = 0;
  if (argc != 2)
    printf("\nProgram will count left and right brackets ()[]{}\nand tell you "
           "if there are a different number of them\nCorrect Usage: "
           "checkbrackets.exe filename.c\n\n");
  else {
    csource = fopen(argv[1], "r");
    if (csource == NULL) {
      printf("Cannot open file: Please check the filename you entered and try "
             "again.");
      exit(1);
    }
    checkbrackets = getc(csource);
    while (checkbrackets != EOF) {
      switch (checkbrackets) {
      case '(':
        countLeftBrace++;
        break;
      case ')':
        countRightBrace++;
        break;
      case '[':
        countLeftSquare++;
        break;
      case ']':
        countRightSquare++;
        break;
      case '{':
        countLeftCurly++;
        break;
      case '}':
        countRightCurly++;
        break;
      }
      checkbrackets = getc(csource);
    }
    if (countLeftBrace != countRightBrace) {
      printf("There are a different number of left and right braces - ()\n");
      printf("There are %d ('s & %d )'s\n", countLeftBrace, countRightBrace);
    } else
      printf("There are the same number of left and right braces ()\n");
    if (countLeftSquare != countRightSquare) {
      printf("There are a different number of left and right square brackets - "
             "[]\n");
      printf("There are %d ['s & %d ]'s\n", countLeftSquare, countRightSquare);
    } else
      printf("There are the same number of left and right braces []\n");
    if (countLeftCurly != countRightCurly) {
      printf("There are a different number of left and right curly brackets - "
             "{}\n");
      printf("There are %d {'s & %d }'s\n", countLeftCurly, countRightCurly);
    } else
      printf("There are the same number of left and right braces {}\n");
    fclose(csource);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x88(%rbp)
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
movl   $0x0,-0x94(%rbp)
movl   $0x0,-0x98(%rbp)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11c2 <main+0x72>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1416 <main+0x2c6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xec5(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11fd <main+0xad>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x18(%rbp),%rdi
call   1070 <getc@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    0x2dcf(%rip),%rcx
cmp    (%rcx),%eax
je     1326 <main+0x1d6>
mov    -0x84(%rbp),%eax
mov    %eax,-0xa0(%rbp)
sub    $0x28,%eax
je     129f <main+0x14f>
jmp    123b <main+0xeb>
mov    -0xa0(%rbp),%eax
sub    $0x29,%eax
je     12b3 <main+0x163>
jmp    124f <main+0xff>
mov    -0xa0(%rbp),%eax
sub    $0x5b,%eax
je     12c7 <main+0x177>
jmp    1263 <main+0x113>
mov    -0xa0(%rbp),%eax
sub    $0x5d,%eax
je     12db <main+0x18b>
jmp    1277 <main+0x127>
mov    -0xa0(%rbp),%eax
sub    $0x7b,%eax
je     12ef <main+0x19f>
jmp    128b <main+0x13b>
mov    -0xa0(%rbp),%eax
sub    $0x7d,%eax
je     1303 <main+0x1b3>
jmp    1312 <main+0x1c2>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1312 <main+0x1c2>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1312 <main+0x1c2>
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    1312 <main+0x1c2>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1312 <main+0x1c2>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    1312 <main+0x1c2>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <getc@plt>
mov    %eax,-0x84(%rbp)
jmp    120c <main+0xbc>
mov    -0x88(%rbp),%eax
cmp    -0x8c(%rbp),%eax
je     1365 <main+0x215>
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x88(%rbp),%esi
mov    -0x8c(%rbp),%edx
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1373 <main+0x223>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x90(%rbp),%eax
cmp    -0x94(%rbp),%eax
je     13b2 <main+0x262>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x90(%rbp),%esi
mov    -0x94(%rbp),%edx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13c0 <main+0x270>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x98(%rbp),%eax
cmp    -0x9c(%rbp),%eax
je     13ff <main+0x2af>
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x98(%rbp),%esi
mov    -0x9c(%rbp),%edx
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    140d <main+0x2bd>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    1244 <main+0xe4>
mov    0x8(%rsi),%rdi
lea    0xf0a(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1325 <main+0x1c5>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <getc@plt>
mov    0x2e46(%rip),%r13
xor    %r14d,%r14d
mov    $0x0,%r15d
mov    $0x0,%r12d
mov    $0x0,%ebp
cmp    0x0(%r13),%eax
je     1269 <main+0x109>
movl   $0x0,0x10(%rsp)
lea    0xe31(%rip),%r14
movl   $0x0,0xc(%rsp)
xor    %r12d,%r12d
xor    %ebp,%ebp
movl   $0x0,0x14(%rsp)
xor    %r15d,%r15d
jmp    11fe <main+0x9e>
addl   $0x1,0x10(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <getc@plt>
cmp    0x0(%r13),%eax
je     1255 <main+0xf5>
lea    -0x5b(%rax),%ecx
cmp    $0x22,%ecx
ja     1220 <main+0xc0>
movslq (%r14,%rcx,4),%rax
add    %r14,%rax
jmp    *%rax
add    $0x1,%ebp
jmp    11f0 <main+0x90>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    $0x29,%eax
je     123d <main+0xdd>
cmp    $0x28,%eax
jne    11f0 <main+0x90>
add    $0x1,%r15d
jmp    11f0 <main+0x90>
add    $0x1,%r12d
jmp    11f0 <main+0x90>
addl   $0x1,0xc(%rsp)
jmp    11f0 <main+0x90>
addl   $0x1,0x14(%rsp)
jmp    11f0 <main+0x90>
lea    0x103f(%rip),%rdi
call   1030 <puts@plt>
jmp    1314 <main+0x1b4>
mov    0x14(%rsp),%r14d
cmp    %r14d,%r15d
jne    12ad <main+0x14d>
mov    0x10(%rsp),%r14d
mov    0xc(%rsp),%r15d
lea    0xeb6(%rip),%rdi
call   1030 <puts@plt>
cmp    %r12d,%ebp
jne    12dc <main+0x17c>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
cmp    %r14d,%r15d
je     1300 <main+0x1a0>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6d(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    130c <main+0x1ac>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe15(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%r14d
mov    0xc(%rsp),%r15d
cmp    %r12d,%ebp
je     127a <main+0x11a>
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xe01(%rip),%rdi
mov    %ebp,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r14d,%r15d
jne    128b <main+0x12b>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [150 x i8] c"\0AProgram will count left and right brackets ()[]{}\0Aand tell you if there are a different number of them\0ACorrect Usage: checkbrackets.exe filename.c\0A\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [71 x i8] c"Cannot open file: Please check the filename you entered and try again.\00"
@EOF = global i32 0
@.str.3 = [60 x i8] c"There are a different number of left and right braces - ()\0A\00"
@.str.4 = [27 x i8] c"There are %d ('s & %d )'s\0A\00"
@.str.5 = [55 x i8] c"There are the same number of left and right braces ()\0A\00"
@.str.6 = [69 x i8] c"There are a different number of left and right square brackets - []\0A\00"
@.str.7 = [27 x i8] c"There are %d ['s & %d ]'s\0A\00"
@.str.8 = [55 x i8] c"There are the same number of left and right braces []\0A\00"
@.str.9 = [68 x i8] c"There are a different number of left and right curly brackets - {}\0A\00"
@.str.10 = [27 x i8] c"There are %d {'s & %d }'s\0A\00"
@.str.11 = [55 x i8] c"There are the same number of left and right braces {}\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [100 x i8]
%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* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0))
br label %95
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %6
%24 = load i32*, i32** %6
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %29
26: ; preds = %19
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @exit(i32 1)
unreachable
29: ; preds = %19
%30 = load i32*, i32** %6
%31 = call i32 @getc(i32* %30)
store i32 %31, i32* %8
br label %32
32: ; preds = %56, %29
%33 = load i32, i32* %8
%34 = load i32, i32* @EOF
%35 = icmp ne i32 %33, %34
br i1 %35, label %36, label %59
36: ; preds = %32
%37 = load i32, i32* %8
switch i32 %37, label %56 [
i32 40, label %38
i32 41, label %41
i32 91, label %44
i32 93, label %47
i32 123, label %50
i32 125, label %53
]
38: ; preds = %36
%39 = load i32, i32* %9
%40 = add nsw i32 %39, 1
store i32 %40, i32* %9
br label %56
41: ; preds = %36
%42 = load i32, i32* %10
%43 = add nsw i32 %42, 1
store i32 %43, i32* %10
br label %56
44: ; preds = %36
%45 = load i32, i32* %11
%46 = add nsw i32 %45, 1
store i32 %46, i32* %11
br label %56
47: ; preds = %36
%48 = load i32, i32* %12
%49 = add nsw i32 %48, 1
store i32 %49, i32* %12
br label %56
50: ; preds = %36
%51 = load i32, i32* %13
%52 = add nsw i32 %51, 1
store i32 %52, i32* %13
br label %56
53: ; preds = %36
%54 = load i32, i32* %14
%55 = add nsw i32 %54, 1
store i32 %55, i32* %14
br label %56
56: ; preds = %36, %53, %50, %47, %44, %41, %38
%57 = load i32*, i32** %6
%58 = call i32 @getc(i32* %57)
store i32 %58, i32* %8
br label %32
59: ; preds = %32
%60 = load i32, i32* %9
%61 = load i32, i32* %10
%62 = icmp ne i32 %60, %61
br i1 %62, label %63, label %68
63: ; preds = %59
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32, i32* %9
%66 = load i32, i32* %10
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %65, i32 %66)
br label %70
68: ; preds = %59
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
br label %70
70: ; preds = %68, %63
%71 = load i32, i32* %11
%72 = load i32, i32* %12
%73 = icmp ne i32 %71, %72
br i1 %73, label %74, label %79
74: ; preds = %70
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%76 = load i32, i32* %11
%77 = load i32, i32* %12
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %76, i32 %77)
br label %81
79: ; preds = %70
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
br label %81
81: ; preds = %79, %74
%82 = load i32, i32* %13
%83 = load i32, i32* %14
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.9, i64 0, i64 0))
%87 = load i32, i32* %13
%88 = load i32, i32* %14
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0), i32 %87, i32 %88)
br label %92
90: ; preds = %81
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
br label %92
92: ; preds = %90, %85
%93 = load i32*, i32** %6
%94 = call i32 @fclose(i32* %93)
br label %95
95: ; preds = %92, %17
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [71 x i8] c"Cannot open file: Please check the filename you entered and try again.\00"
@EOF = global i32 0
@.str.4 = [27 x i8] c"There are %d ('s & %d )'s\0A\00"
@.str.7 = [27 x i8] c"There are %d ['s & %d ]'s\0A\00"
@.str.10 = [27 x i8] c"There are %d {'s & %d }'s\0A\00"
@str = [54 x i8] c"There are the same number of left and right braces ()\00"
@str.12 = [54 x i8] c"There are the same number of left and right braces []\00"
@str.13 = [54 x i8] c"There are the same number of left and right braces {}\00"
@str.14 = [67 x i8] c"There are a different number of left and right curly brackets - {}\00"
@str.15 = [68 x i8] c"There are a different number of left and right square brackets - []\00"
@str.16 = [59 x i8] c"There are a different number of left and right braces - ()\00"
@str.17 = [149 x i8] c"\0AProgram will count left and right brackets ()[]{}\0Aand tell you if there are a different number of them\0ACorrect Usage: checkbrackets.exe filename.c\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.17, i64 0, i64 0))
br label %79
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %6
%15 = tail call i32 @getc(i32* %9)
%16 = load i32, i32* @EOF
%17 = icmp eq i32 %15, %16
br i1 %17, label %53, label %18
18: ; preds = %14, %38
%19 = phi i32 [ %44, %38 ], [ 0, %14 ]
%20 = phi i32 [ %43, %38 ], [ 0, %14 ]
%21 = phi i32 [ %42, %38 ], [ 0, %14 ]
%22 = phi i32 [ %41, %38 ], [ 0, %14 ]
%23 = phi i32 [ %40, %38 ], [ 0, %14 ]
%24 = phi i32 [ %39, %38 ], [ 0, %14 ]
%25 = phi i32 [ %45, %38 ], [ %15, %14 ]
switch i32 %25, label %38 [
i32 40, label %26
i32 41, label %28
i32 91, label %30
i32 93, label %32
i32 123, label %34
i32 125, label %36
]
26: ; preds = %18
%27 = add nsw i32 %24, 1
br label %38
28: ; preds = %18
%29 = add nsw i32 %23, 1
br label %38
30: ; preds = %18
%31 = add nsw i32 %22, 1
br label %38
32: ; preds = %18
%33 = add nsw i32 %21, 1
br label %38
34: ; preds = %18
%35 = add nsw i32 %20, 1
br label %38
36: ; preds = %18
%37 = add nsw i32 %19, 1
br label %38
38: ; preds = %18, %36, %34, %32, %30, %28, %26
%39 = phi i32 [ %24, %18 ], [ %24, %36 ], [ %24, %34 ], [ %24, %32 ], [ %24, %30 ], [ %24, %28 ], [ %27, %26 ]
%40 = phi i32 [ %23, %18 ], [ %23, %36 ], [ %23, %34 ], [ %23, %32 ], [ %23, %30 ], [ %29, %28 ], [ %23, %26 ]
%41 = phi i32 [ %22, %18 ], [ %22, %36 ], [ %22, %34 ], [ %22, %32 ], [ %31, %30 ], [ %22, %28 ], [ %22, %26 ]
%42 = phi i32 [ %21, %18 ], [ %21, %36 ], [ %21, %34 ], [ %33, %32 ], [ %21, %30 ], [ %21, %28 ], [ %21, %26 ]
%43 = phi i32 [ %20, %18 ], [ %20, %36 ], [ %35, %34 ], [ %20, %32 ], [ %20, %30 ], [ %20, %28 ], [ %20, %26 ]
%44 = phi i32 [ %19, %18 ], [ %37, %36 ], [ %19, %34 ], [ %19, %32 ], [ %19, %30 ], [ %19, %28 ], [ %19, %26 ]
%45 = tail call i32 @getc(i32* %9)
%46 = load i32, i32* @EOF
%47 = icmp eq i32 %45, %46
br i1 %47, label %48, label %18
48: ; preds = %38
%49 = icmp eq i32 %39, %40
br i1 %49, label %53, label %50
50: ; preds = %48
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.16, i64 0, i64 0))
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %39, i32 %40)
br label %59
53: ; preds = %14, %48
%54 = phi i32 [ %44, %48 ], [ 0, %14 ]
%55 = phi i32 [ %43, %48 ], [ 0, %14 ]
%56 = phi i32 [ %42, %48 ], [ 0, %14 ]
%57 = phi i32 [ %41, %48 ], [ 0, %14 ]
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
br label %59
59: ; preds = %53, %50
%60 = phi i32 [ %54, %53 ], [ %44, %50 ]
%61 = phi i32 [ %55, %53 ], [ %43, %50 ]
%62 = phi i32 [ %56, %53 ], [ %42, %50 ]
%63 = phi i32 [ %57, %53 ], [ %41, %50 ]
%64 = icmp eq i32 %63, %62
br i1 %64, label %68, label %65
65: ; preds = %59
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.15, i64 0, i64 0))
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %63, i32 %62)
br label %70
68: ; preds = %59
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.12, i64 0, i64 0))
br label %70
70: ; preds = %68, %65
%71 = icmp eq i32 %61, %60
br i1 %71, label %75, label %72
72: ; preds = %70
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.14, i64 0, i64 0))
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0), i32 %61, i32 %60)
br label %77
75: ; preds = %70
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.13, i64 0, i64 0))
br label %77
77: ; preds = %75, %72
%78 = tail call i32 @fclose(i32* %9)
br label %79
79: ; preds = %77, %4
ret i32 0
}