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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ decode2(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ exit(int);
int fgetc(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int fread(char *, int, int, int /*<<< orphan*/ *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ hexdump(int /*<<< orphan*/, int /*<<< orphan*/, char *,
                           char *, char *, int);
scalar_t__ parse1(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ proff(int);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ ungetc(int, int /*<<< orphan*/ *);
void decode(FILE *fp) {
  int c;
  int len;
  int curOff = 0;
  char buf[70000];
  c = getc(fp);
  if (c == EOF) {
    printf("EOF on file\n");
    return;
  }
  ungetc(c, fp);
  if (c == '\033') {
    while (fgets(buf, sizeof(buf), fp)) {
      proff(curOff);
      if (buf[0] == '\033') {
        printf("\\033");
        fputs(buf + 1, stdout);
      } else
        fputs(buf, stdout);
      curOff += strlen(buf);
      if ((strcmp(buf, "@PJL ENTER LANGUAGE=HBPL\r\n") == 0) ||
          (strcmp(buf, "@PJL ENTER LANGUAGE=HBPL\n") == 0))
        break;
    }
  }
  c = getc(fp);
  ungetc(c, fp);
  if (c == 0x1b) {
    decode2(fp, curOff);
    goto done;
  }
  if (parse1(fp, &curOff)) {
    printf("Continuing with hexdump...\n");
    if ((len = fread(buf, 1, sizeof(buf), fp)))
      hexdump(stdout, 0, "", "", buf, len);
    exit(1);
  }
done:
  c = fgetc(fp);
  if (c != 033)
    return;
  ungetc(c, fp);
  while (fgets(buf, sizeof(buf), fp)) {
    proff(curOff);
    if (buf[0] == '\033') {
      printf("\\033");
      fputs(buf + 1, stdout);
    } else
      fputs(buf, stdout);
    curOff += strlen(buf);
    if (strcmp(buf, "@PJL ENTER LANGUAGE=HBPL\n") == 0)
      break;
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x11190,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1100 <getc@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    0x2ddc(%rip),%rcx
cmp    (%rcx),%eax
jne    1225 <decode+0x45>
lea    0xde5(%rip),%rdi
call   1060 <printf@plt>
jmp    14b1 <decode+0x2d1>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%rsi
call   10c0 <ungetc@plt>
cmpl   $0x1b,-0xc(%rbp)
jne    1318 <decode+0x138>
jmp    1240 <decode+0x60>
lea    -0x11190(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x11170,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1313 <decode+0x133>
mov    -0x14(%rbp),%edi
call   1030 <proff@plt>
movsbl -0x11190(%rbp),%eax
cmp    $0x1b,%eax
jne    12a1 <decode+0xc1>
lea    0xd8f(%rip),%rdi
call   1060 <printf@plt>
lea    -0x11190(%rbp),%rdi
add    $0x1,%rdi
mov    0x2d43(%rip),%rax
mov    (%rax),%esi
call   1070 <fputs@plt>
jmp    12b6 <decode+0xd6>
lea    -0x11190(%rbp),%rdi
mov    0x2d29(%rip),%rax
mov    (%rax),%esi
call   1070 <fputs@plt>
lea    -0x11190(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    -0x11190(%rbp),%rdi
lea    0xd35(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     1309 <decode+0x129>
lea    -0x11190(%rbp),%rdi
lea    0xd33(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    130e <decode+0x12e>
jmp    1313 <decode+0x133>
jmp    1240 <decode+0x60>
jmp    1318 <decode+0x138>
mov    -0x8(%rbp),%rdi
call   1100 <getc@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%rsi
call   10c0 <ungetc@plt>
cmpl   $0x1b,-0xc(%rbp)
jne    134b <decode+0x16b>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   10d0 <decode2@plt>
jmp    13c8 <decode+0x1e8>
mov    -0x8(%rbp),%rdi
lea    -0x14(%rbp),%rsi
call   10f0 <parse1@plt>
cmp    $0x0,%rax
je     13c3 <decode+0x1e3>
lea    0xcde(%rip),%rdi
call   1060 <printf@plt>
lea    -0x11190(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x1,%esi
mov    $0x11170,%edx
call   1040 <fread@plt>
mov    %eax,-0x10(%rbp)
cmp    $0x0,%eax
je     13b9 <decode+0x1d9>
mov    0x2c3d(%rip),%rax
mov    (%rax),%edi
lea    -0x11190(%rbp),%r8
mov    -0x10(%rbp),%r9d
xor    %esi,%esi
lea    0xc7b(%rip),%rcx
mov    %rcx,%rdx
call   10b0 <hexdump@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    13c8 <decode+0x1e8>
mov    -0x8(%rbp),%rdi
call   1080 <fgetc@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x1b,-0xc(%rbp)
je     13e3 <decode+0x203>
jmp    14b1 <decode+0x2d1>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%rsi
call   10c0 <ungetc@plt>
lea    -0x11190(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x11170,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     14a5 <decode+0x2c5>
mov    -0x14(%rbp),%edi
call   1030 <proff@plt>
movsbl -0x11190(%rbp),%eax
cmp    $0x1b,%eax
jne    1450 <decode+0x270>
lea    0xbe0(%rip),%rdi
call   1060 <printf@plt>
lea    -0x11190(%rbp),%rdi
add    $0x1,%rdi
mov    0x2b94(%rip),%rax
mov    (%rax),%esi
call   1070 <fputs@plt>
jmp    1465 <decode+0x285>
lea    -0x11190(%rbp),%rdi
mov    0x2b7a(%rip),%rax
mov    (%rax),%esi
call   1070 <fputs@plt>
lea    -0x11190(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    -0x11190(%rbp),%rdi
lea    0xba1(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    14a0 <decode+0x2c0>
jmp    14a5 <decode+0x2c5>
jmp    13ef <decode+0x20f>
lea    0xb7f(%rip),%rdi
call   1060 <printf@plt>
add    $0x11190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x11188,%rsp
mov    %rdi,%r14
movl   $0x0,0xc(%rsp)
call   1120 <getc@plt>
mov    %eax,%ebx
mov    0x2dbe(%rip),%rax
cmp    (%rax),%ebx
jne    124b <decode+0x4b>
lea    0xe20(%rip),%rdi
add    $0x11188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <puts@plt>
mov    %ebx,%edi
mov    %r14,%rsi
call   10e0 <ungetc@plt>
xor    %ebp,%ebp
cmp    $0x1b,%ebx
jne    12ed <decode+0xed>
xor    %ebp,%ebp
lea    0x10(%rsp),%rbx
mov    0x2d6a(%rip),%r15
lea    0xd90(%rip),%r12
lea    0xda4(%rip),%r13
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x11170,%esi
mov    %r14,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     12ed <decode+0xed>
mov    %ebp,%edi
call   1040 <proff@plt>
cmpb   $0x1b,0x10(%rsp)
mov    %rbx,%rdi
jne    12b7 <decode+0xb7>
lea    0xd53(%rip),%rdi
call   1080 <printf@plt>
lea    0x11(%rsp),%rdi
mov    (%r15),%esi
call   1090 <fputs@plt>
mov    %rbx,%rdi
call   1070 <strlen@plt>
add    %eax,%ebp
mov    %ebp,0xc(%rsp)
mov    %rbx,%rdi
mov    %r12,%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     12ed <decode+0xed>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
jne    1280 <decode+0x80>
mov    %r14,%rdi
call   1120 <getc@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %r14,%rsi
call   10e0 <ungetc@plt>
cmp    $0x1b,%ebx
jne    1312 <decode+0x112>
mov    %r14,%rdi
mov    %ebp,%esi
call   10f0 <decode2@plt>
jmp    1328 <decode+0x128>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
call   1110 <parse1@plt>
test   %rax,%rax
jne    13e6 <decode+0x1e6>
mov    %r14,%rdi
call   10a0 <fgetc@plt>
cmp    $0x1b,%eax
jne    13d4 <decode+0x1d4>
mov    $0x1b,%edi
mov    %r14,%rsi
call   10e0 <ungetc@plt>
lea    0x11(%rsp),%r12
lea    0x10(%rsp),%rbx
lea    0xca9(%rip),%r15
mov    0x2c7a(%rip),%r13
lea    0xcbb(%rip),%rbp
jmp    1395 <decode+0x195>
nopw   0x0(%rax,%rax,1)
mov    0x0(%r13),%esi
call   1090 <fputs@plt>
mov    %rbx,%rdi
call   1070 <strlen@plt>
add    %eax,0xc(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     13ca <decode+0x1ca>
mov    %rbx,%rdi
mov    $0x11170,%esi
mov    %r14,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     13ca <decode+0x1ca>
mov    0xc(%rsp),%edi
call   1040 <proff@plt>
cmpb   $0x1b,0x10(%rsp)
mov    %rbx,%rdi
jne    1370 <decode+0x170>
mov    %r15,%rdi
call   1080 <printf@plt>
mov    %r12,%rdi
jmp    1370 <decode+0x170>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x11188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc4d(%rip),%rdi
call   1050 <puts@plt>
lea    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0x11170,%edx
mov    %r14,%rcx
call   1060 <fread@plt>
test   %eax,%eax
je     142f <decode+0x22f>
mov    0x2bc4(%rip),%rcx
mov    (%rcx),%edi
lea    0xc02(%rip),%rcx
lea    0x10(%rsp),%r8
xor    %esi,%esi
mov    %rcx,%rdx
mov    %eax,%r9d
call   10d0 <hexdump@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@EOF = global i32 0
@.str = [13 x i8] c"EOF on file\0A\00"
@.str.1 = [5 x i8] c"\\033\00"
@stdout = global i32 0
@.str.2 = [27 x i8] c"@PJL ENTER LANGUAGE=HBPL\0D\0A\00"
@.str.3 = [26 x i8] c"@PJL ENTER LANGUAGE=HBPL\0A\00"
@.str.4 = [28 x i8] c"Continuing with hexdump...\0A\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [2 x i8] c"\0A\00"
define void @decode(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [70000 x i8]
store i32* %0, i32** %2
store i32 0, i32* %5
%7 = load i32*, i32** %2
%8 = call i32 @getc(i32* %7)
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = load i32, i32* @EOF
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %136
14: ; preds = %1
%15 = load i32, i32* %3
%16 = load i32*, i32** %2
%17 = call i32 @ungetc(i32 %15, i32* %16)
%18 = load i32, i32* %3
%19 = icmp eq i32 %18, 27
br i1 %19, label %20, label %60
20: ; preds = %14
br label %21
21: ; preds = %58, %20
%22 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%23 = load i32*, i32** %2
%24 = call i64 @fgets(i8* %22, i32 70000, i32* %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %59
26: ; preds = %21
%27 = load i32, i32* %5
%28 = call i32 @proff(i32 %27)
%29 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 27
br i1 %32, label %33, label %39
33: ; preds = %26
%34 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%35 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%36 = getelementptr inbounds i8, i8* %35, i64 1
%37 = load i32, i32* @stdout
%38 = call i32 @fputs(i8* %36, i32 %37)
br label %43
39: ; preds = %26
%40 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%41 = load i32, i32* @stdout
%42 = call i32 @fputs(i8* %40, i32 %41)
br label %43
43: ; preds = %39, %33
%44 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%45 = call i64 @strlen(i8* %44)
%46 = load i32, i32* %5
%47 = sext i32 %46 to i64
%48 = add nsw i64 %47, %45
%49 = trunc i64 %48 to i32
store i32 %49, i32* %5
%50 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %57, label %53
53: ; preds = %43
%54 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53, %43
br label %59
58: ; preds = %53
br label %21
59: ; preds = %57, %21
br label %60
60: ; preds = %59, %14
%61 = load i32*, i32** %2
%62 = call i32 @getc(i32* %61)
store i32 %62, i32* %3
%63 = load i32, i32* %3
%64 = load i32*, i32** %2
%65 = call i32 @ungetc(i32 %63, i32* %64)
%66 = load i32, i32* %3
%67 = icmp eq i32 %66, 27
br i1 %67, label %68, label %72
68: ; preds = %60
%69 = load i32*, i32** %2
%70 = load i32, i32* %5
%71 = call i32 @decode2(i32* %69, i32 %70)
br label %90
72: ; preds = %60
%73 = load i32*, i32** %2
%74 = call i64 @parse1(i32* %73, i32* %5)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %89
76: ; preds = %72
%77 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%78 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%79 = load i32*, i32** %2
%80 = call i32 @fread(i8* %78, i32 1, i32 70000, i32* %79)
store i32 %80, i32* %4
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %76
%83 = load i32, i32* @stdout
%84 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%85 = load i32, i32* %4
%86 = call i32 @hexdump(i32 %83, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8* %84, i32 %85)
br label %87
87: ; preds = %82, %76
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %72
br label %90
90: ; preds = %89, %68
%91 = load i32*, i32** %2
%92 = call i32 @fgetc(i32* %91)
store i32 %92, i32* %3
%93 = load i32, i32* %3
%94 = icmp ne i32 %93, 27
br i1 %94, label %95, label %96
95: ; preds = %90
br label %136
96: ; preds = %90
%97 = load i32, i32* %3
%98 = load i32*, i32** %2
%99 = call i32 @ungetc(i32 %97, i32* %98)
br label %100
100: ; preds = %133, %96
%101 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%102 = load i32*, i32** %2
%103 = call i64 @fgets(i8* %101, i32 70000, i32* %102)
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %134
105: ; preds = %100
%106 = load i32, i32* %5
%107 = call i32 @proff(i32 %106)
%108 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 27
br i1 %111, label %112, label %118
112: ; preds = %105
%113 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%114 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%115 = getelementptr inbounds i8, i8* %114, i64 1
%116 = load i32, i32* @stdout
%117 = call i32 @fputs(i8* %115, i32 %116)
br label %122
118: ; preds = %105
%119 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%120 = load i32, i32* @stdout
%121 = call i32 @fputs(i8* %119, i32 %120)
br label %122
122: ; preds = %118, %112
%123 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%124 = call i64 @strlen(i8* %123)
%125 = load i32, i32* %5
%126 = sext i32 %125 to i64
%127 = add nsw i64 %126, %124
%128 = trunc i64 %127 to i32
store i32 %128, i32* %5
%129 = getelementptr inbounds [70000 x i8], [70000 x i8]* %6, i64 0, i64 0
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %133
132: ; preds = %122
br label %134
133: ; preds = %122
br label %100
134: ; preds = %132, %100
%135 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %136
136: ; preds = %134, %95, %12
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
@.str.1 = [5 x i8] c"\\033\00"
@stdout = global i32 0
@.str.2 = [27 x i8] c"@PJL ENTER LANGUAGE=HBPL\0D\0A\00"
@.str.3 = [26 x i8] c"@PJL ENTER LANGUAGE=HBPL\0A\00"
@.str.5 = [1 x i8] zeroinitializer
@str = [27 x i8] c"Continuing with hexdump...\00"
@str.7 = [12 x i8] c"EOF on file\00"
define void @decode(i32* %0) {
%2 = alloca i32
%3 = alloca [70000 x i8]
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = getelementptr inbounds [70000 x i8], [70000 x i8]* %3, i64 0, i64 0
%6 = tail call i32 @getc(i32* %0)
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.7, i64 0, i64 0))
br label %85
11: ; preds = %1
%12 = tail call i32 @ungetc(i32 %6, i32* %0)
%13 = icmp eq i32 %6, 27
br i1 %13, label %14, label %38
14: ; preds = %11
%15 = getelementptr inbounds [70000 x i8], [70000 x i8]* %3, i64 0, i64 1
br label %16
16: ; preds = %14, %35
%17 = phi i32 [ 0, %14 ], [ %32, %35 ]
%18 = call i64 @fgets(i8* %5, i32 70000, i32* %0)
%19 = icmp eq i64 %18, 0
br i1 %19, label %38, label %20
20: ; preds = %16
%21 = call i32 @proff(i32 %17)
%22 = load i8, i8* %5
%23 = icmp eq i8 %22, 27
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %26
26: ; preds = %20, %24
%27 = phi i8* [ %15, %24 ], [ %5, %20 ]
%28 = load i32, i32* @stdout
%29 = call i32 @fputs(i8* %27, i32 %28)
%30 = call i64 @strlen(i8* %5)
%31 = trunc i64 %30 to i32
%32 = add i32 %17, %31
store i32 %32, i32* %2
%33 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %26
%36 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %16
38: ; preds = %16, %35, %26, %11
%39 = phi i32 [ 0, %11 ], [ %17, %16 ], [ %32, %35 ], [ %32, %26 ]
%40 = call i32 @getc(i32* %0)
%41 = call i32 @ungetc(i32 %40, i32* %0)
%42 = icmp eq i32 %40, 27
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 @decode2(i32* %0, i32 %39)
br label %57
45: ; preds = %38
%46 = call i64 @parse1(i32* %0, i32* %2)
%47 = icmp eq i64 %46, 0
br i1 %47, label %57, label %48
48: ; preds = %45
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%50 = call i32 @fread(i8* %5, i32 1, i32 70000, i32* %0)
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %48
%53 = load i32, i32* @stdout
%54 = call i32 @hexdump(i32 %53, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8* %5, i32 %50)
br label %55
55: ; preds = %52, %48
%56 = call i32 @exit(i32 1)
unreachable
57: ; preds = %45, %43
%58 = call i32 @fgetc(i32* %0)
%59 = icmp eq i32 %58, 27
br i1 %59, label %60, label %85
60: ; preds = %57
%61 = call i32 @ungetc(i32 27, i32* %0)
%62 = getelementptr inbounds [70000 x i8], [70000 x i8]* %3, i64 0, i64 1
br label %63
63: ; preds = %73, %60
%64 = call i64 @fgets(i8* %5, i32 70000, i32* %0)
%65 = icmp eq i64 %64, 0
br i1 %65, label %83, label %66
66: ; preds = %63
%67 = load i32, i32* %2
%68 = call i32 @proff(i32 %67)
%69 = load i8, i8* %5
%70 = icmp eq i8 %69, 27
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %73
73: ; preds = %66, %71
%74 = phi i8* [ %62, %71 ], [ %5, %66 ]
%75 = load i32, i32* @stdout
%76 = call i32 @fputs(i8* %74, i32 %75)
%77 = call i64 @strlen(i8* %5)
%78 = load i32, i32* %2
%79 = trunc i64 %77 to i32
%80 = add i32 %78, %79
store i32 %80, i32* %2
%81 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %63
83: ; preds = %73, %63
%84 = call i32 @putchar(i32 10)
br label %85
85: ; preds = %57, %83, %9
ret void
}