#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 */
char EOF;
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ ungetc(char, int /*<<< orphan*/ *);
int main(int argc, char const *argv[]) {
  char c = '\0';
  FILE *fp;
  fp = fopen(argv[1], "r");
  if (!fp) {
    printf("File %s could not be opened :/\n", argv[1]);
    return 1;
  }
  int next_lbl_mark = 10;
  int lbl_marks[128] = {0};
  int close_mark_pos = 0;
  int in_comment = 0;
  printf("cpy 0 $p   # Initialize data pointer");
  do {
    c = fgetc(fp);
    switch (c) {
    case '>':
      printf("\ninc $p");
      break;
    case '<':
      printf("\ndec $p");
      break;
    case '+':
      printf("\nget $ $p\ninc $\nput $ $p");
      break;
    case '-':
      printf("\nget $ $p\ndec $\nput $ $p");
      break;
    case '.':
      printf("\nget $ $p\ndis $");
      break;
    case ',':
      printf("\ncin $\nput $ $p");
      break;
    case '[':
      printf("\nlbl -%d\nget $ $p\neql $ 0 $\nmov %d $", next_lbl_mark,
             next_lbl_mark);
      lbl_marks[close_mark_pos] = next_lbl_mark;
      next_lbl_mark++;
      close_mark_pos++;
      break;
    case ']':
      close_mark_pos--;
      printf("\nmov -%d\nlbl %d", lbl_marks[close_mark_pos],
             lbl_marks[close_mark_pos]);
      break;
    case '\n':
    case '\t':
    case ' ':
      break;
    default:
      printf("\n#");
      while (c != EOF && c != '\n' && c != ',' && c != '.' && c != '-' &&
             c != '+' && c != '<' && c != '>' && c != '[' && c != ']') {
        printf("%c", c);
        c = fgetc(fp);
      }
      ungetc(c, fp);
    }
  } while (c != EOF);
  puts("\nend");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x100b(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11c2 <main+0x62>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xfa5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1488 <main+0x328>
movl   $0xa,-0x24(%rbp)
lea    -0x230(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1050 <memset@plt>
movl   $0x0,-0x234(%rbp)
movl   $0x0,-0x238(%rbp)
lea    0xf7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
add    $0xfffffff7,%eax
mov    %eax,%ecx
mov    %rcx,-0x240(%rbp)
sub    $0x54,%eax
ja     1331 <main+0x1d1>
mov    -0x240(%rbp),%rax
lea    0xdcf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
lea    0xf48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
lea    0xf4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
mov    -0x24(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%ecx
movslq -0x234(%rbp),%rax
mov    %ecx,-0x230(%rbp,%rax,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    145a <main+0x2fa>
mov    -0x234(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x234(%rbp)
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%esi
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edx
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x2fa>
jmp    145a <main+0x2fa>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x11(%rbp),%ecx
mov    0x2c9e(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2e,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2b,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3c,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3e,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x241(%rbp)
je     1415 <main+0x2b5>
movsbl -0x11(%rbp),%eax
cmp    $0x5d,%eax
setne  %al
mov    %al,-0x241(%rbp)
mov    -0x241(%rbp),%al
test   $0x1,%al
jne    1428 <main+0x2c8>
jmp    144b <main+0x2eb>
movsbl -0x11(%rbp),%esi
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
jmp    133f <main+0x1df>
mov    -0x11(%rbp),%al
mov    -0x20(%rbp),%rsi
movsbl %al,%edi
call   1070 <ungetc@plt>
jmp    145f <main+0x2ff>
movsbl -0x11(%rbp),%eax
mov    0x2b7e(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    11fe <main+0x9e>
lea    0xdba(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
lea    0x1158(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     12fa <main+0x18a>
mov    %rax,%rbx
mov    %rsp,%rdi
mov    $0x200,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0x110e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%ebp
mov    0x2e1f(%rip),%r12
lea    0xe30(%rip),%r14
xor    %r13d,%r13d
jmp    11f1 <main+0x81>
lea    0x110d(%rip),%rdi
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <printf@plt>
cmp    (%r12),%r15b
je     12ea <main+0x17a>
mov    %rbx,%rdi
call   1070 <fgetc@plt>
mov    %eax,%r15d
movsbl %al,%eax
add    $0xfffffff7,%eax
cmp    $0x54,%eax
ja     1219 <main+0xa9>
movslq (%r14,%rax,4),%rax
add    %r14,%rax
jmp    *%rax
lea    0x10e2(%rip),%rdi
jmp    11e0 <main+0x70>
lea    0x1160(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    (%r12),%r15b
jne    124a <main+0xda>
jmp    1265 <main+0xf5>
nop
movsbl %r15b,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1070 <fgetc@plt>
mov    %eax,%r15d
cmp    (%r12),%al
je     1265 <main+0xf5>
lea    -0xa(%r15),%eax
cmp    $0x53,%al
ja     1230 <main+0xc0>
movzbl %al,%eax
lea    0xef8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl %r15b,%edi
mov    %rbx,%rsi
call   1080 <ungetc@plt>
jmp    11e7 <main+0x77>
lea    0x10be(%rip),%rdi
jmp    11e0 <main+0x70>
lea    0x1089(%rip),%rdi
jmp    11e0 <main+0x70>
lea    0x1096(%rip),%rdi
jmp    11e0 <main+0x70>
lea    0x1050(%rip),%rdi
jmp    11e0 <main+0x70>
lea    0x109e(%rip),%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
movslq %r13d,%rax
mov    %ebp,(%rsp,%rax,4)
add    $0x1,%ebp
add    $0x1,%r13d
jmp    11e7 <main+0x77>
movslq %r13d,%rax
add    $0xffffffff,%r13d
mov    -0x4(%rsp,%rax,4),%edx
lea    0x1094(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11e7 <main+0x77>
lea    0x1092(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
jmp    1311 <main+0x1a1>
mov    0x8(%rbp),%rsi
lea    0xf9f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [32 x i8] c"File %s could not be opened :/\0A\00"
@.str.2 = [37 x i8] c"cpy 0 $p # Initialize data pointer\00"
@.str.3 = [8 x i8] c"\0Ainc $p\00"
@.str.4 = [8 x i8] c"\0Adec $p\00"
@.str.5 = [25 x i8] c"\0Aget $ $p\0Ainc $\0Aput $ $p\00"
@.str.6 = [25 x i8] c"\0Aget $ $p\0Adec $\0Aput $ $p\00"
@.str.7 = [16 x i8] c"\0Aget $ $p\0Adis $\00"
@.str.8 = [16 x i8] c"\0Acin $\0Aput $ $p\00"
@.str.9 = [37 x i8] c"\0Albl -%d\0Aget $ $p\0Aeql $ 0 $\0Amov %d $\00"
@.str.10 = [16 x i8] c"\0Amov -%d\0Albl %d\00"
@.str.11 = [3 x i8] c"\0A#\00"
@EOF = global i8 0
@.str.12 = [3 x i8] c"%c\00"
@.str.13 = [5 x i8] c"\0Aend\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i32*
%8 = alloca i32
%9 = alloca [128 x i32]
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* %6
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %15, i32** %7
%16 = load i32*, i32** %7
%17 = icmp ne i32* %16, null
br i1 %17, label %23, label %18
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %21)
store i32 1, i32* %3
br label %133
23: ; preds = %2
store i32 10, i32* %8
%24 = bitcast [128 x i32]* %9 to i8*
store i32 0, i32* %10
store i32 0, i32* %11
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %125, %23
%27 = load i32*, i32** %7
%28 = call signext i8 @fgetc(i32* %27)
store i8 %28, i8* %6
%29 = load i8, i8* %6
%30 = sext i8 %29 to i32
switch i32 %30, label %68 [
i32 62, label %31
i32 60, label %33
i32 43, label %35
i32 45, label %37
i32 46, label %39
i32 44, label %41
i32 91, label %43
i32 93, label %55
i32 10, label %67
i32 9, label %67
i32 32, label %67
]
31: ; preds = %26
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %124
33: ; preds = %26
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %124
35: ; preds = %26
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %124
37: ; preds = %26
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %124
39: ; preds = %26
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %124
41: ; preds = %26
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %124
43: ; preds = %26
%44 = load i32, i32* %8
%45 = load i32, i32* %8
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %44, i32 %45)
%47 = load i32, i32* %8
%48 = load i32, i32* %10
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [128 x i32], [128 x i32]* %9, i64 0, i64 %49
store i32 %47, i32* %50
%51 = load i32, i32* %8
%52 = add nsw i32 %51, 1
store i32 %52, i32* %8
%53 = load i32, i32* %10
%54 = add nsw i32 %53, 1
store i32 %54, i32* %10
br label %124
55: ; preds = %26
%56 = load i32, i32* %10
%57 = add nsw i32 %56, -1
store i32 %57, i32* %10
%58 = load i32, i32* %10
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [128 x i32], [128 x i32]* %9, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = load i32, i32* %10
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [128 x i32], [128 x i32]* %9, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %61, i32 %65)
br label %124
67: ; preds = %26, %26, %26
br label %124
68: ; preds = %26
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %70
70: ; preds = %114, %68
%71 = load i8, i8* %6
%72 = sext i8 %71 to i32
%73 = load i8, i8* @EOF
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %72, %74
br i1 %75, label %76, label %112
76: ; preds = %70
%77 = load i8, i8* %6
%78 = sext i8 %77 to i32
%79 = icmp ne i32 %78, 10
br i1 %79, label %80, label %112
80: ; preds = %76
%81 = load i8, i8* %6
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 44
br i1 %83, label %84, label %112
84: ; preds = %80
%85 = load i8, i8* %6
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 46
br i1 %87, label %88, label %112
88: ; preds = %84
%89 = load i8, i8* %6
%90 = sext i8 %89 to i32
%91 = icmp ne i32 %90, 45
br i1 %91, label %92, label %112
92: ; preds = %88
%93 = load i8, i8* %6
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 43
br i1 %95, label %96, label %112
96: ; preds = %92
%97 = load i8, i8* %6
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 60
br i1 %99, label %100, label %112
100: ; preds = %96
%101 = load i8, i8* %6
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 62
br i1 %103, label %104, label %112
104: ; preds = %100
%105 = load i8, i8* %6
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 91
br i1 %107, label %108, label %112
108: ; preds = %104
%109 = load i8, i8* %6
%110 = sext i8 %109 to i32
%111 = icmp ne i32 %110, 93
br label %112
112: ; preds = %108, %104, %100, %96, %92, %88, %84, %80, %76, %70
%113 = phi i1 [ false, %104 ], [ false, %100 ], [ false, %96 ], [ false, %92 ], [ false, %88 ], [ false, %84 ], [ false, %80 ], [ false, %76 ], [ false, %70 ], [ %111, %108 ]
br i1 %113, label %114, label %120
114: ; preds = %112
%115 = load i8, i8* %6
%116 = sext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 %116)
%118 = load i32*, i32** %7
%119 = call signext i8 @fgetc(i32* %118)
store i8 %119, i8* %6
br label %70
120: ; preds = %112
%121 = load i8, i8* %6
%122 = load i32*, i32** %7
%123 = call i32 @ungetc(i8 signext %121, i32* %122)
br label %124
124: ; preds = %120, %67, %55, %43, %41, %39, %37, %35, %33, %31
br label %125
125: ; preds = %124
%126 = load i8, i8* %6
%127 = sext i8 %126 to i32
%128 = load i8, i8* @EOF
%129 = sext i8 %128 to i32
%130 = icmp ne i32 %127, %129
br i1 %130, label %26, label %131
131: ; preds = %125
%132 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %3
br label %133
133: ; preds = %131, %18
%134 = load i32, i32* %3
ret i32 %134
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [32 x i8] c"File %s could not be opened :/\0A\00"
@.str.2 = [37 x i8] c"cpy 0 $p # Initialize data pointer\00"
@.str.3 = [8 x i8] c"\0Ainc $p\00"
@.str.4 = [8 x i8] c"\0Adec $p\00"
@.str.5 = [25 x i8] c"\0Aget $ $p\0Ainc $\0Aput $ $p\00"
@.str.6 = [25 x i8] c"\0Aget $ $p\0Adec $\0Aput $ $p\00"
@.str.7 = [16 x i8] c"\0Aget $ $p\0Adis $\00"
@.str.8 = [16 x i8] c"\0Acin $\0Aput $ $p\00"
@.str.9 = [37 x i8] c"\0Albl -%d\0Aget $ $p\0Aeql $ 0 $\0Amov %d $\00"
@.str.10 = [16 x i8] c"\0Amov -%d\0Albl %d\00"
@.str.11 = [3 x i8] c"\0A#\00"
@EOF = global i8 0
@.str.13 = [5 x i8] c"\0Aend\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i32]
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32* @fopen(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %9)
br label %68
11: ; preds = %2
%12 = bitcast [128 x i32]* %3 to i8*
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %60, %11
%15 = phi i32 [ 10, %11 ], [ %62, %60 ]
%16 = phi i32 [ 0, %11 ], [ %63, %60 ]
%17 = tail call signext i8 @fgetc(i32* %6)
%18 = sext i8 %17 to i32
switch i32 %18, label %43 [
i32 62, label %19
i32 60, label %21
i32 43, label %23
i32 45, label %25
i32 46, label %27
i32 44, label %29
i32 91, label %31
i32 93, label %37
i32 10, label %60
i32 9, label %60
i32 32, label %60
]
19: ; preds = %14
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %60
21: ; preds = %14
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %60
23: ; preds = %14
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %60
25: ; preds = %14
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %60
27: ; preds = %14
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %60
29: ; preds = %14
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %60
31: ; preds = %14
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %15, i32 %15)
%33 = sext i32 %16 to i64
%34 = getelementptr inbounds [128 x i32], [128 x i32]* %3, i64 0, i64 %33
store i32 %15, i32* %34
%35 = add nsw i32 %15, 1
%36 = add nsw i32 %16, 1
br label %60
37: ; preds = %14
%38 = add nsw i32 %16, -1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [128 x i32], [128 x i32]* %3, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %41, i32 %41)
br label %60
43: ; preds = %14
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%45 = load i8, i8* @EOF
%46 = freeze i8 %45
%47 = icmp eq i8 %17, %46
br i1 %47, label %57, label %48
48: ; preds = %43, %50
%49 = phi i8 [ %53, %50 ], [ %17, %43 ]
switch i8 %49, label %50 [
i8 93, label %57
i8 91, label %57
i8 62, label %57
i8 60, label %57
i8 46, label %57
i8 45, label %57
i8 44, label %57
i8 43, label %57
i8 10, label %57
]
50: ; preds = %48
%51 = sext i8 %49 to i32
%52 = tail call i32 @putchar(i32 %51)
%53 = tail call signext i8 @fgetc(i32* %6)
%54 = load i8, i8* @EOF
%55 = freeze i8 %54
%56 = icmp eq i8 %53, %55
br i1 %56, label %57, label %48
57: ; preds = %50, %48, %48, %48, %48, %48, %48, %48, %48, %48, %43
%58 = phi i8 [ %17, %43 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %49, %48 ], [ %53, %50 ]
%59 = tail call i32 @ungetc(i8 signext %58, i32* %6)
br label %60
60: ; preds = %19, %21, %23, %25, %27, %29, %31, %37, %57, %14, %14, %14
%61 = phi i8 [ %58, %57 ], [ %17, %14 ], [ %17, %14 ], [ %17, %14 ], [ %17, %37 ], [ %17, %31 ], [ %17, %29 ], [ %17, %27 ], [ %17, %25 ], [ %17, %23 ], [ %17, %21 ], [ %17, %19 ]
%62 = phi i32 [ %15, %57 ], [ %15, %14 ], [ %15, %14 ], [ %15, %14 ], [ %15, %37 ], [ %35, %31 ], [ %15, %29 ], [ %15, %27 ], [ %15, %25 ], [ %15, %23 ], [ %15, %21 ], [ %15, %19 ]
%63 = phi i32 [ %16, %57 ], [ %16, %14 ], [ %16, %14 ], [ %16, %14 ], [ %38, %37 ], [ %36, %31 ], [ %16, %29 ], [ %16, %27 ], [ %16, %25 ], [ %16, %23 ], [ %16, %21 ], [ %16, %19 ]
%64 = load i8, i8* @EOF
%65 = icmp eq i8 %61, %64
br i1 %65, label %66, label %14
66: ; preds = %60
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
br label %68
68: ; preds = %66, %8
%69 = phi i32 [ 0, %66 ], [ 1, %8 ]
ret i32 %69
}