#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 /*<<< orphan*/ cbc(unsigned char *, unsigned char const *);
scalar_t__ isprint(unsigned char);
int /*<<< orphan*/ isvalid(unsigned char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rc2_decrypt(unsigned short *, unsigned char *,
                               unsigned char const *);
int /*<<< orphan*/ rc2_keyschedule(unsigned short *, unsigned char const *, int,
                                   int);
__attribute__((always_)) int check(const unsigned char *cipher,
                                   const unsigned char *iv,
                                   const unsigned char *key) {
  unsigned short xkey[64];
  unsigned char plain[32];
  int i;
  rc2_keyschedule(xkey, key, 5, 40);
  rc2_decrypt(xkey, plain, cipher);
  cbc(plain, iv);
  for (i = 0; i < 8; i++)
    if (!isvalid(plain[i]))
      return 0;
  rc2_decrypt(xkey, plain + 8, cipher + 8);
  cbc(plain + 8, cipher);
  for (i = 8; i < 16; i++)
    if (!isvalid(plain[i]))
      return 0;
  rc2_decrypt(xkey, plain + 16, cipher + 16);
  cbc(plain + 16, cipher + 8);
  for (i = 16; i < 24; i++)
    if (!isvalid(plain[i]))
      return 0;
  rc2_decrypt(xkey, plain + 24, cipher + 24);
  cbc(plain + 24, cipher + 16);
  for (i = 24; i < 32; i++)
    if (!isvalid(plain[i]))
      return 0;
  printf("%6s: %02x%02x%02x%02x%02x  ", "Key", key[0], key[1], key[2], key[3],
         key[4]);
  for (i = 0; i < 32; i++)
    printf("%02x", plain[i]);
  printf("  |");
  for (i = 0; i < 32; i++)
    printf("%c", isprint(plain[i]) ? plain[i] : '.');
  printf("|\n");
  return 1;
}


x86 assembly (clang, -O0):
<check>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x5,%edx
mov    $0x28,%ecx
call   1030 <rc2_keyschedule@plt>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1070 <rc2_decrypt@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1080 <cbc@plt>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x8,-0xc4(%rbp)
jge    1211 <check+0xb1>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%edi
ff
call   1040 <isvalid@plt>
cmp    $0x0,%eax
jne    11f8 <check+0x98>
movl   $0x0,-0x4(%rbp)
jmp    14f0 <check+0x390>
jmp    11fd <check+0x9d>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    11c2 <check+0x62>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
add    $0x8,%rsi
mov    -0x10(%rbp),%rdx
add    $0x8,%rdx
call   1070 <rc2_decrypt@plt>
lea    -0xc0(%rbp),%rdi
add    $0x8,%rdi
mov    -0x10(%rbp),%rsi
call   1080 <cbc@plt>
movl   $0x8,-0xc4(%rbp)
cmpl   $0x10,-0xc4(%rbp)
jge    129d <check+0x13d>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%edi
ff
call   1040 <isvalid@plt>
cmp    $0x0,%eax
jne    1284 <check+0x124>
movl   $0x0,-0x4(%rbp)
jmp    14f0 <check+0x390>
jmp    1289 <check+0x129>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    124e <check+0xee>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
add    $0x10,%rsi
mov    -0x10(%rbp),%rdx
add    $0x10,%rdx
call   1070 <rc2_decrypt@plt>
lea    -0xc0(%rbp),%rdi
add    $0x10,%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1080 <cbc@plt>
movl   $0x10,-0xc4(%rbp)
cmpl   $0x18,-0xc4(%rbp)
jge    132d <check+0x1cd>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%edi
ff
call   1040 <isvalid@plt>
cmp    $0x0,%eax
jne    1314 <check+0x1b4>
movl   $0x0,-0x4(%rbp)
jmp    14f0 <check+0x390>
jmp    1319 <check+0x1b9>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    12de <check+0x17e>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
add    $0x18,%rsi
mov    -0x10(%rbp),%rdx
add    $0x18,%rdx
call   1070 <rc2_decrypt@plt>
lea    -0xc0(%rbp),%rdi
add    $0x18,%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1080 <cbc@plt>
movl   $0x18,-0xc4(%rbp)
cmpl   $0x20,-0xc4(%rbp)
jge    13bd <check+0x25d>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%edi
ff
call   1040 <isvalid@plt>
cmp    $0x0,%eax
jne    13a4 <check+0x244>
movl   $0x0,-0x4(%rbp)
jmp    14f0 <check+0x390>
jmp    13a9 <check+0x249>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    136e <check+0x20e>
mov    -0x20(%rbp),%rax
movzbl (%rax),%edx
mov    -0x20(%rbp),%rax
movzbl 0x1(%rax),%ecx
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%r8d
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%r9d
mov    -0x20(%rbp),%rax
movzbl 0x4(%rax),%eax
lea    0xc13(%rip),%rdi
lea    0xc28(%rip),%rsi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x20,-0xc4(%rbp)
jge    1446 <check+0x2e6>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%esi
ff
lea    0xbf5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1408 <check+0x2a8>
lea    0xbd8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x20,-0xc4(%rbp)
jge    14db <check+0x37b>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%edi
ff
call   1060 <isprint@plt>
cmp    $0x0,%rax
je     14a3 <check+0x343>
movslq -0xc4(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%eax
ff
mov    %eax,-0xc8(%rbp)
jmp    14b3 <check+0x353>
mov    $0x2e,%eax
mov    %eax,-0xc8(%rbp)
jmp    14b3 <check+0x353>
mov    -0xc8(%rbp),%esi
lea    0xb69(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    145e <check+0x2fe>
lea    0xb4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    %rdx,%rsi
mov    $0x5,%edx
mov    $0x28,%ecx
call   1030 <rc2_keyschedule@plt>
lea    0x10(%rsp),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1090 <rc2_decrypt@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10a0 <cbc@plt>
movzbl 0x10(%rsp),%edi
call   1050 <isvalid@plt>
xor    %r14d,%r14d
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x11(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x12(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x13(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x14(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x15(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x16(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x17(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
lea    0x18(%rsp),%rbx
lea    0x8(%r15),%r12
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1090 <rc2_decrypt@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10a0 <cbc@plt>
movzbl 0x18(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x19(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1a(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1b(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1c(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1d(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1e(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x1f(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
lea    0x20(%rsp),%rbp
lea    0x10(%r15),%rbx
lea    0x30(%rsp),%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1090 <rc2_decrypt@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10a0 <cbc@plt>
movzbl 0x20(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x21(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x22(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x23(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x24(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x25(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x26(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x27(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
lea    0x28(%rsp),%rbp
add    $0x18,%r15
lea    0x30(%rsp),%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1090 <rc2_decrypt@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10a0 <cbc@plt>
movzbl 0x28(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x29(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2a(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2b(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2c(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2d(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2e(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x2f(%rsp),%edi
call   1050 <isvalid@plt>
test   %eax,%eax
je     16e7 <check+0x567>
movzbl 0x0(%r13),%edx
movzbl 0x1(%r13),%ecx
movzbl 0x2(%r13),%r8d
movzbl 0x3(%r13),%r9d
movzbl 0x4(%r13),%eax
mov    %eax,(%rsp)
lea    0xb5c(%rip),%rdi
lea    0xb71(%rip),%rsi
xor    %ebp,%ebp
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x10(%rsp),%esi
lea    0xb60(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x19(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x21(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x22(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x23(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x25(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x26(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x27(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x29(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x983(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    16bf <check+0x53f>
movzbl 0x10(%rsp,%rbp,1),%edi
call   1040 <putchar@plt>
add    $0x1,%rbp
cmp    $0x20,%rbp
je     16d5 <check+0x555>
movzbl 0x10(%rsp,%rbp,1),%edi
call   1080 <isprint@plt>
test   %rax,%rax
jne    16ab <check+0x52b>
mov    $0x2e,%edi
jmp    16b0 <check+0x530>
lea    0x94b(%rip),%rdi
call   1060 <puts@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"%6s: %02x%02x%02x%02x%02x \00"
@.str.1 = [4 x i8] c"Key\00"
@.str.2 = [5 x i8] c"%02x\00"
@.str.3 = [4 x i8] c" |\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [3 x i8] c"|\0A\00"
define i32 @check(i8* %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [64 x i16]
%9 = alloca [32 x i8]
%10 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%11 = getelementptr inbounds [64 x i16], [64 x i16]* %8, i64 0, i64 0
%12 = load i8*, i8** %7
%13 = call i32 @rc2_keyschedule(i16* %11, i8* %12, i32 5, i32 40)
%14 = getelementptr inbounds [64 x i16], [64 x i16]* %8, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%16 = load i8*, i8** %5
%17 = call i32 @rc2_decrypt(i16* %14, i8* %15, i8* %16)
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%19 = load i8*, i8** %6
%20 = call i32 @cbc(i8* %18, i8* %19)
store i32 0, i32* %10
br label %21
21: ; preds = %33, %3
%22 = load i32, i32* %10
%23 = icmp slt i32 %22, 8
br i1 %23, label %24, label %36
24: ; preds = %21
%25 = load i32, i32* %10
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = call i32 @isvalid(i8 zeroext %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %24
store i32 0, i32* %4
br label %178
32: ; preds = %24
br label %33
33: ; preds = %32
%34 = load i32, i32* %10
%35 = add nsw i32 %34, 1
store i32 %35, i32* %10
br label %21
36: ; preds = %21
%37 = getelementptr inbounds [64 x i16], [64 x i16]* %8, i64 0, i64 0
%38 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%39 = getelementptr inbounds i8, i8* %38, i64 8
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i64 8
%42 = call i32 @rc2_decrypt(i16* %37, i8* %39, i8* %41)
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%44 = getelementptr inbounds i8, i8* %43, i64 8
%45 = load i8*, i8** %5
%46 = call i32 @cbc(i8* %44, i8* %45)
store i32 8, i32* %10
br label %47
47: ; preds = %59, %36
%48 = load i32, i32* %10
%49 = icmp slt i32 %48, 16
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = load i32, i32* %10
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %52
%54 = load i8, i8* %53
%55 = call i32 @isvalid(i8 zeroext %54)
%56 = icmp ne i32 %55, 0
br i1 %56, label %58, label %57
57: ; preds = %50
store i32 0, i32* %4
br label %178
58: ; preds = %50
br label %59
59: ; preds = %58
%60 = load i32, i32* %10
%61 = add nsw i32 %60, 1
store i32 %61, i32* %10
br label %47
62: ; preds = %47
%63 = getelementptr inbounds [64 x i16], [64 x i16]* %8, i64 0, i64 0
%64 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%65 = getelementptr inbounds i8, i8* %64, i64 16
%66 = load i8*, i8** %5
%67 = getelementptr inbounds i8, i8* %66, i64 16
%68 = call i32 @rc2_decrypt(i16* %63, i8* %65, i8* %67)
%69 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%70 = getelementptr inbounds i8, i8* %69, i64 16
%71 = load i8*, i8** %5
%72 = getelementptr inbounds i8, i8* %71, i64 8
%73 = call i32 @cbc(i8* %70, i8* %72)
store i32 16, i32* %10
br label %74
74: ; preds = %86, %62
%75 = load i32, i32* %10
%76 = icmp slt i32 %75, 24
br i1 %76, label %77, label %89
77: ; preds = %74
%78 = load i32, i32* %10
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %79
%81 = load i8, i8* %80
%82 = call i32 @isvalid(i8 zeroext %81)
%83 = icmp ne i32 %82, 0
br i1 %83, label %85, label %84
84: ; preds = %77
store i32 0, i32* %4
br label %178
85: ; preds = %77
br label %86
86: ; preds = %85
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %74
89: ; preds = %74
%90 = getelementptr inbounds [64 x i16], [64 x i16]* %8, i64 0, i64 0
%91 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%92 = getelementptr inbounds i8, i8* %91, i64 24
%93 = load i8*, i8** %5
%94 = getelementptr inbounds i8, i8* %93, i64 24
%95 = call i32 @rc2_decrypt(i16* %90, i8* %92, i8* %94)
%96 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%97 = getelementptr inbounds i8, i8* %96, i64 24
%98 = load i8*, i8** %5
%99 = getelementptr inbounds i8, i8* %98, i64 16
%100 = call i32 @cbc(i8* %97, i8* %99)
store i32 24, i32* %10
br label %101
101: ; preds = %113, %89
%102 = load i32, i32* %10
%103 = icmp slt i32 %102, 32
br i1 %103, label %104, label %116
104: ; preds = %101
%105 = load i32, i32* %10
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %106
%108 = load i8, i8* %107
%109 = call i32 @isvalid(i8 zeroext %108)
%110 = icmp ne i32 %109, 0
br i1 %110, label %112, label %111
111: ; preds = %104
store i32 0, i32* %4
br label %178
112: ; preds = %104
br label %113
113: ; preds = %112
%114 = load i32, i32* %10
%115 = add nsw i32 %114, 1
store i32 %115, i32* %10
br label %101
116: ; preds = %101
%117 = load i8*, i8** %7
%118 = getelementptr inbounds i8, i8* %117, i64 0
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = load i8*, i8** %7
%122 = getelementptr inbounds i8, i8* %121, i64 1
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = load i8*, i8** %7
%126 = getelementptr inbounds i8, i8* %125, i64 2
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = load i8*, i8** %7
%130 = getelementptr inbounds i8, i8* %129, i64 3
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = load i8*, i8** %7
%134 = getelementptr inbounds i8, i8* %133, i64 4
%135 = load i8, i8* %134
%136 = zext i8 %135 to i32
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %120, i32 %124, i32 %128, i32 %132, i32 %136)
store i32 0, i32* %10
br label %138
138: ; preds = %148, %116
%139 = load i32, i32* %10
%140 = icmp slt i32 %139, 32
br i1 %140, label %141, label %151
141: ; preds = %138
%142 = load i32, i32* %10
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %143
%145 = load i8, i8* %144
%146 = zext i8 %145 to i32
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %146)
br label %148
148: ; preds = %141
%149 = load i32, i32* %10
%150 = add nsw i32 %149, 1
store i32 %150, i32* %10
br label %138
151: ; preds = %138
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %10
br label %153
153: ; preds = %173, %151
%154 = load i32, i32* %10
%155 = icmp slt i32 %154, 32
br i1 %155, label %156, label %176
156: ; preds = %153
%157 = load i32, i32* %10
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %158
%160 = load i8, i8* %159
%161 = call i64 @isprint(i8 zeroext %160)
%162 = icmp ne i64 %161, 0
br i1 %162, label %163, label %169
163: ; preds = %156
%164 = load i32, i32* %10
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 %165
%167 = load i8, i8* %166
%168 = zext i8 %167 to i32
br label %170
169: ; preds = %156
br label %170
170: ; preds = %169, %163
%171 = phi i32 [ %168, %163 ], [ 46, %169 ]
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %171)
br label %173
173: ; preds = %170
%174 = load i32, i32* %10
%175 = add nsw i32 %174, 1
store i32 %175, i32* %10
br label %153
176: ; preds = %153
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %4
br label %178
178: ; preds = %176, %111, %84, %57, %31
%179 = load i32, i32* %4
ret i32 %179
}

LLVM IR (-O2):
@.str = [28 x i8] c"%6s: %02x%02x%02x%02x%02x \00"
@.str.1 = [4 x i8] c"Key\00"
@.str.2 = [5 x i8] c"%02x\00"
@.str.3 = [4 x i8] c" |\00"
@str = [2 x i8] c"|\00"
define i32 @check(i8* %0, i8* %1, i8* %2) {
%4 = alloca [64 x i16]
%5 = alloca [32 x i8]
%6 = bitcast [64 x i16]* %4 to i8*
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [64 x i16], [64 x i16]* %4, i64 0, i64 0
%9 = call i32 @rc2_keyschedule(i16* %8, i8* %2, i32 5, i32 40)
%10 = call i32 @rc2_decrypt(i16* %8, i8* %7, i8* %0)
%11 = call i32 @cbc(i8* %7, i8* %1)
%12 = load i8, i8* %7
%13 = call i32 @isvalid(i8 zeroext %12)
%14 = icmp eq i32 %13, 0
br i1 %14, label %308, label %15
15: ; preds = %3
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 1
%17 = load i8, i8* %16
%18 = call i32 @isvalid(i8 zeroext %17)
%19 = icmp eq i32 %18, 0
br i1 %19, label %308, label %20
20: ; preds = %15
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 2
%22 = load i8, i8* %21
%23 = call i32 @isvalid(i8 zeroext %22)
%24 = icmp eq i32 %23, 0
br i1 %24, label %308, label %25
25: ; preds = %20
%26 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 3
%27 = load i8, i8* %26
%28 = call i32 @isvalid(i8 zeroext %27)
%29 = icmp eq i32 %28, 0
br i1 %29, label %308, label %30
30: ; preds = %25
%31 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 4
%32 = load i8, i8* %31
%33 = call i32 @isvalid(i8 zeroext %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %308, label %35
35: ; preds = %30
%36 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 5
%37 = load i8, i8* %36
%38 = call i32 @isvalid(i8 zeroext %37)
%39 = icmp eq i32 %38, 0
br i1 %39, label %308, label %40
40: ; preds = %35
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 6
%42 = load i8, i8* %41
%43 = call i32 @isvalid(i8 zeroext %42)
%44 = icmp eq i32 %43, 0
br i1 %44, label %308, label %45
45: ; preds = %40
%46 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 7
%47 = load i8, i8* %46
%48 = call i32 @isvalid(i8 zeroext %47)
%49 = icmp eq i32 %48, 0
br i1 %49, label %308, label %50
50: ; preds = %45
%51 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 8
%52 = getelementptr inbounds i8, i8* %0, i64 8
%53 = call i32 @rc2_decrypt(i16* %8, i8* %51, i8* %52)
%54 = call i32 @cbc(i8* %51, i8* %0)
%55 = load i8, i8* %51
%56 = call i32 @isvalid(i8 zeroext %55)
%57 = icmp eq i32 %56, 0
br i1 %57, label %308, label %58
58: ; preds = %50
%59 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 9
%60 = load i8, i8* %59
%61 = call i32 @isvalid(i8 zeroext %60)
%62 = icmp eq i32 %61, 0
br i1 %62, label %308, label %63
63: ; preds = %58
%64 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 10
%65 = load i8, i8* %64
%66 = call i32 @isvalid(i8 zeroext %65)
%67 = icmp eq i32 %66, 0
br i1 %67, label %308, label %68
68: ; preds = %63
%69 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 11
%70 = load i8, i8* %69
%71 = call i32 @isvalid(i8 zeroext %70)
%72 = icmp eq i32 %71, 0
br i1 %72, label %308, label %73
73: ; preds = %68
%74 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 12
%75 = load i8, i8* %74
%76 = call i32 @isvalid(i8 zeroext %75)
%77 = icmp eq i32 %76, 0
br i1 %77, label %308, label %78
78: ; preds = %73
%79 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 13
%80 = load i8, i8* %79
%81 = call i32 @isvalid(i8 zeroext %80)
%82 = icmp eq i32 %81, 0
br i1 %82, label %308, label %83
83: ; preds = %78
%84 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 14
%85 = load i8, i8* %84
%86 = call i32 @isvalid(i8 zeroext %85)
%87 = icmp eq i32 %86, 0
br i1 %87, label %308, label %88
88: ; preds = %83
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 15
%90 = load i8, i8* %89
%91 = call i32 @isvalid(i8 zeroext %90)
%92 = icmp eq i32 %91, 0
br i1 %92, label %308, label %93
93: ; preds = %88
%94 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 16
%95 = getelementptr inbounds i8, i8* %0, i64 16
%96 = call i32 @rc2_decrypt(i16* %8, i8* %94, i8* %95)
%97 = call i32 @cbc(i8* %94, i8* %52)
%98 = load i8, i8* %94
%99 = call i32 @isvalid(i8 zeroext %98)
%100 = icmp eq i32 %99, 0
br i1 %100, label %308, label %101
101: ; preds = %93
%102 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 17
%103 = load i8, i8* %102
%104 = call i32 @isvalid(i8 zeroext %103)
%105 = icmp eq i32 %104, 0
br i1 %105, label %308, label %106
106: ; preds = %101
%107 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 18
%108 = load i8, i8* %107
%109 = call i32 @isvalid(i8 zeroext %108)
%110 = icmp eq i32 %109, 0
br i1 %110, label %308, label %111
111: ; preds = %106
%112 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 19
%113 = load i8, i8* %112
%114 = call i32 @isvalid(i8 zeroext %113)
%115 = icmp eq i32 %114, 0
br i1 %115, label %308, label %116
116: ; preds = %111
%117 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 20
%118 = load i8, i8* %117
%119 = call i32 @isvalid(i8 zeroext %118)
%120 = icmp eq i32 %119, 0
br i1 %120, label %308, label %121
121: ; preds = %116
%122 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 21
%123 = load i8, i8* %122
%124 = call i32 @isvalid(i8 zeroext %123)
%125 = icmp eq i32 %124, 0
br i1 %125, label %308, label %126
126: ; preds = %121
%127 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 22
%128 = load i8, i8* %127
%129 = call i32 @isvalid(i8 zeroext %128)
%130 = icmp eq i32 %129, 0
br i1 %130, label %308, label %131
131: ; preds = %126
%132 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 23
%133 = load i8, i8* %132
%134 = call i32 @isvalid(i8 zeroext %133)
%135 = icmp eq i32 %134, 0
br i1 %135, label %308, label %136
136: ; preds = %131
%137 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 24
%138 = getelementptr inbounds i8, i8* %0, i64 24
%139 = call i32 @rc2_decrypt(i16* %8, i8* %137, i8* %138)
%140 = call i32 @cbc(i8* %137, i8* %95)
%141 = load i8, i8* %137
%142 = call i32 @isvalid(i8 zeroext %141)
%143 = icmp eq i32 %142, 0
br i1 %143, label %308, label %144
144: ; preds = %136
%145 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 25
%146 = load i8, i8* %145
%147 = call i32 @isvalid(i8 zeroext %146)
%148 = icmp eq i32 %147, 0
br i1 %148, label %308, label %149
149: ; preds = %144
%150 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 26
%151 = load i8, i8* %150
%152 = call i32 @isvalid(i8 zeroext %151)
%153 = icmp eq i32 %152, 0
br i1 %153, label %308, label %154
154: ; preds = %149
%155 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 27
%156 = load i8, i8* %155
%157 = call i32 @isvalid(i8 zeroext %156)
%158 = icmp eq i32 %157, 0
br i1 %158, label %308, label %159
159: ; preds = %154
%160 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 28
%161 = load i8, i8* %160
%162 = call i32 @isvalid(i8 zeroext %161)
%163 = icmp eq i32 %162, 0
br i1 %163, label %308, label %164
164: ; preds = %159
%165 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 29
%166 = load i8, i8* %165
%167 = call i32 @isvalid(i8 zeroext %166)
%168 = icmp eq i32 %167, 0
br i1 %168, label %308, label %169
169: ; preds = %164
%170 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 30
%171 = load i8, i8* %170
%172 = call i32 @isvalid(i8 zeroext %171)
%173 = icmp eq i32 %172, 0
br i1 %173, label %308, label %174
174: ; preds = %169
%175 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 31
%176 = load i8, i8* %175
%177 = call i32 @isvalid(i8 zeroext %176)
%178 = icmp eq i32 %177, 0
br i1 %178, label %308, label %179
179: ; preds = %174
%180 = load i8, i8* %2
%181 = zext i8 %180 to i32
%182 = getelementptr inbounds i8, i8* %2, i64 1
%183 = load i8, i8* %182
%184 = zext i8 %183 to i32
%185 = getelementptr inbounds i8, i8* %2, i64 2
%186 = load i8, i8* %185
%187 = zext i8 %186 to i32
%188 = getelementptr inbounds i8, i8* %2, i64 3
%189 = load i8, i8* %188
%190 = zext i8 %189 to i32
%191 = getelementptr inbounds i8, i8* %2, i64 4
%192 = load i8, i8* %191
%193 = zext i8 %192 to i32
%194 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %181, i32 %184, i32 %187, i32 %190, i32 %193)
%195 = load i8, i8* %7
%196 = zext i8 %195 to i32
%197 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %196)
%198 = load i8, i8* %16
%199 = zext i8 %198 to i32
%200 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %199)
%201 = load i8, i8* %21
%202 = zext i8 %201 to i32
%203 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %202)
%204 = load i8, i8* %26
%205 = zext i8 %204 to i32
%206 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %205)
%207 = load i8, i8* %31
%208 = zext i8 %207 to i32
%209 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %208)
%210 = load i8, i8* %36
%211 = zext i8 %210 to i32
%212 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %211)
%213 = load i8, i8* %41
%214 = zext i8 %213 to i32
%215 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %214)
%216 = load i8, i8* %46
%217 = zext i8 %216 to i32
%218 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %217)
%219 = load i8, i8* %51
%220 = zext i8 %219 to i32
%221 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %220)
%222 = load i8, i8* %59
%223 = zext i8 %222 to i32
%224 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %223)
%225 = load i8, i8* %64
%226 = zext i8 %225 to i32
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %226)
%228 = load i8, i8* %69
%229 = zext i8 %228 to i32
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %229)
%231 = load i8, i8* %74
%232 = zext i8 %231 to i32
%233 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %232)
%234 = load i8, i8* %79
%235 = zext i8 %234 to i32
%236 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %235)
%237 = load i8, i8* %84
%238 = zext i8 %237 to i32
%239 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %238)
%240 = load i8, i8* %89
%241 = zext i8 %240 to i32
%242 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %241)
%243 = load i8, i8* %94
%244 = zext i8 %243 to i32
%245 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %244)
%246 = load i8, i8* %102
%247 = zext i8 %246 to i32
%248 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %247)
%249 = load i8, i8* %107
%250 = zext i8 %249 to i32
%251 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %250)
%252 = load i8, i8* %112
%253 = zext i8 %252 to i32
%254 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %253)
%255 = load i8, i8* %117
%256 = zext i8 %255 to i32
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %256)
%258 = load i8, i8* %122
%259 = zext i8 %258 to i32
%260 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %259)
%261 = load i8, i8* %127
%262 = zext i8 %261 to i32
%263 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %262)
%264 = load i8, i8* %132
%265 = zext i8 %264 to i32
%266 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %265)
%267 = load i8, i8* %137
%268 = zext i8 %267 to i32
%269 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %268)
%270 = load i8, i8* %145
%271 = zext i8 %270 to i32
%272 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %271)
%273 = load i8, i8* %150
%274 = zext i8 %273 to i32
%275 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %274)
%276 = load i8, i8* %155
%277 = zext i8 %276 to i32
%278 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %277)
%279 = load i8, i8* %160
%280 = zext i8 %279 to i32
%281 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %280)
%282 = load i8, i8* %165
%283 = zext i8 %282 to i32
%284 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %283)
%285 = load i8, i8* %170
%286 = zext i8 %285 to i32
%287 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %286)
%288 = load i8, i8* %175
%289 = zext i8 %288 to i32
%290 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %289)
%291 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %292
292: ; preds = %179, %301
%293 = phi i64 [ 0, %179 ], [ %304, %301 ]
%294 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 %293
%295 = load i8, i8* %294
%296 = call i64 @isprint(i8 zeroext %295)
%297 = icmp eq i64 %296, 0
br i1 %297, label %301, label %298
298: ; preds = %292
%299 = load i8, i8* %294
%300 = zext i8 %299 to i32
br label %301
301: ; preds = %292, %298
%302 = phi i32 [ %300, %298 ], [ 46, %292 ]
%303 = call i32 @putchar(i32 %302)
%304 = add nuw nsw i64 %293, 1
%305 = icmp eq i64 %304, 32
br i1 %305, label %306, label %292
306: ; preds = %301
%307 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %308
308: ; preds = %3, %15, %20, %25, %30, %35, %40, %45, %50, %58, %63, %68, %73, %78, %83, %88, %93, %101, %106, %111, %116, %121, %126, %131, %136, %144, %149, %154, %159, %164, %169, %174, %306
%309 = phi i32 [ 1, %306 ], [ 0, %174 ], [ 0, %169 ], [ 0, %164 ], [ 0, %159 ], [ 0, %154 ], [ 0, %149 ], [ 0, %144 ], [ 0, %136 ], [ 0, %131 ], [ 0, %126 ], [ 0, %121 ], [ 0, %116 ], [ 0, %111 ], [ 0, %106 ], [ 0, %101 ], [ 0, %93 ], [ 0, %88 ], [ 0, %83 ], [ 0, %78 ], [ 0, %73 ], [ 0, %68 ], [ 0, %63 ], [ 0, %58 ], [ 0, %50 ], [ 0, %45 ], [ 0, %40 ], [ 0, %35 ], [ 0, %30 ], [ 0, %25 ], [ 0, %20 ], [ 0, %15 ], [ 0, %3 ]
ret i32 %309
}