#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*/ b64_decode(char *, char *, size_t);
int b64_get_ascii_wc(size_t);
unsigned char detect_key_single_line(char *, unsigned int);
scalar_t__ find_keysize(char *, size_t, unsigned int *, int, int, int);
int /*<<< orphan*/ free(unsigned char *);
int /*<<< orphan*/ load_file(char *, char **, size_t *);
unsigned char *malloc(unsigned int);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, size_t);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, size_t);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  unsigned int i, k;
  unsigned int keysizes[5];
  unsigned char *encdata, *tencdata, *decdata;
  unsigned int blksize, blkcount;
  unsigned int blkidx, charidx;
  unsigned char *pkey;
  size_t b64encdatalen, encdatalen;
  if (argc < 2)
    return 0x1;
  if (!load_file(argv[1], (char **)&encdata, &b64encdatalen)) {
    free(encdata);
    return 0x2;
  }
  encdatalen = 1 + b64_get_ascii_wc(b64encdatalen);
  decdata = malloc(encdatalen * sizeof(*encdata));
  if (NULL == decdata) {
    free(encdata);
    return 0x2;
  }
  memset(decdata, 0, encdatalen * sizeof(*encdata));
  b64_decode((char *)decdata, (char *)encdata, b64encdatalen);
  memcpy(encdata, decdata, (encdatalen - 1) * sizeof(*encdata));
  encdata[encdatalen] = '\0';
  memset(decdata, 0, encdatalen * sizeof(*encdata));
  if (find_keysize((char *)encdata, encdatalen, keysizes, 5, 2, 50)) {
    free(encdata);
    return 0x2;
  }
  tencdata = malloc(encdatalen * sizeof(*encdata));
  if (NULL == tencdata) {
    free(encdata);
    free(decdata);
    return 0x2;
  }
  memset(tencdata, 0, encdatalen * sizeof(*encdata));
  for (i = 0; i < 5; i++) {
    blksize = keysizes[i];
    blkcount = (int)(encdatalen / (float)blksize);
    printf("\n-----------\nKeylen :%d \n", blksize);
    printf("Blkcount :%d \n-----------\n", blkcount);
    for (blkidx = 0; blkidx < blkcount; blkidx++)
      for (charidx = 0; charidx < blksize; charidx++)
        tencdata[charidx * blkcount + blkidx] =
            encdata[blkidx * blksize + charidx];
    pkey = malloc((blksize + 1) * sizeof(*pkey));
    if (NULL == pkey) {
      free(encdata);
      free(tencdata);
      free(decdata);
    }
    printf("Key estimate : ");
    for (k = 0; k < blksize; k++)
      pkey[k] =
          detect_key_single_line((char *)tencdata + k * blkcount, blkcount);
    pkey[blksize] = 0x00;
    printf("%s\n", pkey);
    free(pkey);
  }
  free(tencdata);
  free(encdata);
  free(decdata);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11cf <main+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    151b <main+0x37b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x38(%rbp),%rsi
lea    -0x68(%rbp),%rdx
call   10b0 <load_file@plt>
cmp    $0x0,%eax
jne    1202 <main+0x62>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x2,-0x4(%rbp)
jmp    151b <main+0x37b>
mov    -0x68(%rbp),%rdi
call   1080 <b64_get_ascii_wc@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x48(%rbp)
xor    %eax,%eax
cmp    -0x48(%rbp),%rax
jne    1248 <main+0xa8>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x2,-0x4(%rbp)
jmp    151b <main+0x37b>
mov    -0x48(%rbp),%rdi
mov    -0x70(%rbp),%rdx
shl    $0x0,%rdx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x68(%rbp),%rdx
call   1050 <b64_decode@plt>
mov    -0x38(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x70(%rbp),%rdx
sub    $0x1,%rdx
shl    $0x0,%rdx
call   1090 <memcpy@plt>
mov    -0x38(%rbp),%rax
mov    -0x70(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x48(%rbp),%rdi
mov    -0x70(%rbp),%rdx
shl    $0x0,%rdx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x38(%rbp),%rdi
mov    -0x70(%rbp),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x5,%ecx
mov    $0x2,%r8d
mov    $0x32,%r9d
call   10c0 <find_keysize@plt>
cmp    $0x0,%rax
je     12e5 <main+0x145>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x2,-0x4(%rbp)
jmp    151b <main+0x37b>
mov    -0x70(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
cmp    -0x40(%rbp),%rax
jne    1322 <main+0x182>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
movl   $0x2,-0x4(%rbp)
jmp    151b <main+0x37b>
mov    -0x40(%rbp),%rdi
mov    -0x70(%rbp),%rdx
shl    $0x0,%rdx
xor    %esi,%esi
call   1070 <memset@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jae    14f9 <main+0x359>
mov    -0x14(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0x78(%rbp)
test   %rax,%rax
movss  %xmm0,-0x74(%rbp)
js     138d <main+0x1ed>
movss  -0x78(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x74(%rbp),%xmm0
mov    -0x4c(%rbp),%eax
cvtsi2ss %rax,%xmm1
divss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%esi
lea    0xc51(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x50(%rbp),%esi
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x50(%rbp),%eax
jae    1434 <main+0x294>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jae    1421 <main+0x281>
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
imul   -0x4c(%rbp),%ecx
add    -0x58(%rbp),%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,1),%dl
mov    -0x40(%rbp),%rax
mov    -0x58(%rbp),%ecx
imul   -0x50(%rbp),%ecx
add    -0x54(%rbp),%ecx
mov    %ecx,%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    13e1 <main+0x241>
jmp    1426 <main+0x286>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    13ce <main+0x22e>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x60(%rbp)
xor    %eax,%eax
cmp    -0x60(%rbp),%rax
jne    1472 <main+0x2d2>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
lea    0xbbc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jae    14c5 <main+0x325>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%eax
imul   -0x50(%rbp),%eax
mov    %eax,%eax
add    %rax,%rdi
mov    -0x50(%rbp),%esi
call   1040 <detect_key_single_line@plt>
mov    %al,%dl
mov    -0x60(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1487 <main+0x2e7>
mov    -0x60(%rbp),%rax
mov    -0x4c(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x60(%rbp),%rsi
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    133c <main+0x19c>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    $0x1,%ebp
cmp    $0x2,%edi
jl     129f <main+0xef>
mov    0x8(%rsi),%rdi
lea    0x8(%rsp),%rsi
lea    0x48(%rsp),%rdx
call   10c0 <load_file@plt>
test   %eax,%eax
je     1290 <main+0xe0>
mov    0x48(%rsp),%rdi
call   1090 <b64_get_ascii_wc@plt>
movslq %eax,%rbx
add    $0x1,%rbx
mov    %ebx,%edi
call   10b0 <malloc@plt>
test   %rax,%rax
je     1290 <main+0xe0>
mov    %rax,%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1080 <memset@plt>
mov    0x8(%rsp),%rsi
mov    0x48(%rsp),%rdx
mov    %r14,%rdi
call   1060 <b64_decode@plt>
mov    0x8(%rsp),%rdi
lea    -0x1(%rbx),%rdx
mov    %r14,%rsi
call   10a0 <memcpy@plt>
mov    0x8(%rsp),%rax
movb   $0x0,(%rax,%rbx,1)
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1080 <memset@plt>
mov    0x8(%rsp),%rdi
lea    0x90(%rsp),%rdx
mov    $0x2,%ebp
mov    %rbx,%rsi
mov    $0x5,%ecx
mov    $0x2,%r8d
mov    $0x32,%r9d
call   10d0 <find_keysize@plt>
test   %rax,%rax
je     12b3 <main+0x103>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
jmp    129f <main+0xef>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    $0x2,%ebp
mov    %ebp,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %ebx,%edi
call   10b0 <malloc@plt>
test   %rax,%rax
je     12de <main+0x12e>
mov    %rax,%r15
xor    %r13d,%r13d
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1080 <memset@plt>
test   %rbx,%rbx
js     12f2 <main+0x142>
cvtsi2ss %rbx,%xmm0
jmp    1307 <main+0x157>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
jmp    129f <main+0xef>
mov    %rbx,%rax
shr    %rax
and    $0x1,%ebx
or     %rax,%rbx
cvtsi2ss %rbx,%xmm0
addss  %xmm0,%xmm0
movss  %xmm0,0x1c(%rsp)
mov    %r14,0x30(%rsp)
jmp    1346 <main+0x196>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r14d,%r14d
movb   $0x0,(%r12,%r14,1)
mov    %r12,%rdi
call   1050 <puts@plt>
mov    %r12,%rdi
call   1030 <free@plt>
add    $0x1,%r13
cmp    $0x5,%r13
je     1717 <main+0x567>
mov    0x90(%rsp,%r13,4),%r14d
xorps  %xmm0,%xmm0
cvtsi2ss %r14,%xmm0
movss  0x1c(%rsp),%xmm1
divss  %xmm0,%xmm1
cvttss2si %xmm1,%ebx
lea    0xc95(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc9e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
mov    %r13,0x20(%rsp)
je     16a0 <main+0x4f0>
mov    0x8(%rsp),%rax
lea    -0x1(%r14),%rcx
mov    %rcx,0x40(%rsp)
lea    (%rax,%r14,1),%rcx
mov    %rcx,0x80(%rsp)
mov    %r14d,%ecx
and    $0xffffffe0,%ecx
mov    %rcx,0x38(%rsp)
add    $0xffffffffffffffe0,%rcx
mov    %rcx,0x70(%rsp)
mov    %rcx,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
mov    %rdx,%rcx
mov    %rdx,0x68(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x58(%rsp)
mov    %r14d,%ecx
and    $0xfffffff8,%ecx
mov    %rcx,0x78(%rsp)
mov    %r14,%rcx
neg    %rcx
mov    %rcx,0x88(%rsp)
mov    %ebx,%ecx
shl    $0x5,%ecx
mov    %rcx,0x50(%rsp)
mov    %ebx,%ecx
shl    $0x6,%ecx
mov    %ecx,0x28(%rsp)
mov    %r14d,%r9d
and    $0xfffffff8,%r9d
neg    %r9
lea    0x0(,%rbx,8),%ecx
mov    %ecx,0x2c(%rsp)
lea    (%rbx,%rbx,1),%r10d
mov    $0x20,%r11d
xor    %r12d,%r12d
xor    %r8d,%r8d
mov    %rbx,0x10(%rsp)
mov    %r9,0x60(%rsp)
jmp    1458 <main+0x2a8>
nopl   0x0(%rax)
add    $0x1,%r8
add    %r14d,%r11d
add    %r14d,%r12d
mov    0x10(%rsp),%rbx
cmp    %ebx,%r8d
je     16a0 <main+0x4f0>
test   %r14,%r14
je     1440 <main+0x290>
mov    %r14d,%edi
imul   %r8d,%edi
cmp    $0x8,%r14d
jb     14e0 <main+0x330>
mov    %r14d,%ecx
imul   %r8d,%ecx
mov    %r8d,%edx
mov    0x40(%rsp),%rsi
add    %esi,%edx
setb   %dl
add    %esi,%ecx
setb   %cl
cmpl   $0x1,0x10(%rsp)
jne    14e0 <main+0x330>
test   %dl,%dl
jne    14e0 <main+0x330>
mov    0x40(%rsp),%rsi
shr    $0x20,%rsi
jne    14e0 <main+0x330>
test   %cl,%cl
jne    14e0 <main+0x330>
mov    $0x0,%edx
test   %rsi,%rsi
jne    14e2 <main+0x332>
lea    (%r15,%r8,1),%rdx
mov    %r14d,%ecx
imul   %r8d,%ecx
mov    0x80(%rsp),%rsi
add    %rcx,%rsi
cmp    %rsi,%rdx
jae    156d <main+0x3bd>
lea    (%r8,%r14,1),%rdx
add    %r15,%rdx
add    %rax,%rcx
cmp    %rdx,%rcx
jae    156d <main+0x3bd>
nopl   0x0(%rax)
xor    %edx,%edx
mov    %rdx,%rsi
test   $0x1,%r14b
je     1505 <main+0x355>
add    %edx,%edi
mov    (%rax,%rdi,1),%cl
mov    %edx,%esi
imul   0x10(%rsp),%esi
add    %r8d,%esi
mov    %cl,(%r15,%rsi,1)
mov    %rdx,%rsi
or     $0x1,%rsi
not    %rdx
cmp    0x88(%rsp),%rdx
je     1440 <main+0x290>
lea    (%r12,%rsi,1),%edi
lea    0x1(%rsi),%edx
mov    0x10(%rsp),%rcx
imul   %ecx,%edx
add    %r8d,%edx
mov    %r14,%rbp
sub    %rsi,%rbp
imul   %esi,%ecx
add    %r8d,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %edi,%esi
movzbl (%rax,%rsi,1),%ebx
mov    %ecx,%esi
mov    %bl,(%r15,%rsi,1)
lea    0x1(%rdi),%esi
movzbl (%rax,%rsi,1),%ebx
mov    %edx,%esi
mov    %bl,(%r15,%rsi,1)
add    $0x2,%edi
add    %r10d,%edx
add    %r10d,%ecx
add    $0xfffffffffffffffe,%rbp
jne    1540 <main+0x390>
jmp    1440 <main+0x290>
cmp    $0x20,%r14d
jae    157a <main+0x3ca>
xor    %ecx,%ecx
jmp    1631 <main+0x481>
cmpq   $0x0,0x70(%rsp)
je     1686 <main+0x4d6>
mov    0x58(%rsp),%rdx
mov    %r8d,%ebp
mov    %r11d,%ecx
xor    %r13d,%r13d
mov    0x50(%rsp),%rbx
mov    0x28(%rsp),%r9d
xchg   %ax,%ax
lea    -0x20(%rcx),%esi
movups (%rax,%rsi,1),%xmm0
movups 0x10(%rax,%rsi,1),%xmm1
mov    %ebp,%esi
movups %xmm0,(%r15,%rsi,1)
movups %xmm1,0x10(%r15,%rsi,1)
mov    %ecx,%esi
movups (%rax,%rsi,1),%xmm0
movups 0x10(%rax,%rsi,1),%xmm1
lea    (%rbx,%rbp,1),%esi
movups %xmm0,(%r15,%rsi,1)
movups %xmm1,0x10(%r15,%rsi,1)
add    $0x40,%r13
add    $0x40,%ecx
add    %r9d,%ebp
add    $0xfffffffffffffffe,%rdx
jne    15a0 <main+0x3f0>
testb  $0x1,0x68(%rsp)
je     160a <main+0x45a>
lea    (%rdi,%r13,1),%ecx
movups (%rax,%rcx,1),%xmm0
movups 0x10(%rax,%rcx,1),%xmm1
imul   0x10(%rsp),%r13d
add    %r8d,%r13d
movups %xmm0,(%r15,%r13,1)
movups %xmm1,0x10(%r15,%r13,1)
cmp    %r14,0x38(%rsp)
mov    0x20(%rsp),%r13
mov    0x60(%rsp),%r9
je     1440 <main+0x290>
mov    0x38(%rsp),%rdx
mov    %rdx,%rcx
test   $0x18,%r14b
je     14e2 <main+0x332>
mov    %r9,%r13
lea    (%r9,%rcx,1),%rdx
lea    (%r12,%rcx,1),%ebp
imul   0x10(%rsp),%ecx
add    %r8d,%ecx
mov    0x2c(%rsp),%r9d
nopl   0x0(%rax)
mov    %ebp,%esi
mov    (%rax,%rsi,1),%rsi
mov    %ecx,%ebx
mov    %rsi,(%r15,%rbx,1)
add    $0x8,%ebp
add    %r9d,%ecx
add    $0x8,%rdx
jne    1650 <main+0x4a0>
mov    0x78(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r14,%rcx
mov    %r13,%r9
mov    0x20(%rsp),%r13
je     1440 <main+0x290>
jmp    14e2 <main+0x332>
xor    %r13d,%r13d
testb  $0x1,0x68(%rsp)
jne    15e9 <main+0x439>
jmp    160a <main+0x45a>
nopl   0x0(%rax)
lea    0x1(%r14),%edi
call   10b0 <malloc@plt>
mov    %rax,%r12
test   %rax,%rax
jne    16cd <main+0x51d>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
lea    0x961(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r14,%r14
je     1320 <main+0x170>
xor    %ebp,%ebp
mov    %rbx,%r13
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
add    %r15,%rdi
mov    %r13d,%esi
call   1040 <detect_key_single_line@plt>
mov    %al,(%r12,%rbx,1)
add    $0x1,%rbx
add    %r13d,%ebp
cmp    %rbx,%r14
jne    16f0 <main+0x540>
mov    0x20(%rsp),%r13
jmp    1323 <main+0x173>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
xor    %ebp,%ebp
jmp    129f <main+0xef>

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

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