#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*/ bin_append(int, int, char *);
int posn(char *, char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int micro_qr_intermediate(char binary[], const int jisdata[], const char mode[],
                          const size_t length, int *kanji_used,
                          int *alphanum_used, int *byte_used, const int debug) {
  int position = 0;
  int short_data_block_length, i;
  char data_block;
  char buffer[2];
  strcpy(binary, "");
  if (debug) {
    for (i = 0; i < length; i++) {
      printf("%c", mode[i]);
    }
    printf("\n");
  }
  do {
    if (strlen(binary) > 128) {
      return 5;
    }
    data_block = mode[position];
    short_data_block_length = 0;
    do {
      short_data_block_length++;
    } while (((short_data_block_length + position) < length) &&
             (mode[position + short_data_block_length] == data_block));
    switch (data_block) {
    case 'K':
      strcat(binary, "K");
      *kanji_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Kanji block (length %d)\n\t", short_data_block_length);
      }
      for (i = 0; i < short_data_block_length; i++) {
        int jis = jisdata[position + i];
        int prod;
        if (jis >= 0x8140 && jis <= 0x9ffc)
          jis -= 0x8140;
        else if (jis >= 0xe040 && jis <= 0xebbf)
          jis -= 0xc140;
        prod = ((jis >> 8) * 0xc0) + (jis & 0xff);
        bin_append(prod, 13, binary);
        if (debug) {
          printf("0x%4X ", prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
      }
      if (debug) {
        printf("\n");
      }
      break;
    case 'B':
      strcat(binary, "B");
      *byte_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Byte block (length %d)\n\t", short_data_block_length);
      }
      for (i = 0; i < short_data_block_length; i++) {
        int byte = jisdata[position + i];
        bin_append(byte, 8, binary);
        if (debug) {
          printf("0x%4X ", byte);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
      }
      if (debug) {
        printf("\n");
      }
      break;
    case 'A':
      strcat(binary, "A");
      *alphanum_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Alpha block (length %d)\n\t", short_data_block_length);
      }
      i = 0;
      while (i < short_data_block_length) {
        int count;
        int first = 0, second = 0, prod;
        first = posn("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",
                     (char)jisdata[position + i]);
        count = 1;
        prod = first;
        if (i + 1 < short_data_block_length && mode[position + i + 1] == 'A') {
          second = posn("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",
                        (char)jisdata[position + i + 1]);
          count = 2;
          prod = (first * 45) + second;
        }
        bin_append(prod, 1 + (5 * count), binary);
        if (debug) {
          printf("0x%4X ", prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
        i += 2;
      };
      if (debug) {
        printf("\n");
      }
      break;
    case 'N':
      strcat(binary, "N");
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Number block (length %d)\n\t", short_data_block_length);
      }
      i = 0;
      while (i < short_data_block_length) {
        int count;
        int first = 0, second = 0, third = 0, prod;
        first = posn("0123456789", (char)jisdata[position + i]);
        count = 1;
        prod = first;
        if (i + 1 < short_data_block_length && mode[position + i + 1] == 'N') {
          second = posn("0123456789", (char)jisdata[position + i + 1]);
          count = 2;
          prod = (prod * 10) + second;
        }
        if (i + 2 < short_data_block_length && mode[position + i + 2] == 'N') {
          third = posn("0123456789", (char)jisdata[position + i + 2]);
          count = 3;
          prod = (prod * 10) + third;
        }
        bin_append(prod, 1 + (3 * count), binary);
        if (debug) {
          printf("0x%4X (%d)", prod, prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
        i += 3;
      };
      if (debug) {
        printf("\n");
      }
      break;
    }
    position += short_data_block_length;
  } while (position < length - 1);
  return 0;
}


x86 assembly (clang, -O0):
<micro_qr_intermediate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xefa(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x0,0x18(%rbp)
je     11f6 <micro_qr_intermediate+0x96>
movl   $0x0,-0x44(%rbp)
movslq -0x44(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    11e8 <micro_qr_intermediate+0x88>
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11b2 <micro_qr_intermediate+0x52>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11fb <micro_qr_intermediate+0x9b>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    121b <micro_qr_intermediate+0xbb>
movl   $0x5,-0x4(%rbp)
jmp    1868 <micro_qr_intermediate+0x708>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x45(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
add    -0x3c(%rbp),%eax
movslq %eax,%rcx
xor    %eax,%eax
cmp    -0x28(%rbp),%rcx
mov    %al,-0x79(%rbp)
jae    126e <micro_qr_intermediate+0x10e>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x45(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%al
test   $0x1,%al
jne    1230 <micro_qr_intermediate+0xd0>
movsbl -0x45(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0xd,%eax
ja     1843 <micro_qr_intermediate+0x6e3>
mov    -0x88(%rbp),%rax
lea    0xd60(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
lea    0xd89(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x40(%rbp),%eax
mov    %al,-0x47(%rbp)
movb   $0x0,-0x46(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x47(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     12f5 <micro_qr_intermediate+0x195>
mov    -0x40(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    13e8 <micro_qr_intermediate+0x288>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x8140,-0x4c(%rbp)
jl     1345 <micro_qr_intermediate+0x1e5>
cmpl   $0x9ffc,-0x4c(%rbp)
jg     1345 <micro_qr_intermediate+0x1e5>
mov    -0x4c(%rbp),%eax
sub    $0x8140,%eax
mov    %eax,-0x4c(%rbp)
jmp    136f <micro_qr_intermediate+0x20f>
cmpl   $0xe040,-0x4c(%rbp)
jl     136a <micro_qr_intermediate+0x20a>
cmpl   $0xebbf,-0x4c(%rbp)
jg     136a <micro_qr_intermediate+0x20a>
mov    -0x4c(%rbp),%eax
sub    $0xc140,%eax
mov    %eax,-0x4c(%rbp)
jmp    136f <micro_qr_intermediate+0x20f>
mov    -0x4c(%rbp),%eax
sar    $0x8,%eax
imul   $0xc0,%eax,%eax
mov    -0x4c(%rbp),%ecx
and    $0xff,%ecx
add    %ecx,%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0xd,%esi
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     13b5 <micro_qr_intermediate+0x255>
mov    -0x50(%rbp),%esi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    13d5 <micro_qr_intermediate+0x275>
movl   $0x5,-0x4(%rbp)
jmp    1868 <micro_qr_intermediate+0x708>
jmp    13da <micro_qr_intermediate+0x27a>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12fc <micro_qr_intermediate+0x19c>
cmpl   $0x0,0x18(%rbp)
je     1400 <micro_qr_intermediate+0x2a0>
lea    0xc42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1843 <micro_qr_intermediate+0x6e3>
mov    -0x10(%rbp),%rdi
lea    0xc50(%rip),%rsi
call   1080 <strcat@plt>
mov    0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x40(%rbp),%eax
mov    %al,-0x47(%rbp)
movb   $0x0,-0x46(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x47(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     1451 <micro_qr_intermediate+0x2f1>
mov    -0x40(%rbp),%esi
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    14d6 <micro_qr_intermediate+0x376>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0x8,%esi
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     14a3 <micro_qr_intermediate+0x343>
mov    -0x54(%rbp),%esi
lea    0xbbd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    14c3 <micro_qr_intermediate+0x363>
movl   $0x5,-0x4(%rbp)
jmp    1868 <micro_qr_intermediate+0x708>
jmp    14c8 <micro_qr_intermediate+0x368>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1458 <micro_qr_intermediate+0x2f8>
cmpl   $0x0,0x18(%rbp)
je     14ee <micro_qr_intermediate+0x38e>
lea    0xb54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1843 <micro_qr_intermediate+0x6e3>
mov    -0x10(%rbp),%rdi
lea    0xb7d(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x40(%rbp),%eax
mov    %al,-0x47(%rbp)
movb   $0x0,-0x46(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x47(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     153f <micro_qr_intermediate+0x3df>
mov    -0x40(%rbp),%esi
lea    0xb45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    164d <micro_qr_intermediate+0x4ed>
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0xb20(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x5c(%rbp)
movl   $0x1,-0x58(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
cmp    -0x40(%rbp),%eax
jge    15f1 <micro_qr_intermediate+0x491>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x41,%eax
jne    15f1 <micro_qr_intermediate+0x491>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0xac2(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x60(%rbp)
movl   $0x2,-0x58(%rbp)
imul   $0x2d,-0x5c(%rbp),%eax
add    -0x60(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
imul   $0x5,-0x58(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%rdx
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     161f <micro_qr_intermediate+0x4bf>
mov    -0x64(%rbp),%esi
lea    0xa41(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    163f <micro_qr_intermediate+0x4df>
movl   $0x5,-0x4(%rbp)
jmp    1868 <micro_qr_intermediate+0x708>
mov    -0x44(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x44(%rbp)
jmp    1546 <micro_qr_intermediate+0x3e6>
cmpl   $0x0,0x18(%rbp)
je     1665 <micro_qr_intermediate+0x505>
lea    0x9dd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1843 <micro_qr_intermediate+0x6e3>
mov    -0x10(%rbp),%rdi
lea    0xa50(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x40(%rbp),%eax
mov    %al,-0x47(%rbp)
movb   $0x0,-0x46(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x47(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     16ac <micro_qr_intermediate+0x54c>
mov    -0x40(%rbp),%esi
lea    0xa22(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    1826 <micro_qr_intermediate+0x6c6>
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0x9f7(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x6c(%rbp)
movl   $0x1,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
cmp    -0x40(%rbp),%eax
jge    1765 <micro_qr_intermediate+0x605>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4e,%eax
jne    1765 <micro_qr_intermediate+0x605>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0x999(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x70(%rbp)
movl   $0x2,-0x68(%rbp)
imul   $0xa,-0x78(%rbp),%eax
add    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x44(%rbp),%eax
add    $0x2,%eax
cmp    -0x40(%rbp),%eax
jge    17c7 <micro_qr_intermediate+0x667>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4e,%eax
jne    17c7 <micro_qr_intermediate+0x667>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0x937(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x74(%rbp)
movl   $0x3,-0x68(%rbp)
imul   $0xa,-0x78(%rbp),%eax
add    -0x74(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%edi
imul   $0x3,-0x68(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%rdx
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     17f8 <micro_qr_intermediate+0x698>
mov    -0x78(%rbp),%esi
mov    -0x78(%rbp),%edx
lea    0x8fc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    1818 <micro_qr_intermediate+0x6b8>
movl   $0x5,-0x4(%rbp)
jmp    1868 <micro_qr_intermediate+0x708>
mov    -0x44(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x44(%rbp)
jmp    16b3 <micro_qr_intermediate+0x553>
cmpl   $0x0,0x18(%rbp)
je     183e <micro_qr_intermediate+0x6de>
lea    0x804(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1843 <micro_qr_intermediate+0x6e3>
mov    -0x40(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
jb     11fb <micro_qr_intermediate+0x9b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<micro_qr_intermediate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x40(%rsp)
mov    %rcx,%rbp
mov    %rdx,%r14
mov    %rsi,%r15
lea    0xef9(%rip),%rsi
mov    %rdi,0x8(%rsp)
call   1040 <strcpy@plt>
cmpl   $0x0,0xa8(%rsp)
je     11dd <micro_qr_intermediate+0x6d>
test   %rbp,%rbp
je     11d3 <micro_qr_intermediate+0x63>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl (%r14,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    11c0 <micro_qr_intermediate+0x50>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbp),%rax
mov    %rax,0x50(%rsp)
lea    0x8(%r15),%rax
mov    %rax,0x38(%rsp)
lea    0x2(%r14),%rax
mov    %rax,0x30(%rsp)
mov    %r15,0x18(%rsp)
lea    0x4(%r15),%rax
mov    %rax,0x28(%rsp)
lea    0x1(%r14),%rax
mov    %rax,0x20(%rsp)
xor    %r15d,%r15d
mov    %rbp,0x60(%rsp)
mov    %r14,0x58(%rsp)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
mov    $0x5,%ecx
cmp    $0x80,%eax
jg     16bf <micro_qr_intermediate+0x54f>
mov    %r15d,%r12d
lea    (%r14,%r12,1),%rcx
movsbl (%r14,%r12,1),%eax
mov    $0x1,%edx
mov    $0x1,%esi
nopl   0x0(%rax)
mov    %rdx,%r13
mov    %esi,%ebx
lea    (%r12,%rdx,1),%r15
cmp    %rbp,%r15
jae    126b <micro_qr_intermediate+0xfb>
lea    0x1(%r13),%rdx
lea    0x1(%rbx),%esi
cmp    %al,(%rcx,%r13,1)
je     1250 <micro_qr_intermediate+0xe0>
add    $0xffffffbf,%eax
cmp    $0xd,%eax
ja     155b <micro_qr_intermediate+0x3eb>
lea    -0x1(%r13),%rbp
lea    0xd7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
lea    0xddc(%rip),%rsi
call   1090 <strcat@plt>
mov    0x48(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbx,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     12dc <micro_qr_intermediate+0x16c>
lea    0xda6(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%ebp
mov    0x28(%rsp),%rax
lea    (%rax,%r12,4),%r14
add    0x20(%rsp),%r12
xor    %r13d,%r13d
jmp    1319 <micro_qr_intermediate+0x1a9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
add    $0x2,%r13
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
cmp    %rbp,%r13
ja     1547 <micro_qr_intermediate+0x3d7>
movsbl -0x4(%r14,%r13,4),%esi
lea    0xd63(%rip),%rdi
call   1080 <posn@plt>
mov    %eax,%ebx
mov    $0x6,%esi
cmp    %rbp,%r13
jae    1365 <micro_qr_intermediate+0x1f5>
cmpb   $0x41,(%r12,%r13,1)
jne    1365 <micro_qr_intermediate+0x1f5>
movsbl (%r14,%r13,4),%esi
lea    0xd3f(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,8),%ecx
lea    (%rcx,%rcx,4),%ebx
add    %eax,%ebx
mov    $0xb,%esi
mov    %ebx,%edi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     1300 <micro_qr_intermediate+0x190>
lea    0xcd2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1300 <micro_qr_intermediate+0x190>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcbc(%rip),%rsi
call   1090 <strcat@plt>
mov    0xa0(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbp,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     13e4 <micro_qr_intermediate+0x274>
lea    0xc83(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%rax
lea    (%rax,%r12,4),%r12
mov    %ebx,%r14d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%rbp,4),%ebx
mov    %ebx,%edi
mov    $0x8,%esi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     142f <micro_qr_intermediate+0x2bf>
lea    0xc2e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1400 <micro_qr_intermediate+0x290>
jmp    1547 <micro_qr_intermediate+0x3d7>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0xbd7(%rip),%rsi
call   1090 <strcat@plt>
mov    0x40(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbp,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     14a3 <micro_qr_intermediate+0x333>
lea    0xba1(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%rax
lea    (%rax,%r12,4),%r13
mov    %ebx,%r12d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbp,4),%eax
lea    -0x8140(%rax),%ecx
lea    -0xe040(%rax),%edx
lea    -0xc140(%rax),%esi
cmp    $0xb80,%edx
cmovae %eax,%esi
cmp    $0x1ebd,%ecx
cmovb  %ecx,%esi
movzbl %sil,%ebx
mov    %esi,%eax
sar    $0x8,%eax
lea    (%rax,%rax,2),%eax
shl    $0x6,%eax
add    %eax,%ebx
mov    %ebx,%edi
mov    $0xd,%esi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     1525 <micro_qr_intermediate+0x3b5>
lea    0xb38(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    14c0 <micro_qr_intermediate+0x350>
cmpl   $0x0,0xa8(%rsp)
je     155b <micro_qr_intermediate+0x3eb>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r15d,%eax
cmp    %rax,0x50(%rsp)
mov    0x60(%rsp),%rbp
mov    0x58(%rsp),%r14
ja     121c <micro_qr_intermediate+0xac>
jmp    16d0 <micro_qr_intermediate+0x560>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb39(%rip),%rsi
call   1090 <strcat@plt>
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbx,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     15be <micro_qr_intermediate+0x44e>
lea    0xb0e(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%ebp
mov    0x38(%rsp),%rax
lea    (%rax,%r12,4),%rax
mov    %rax,0x10(%rsp)
add    0x30(%rsp),%r12
xor    %r13d,%r13d
jmp    15fc <micro_qr_intermediate+0x48c>
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
add    $0x1,%r14
mov    %r14,%r13
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
cmp    %rbp,%r13
ja     1547 <micro_qr_intermediate+0x3d7>
mov    0x10(%rsp),%rax
movsbl -0x8(%rax,%r13,4),%esi
lea    0xac6(%rip),%rdi
call   1080 <posn@plt>
mov    %eax,%ebx
mov    $0x1,%eax
cmp    %rbp,%r13
jae    1652 <micro_qr_intermediate+0x4e2>
cmpb   $0x4e,-0x1(%r12,%r13,1)
jne    1652 <micro_qr_intermediate+0x4e2>
mov    0x10(%rsp),%rax
movsbl -0x4(%rax,%r13,4),%esi
lea    0xa9b(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,4),%ecx
lea    (%rax,%rcx,2),%ebx
mov    $0x2,%eax
lea    0x2(%r13),%r14
cmp    %rbp,%r14
ja     1683 <micro_qr_intermediate+0x513>
cmpb   $0x4e,(%r12,%r13,1)
jne    1683 <micro_qr_intermediate+0x513>
mov    0x10(%rsp),%rax
movsbl (%rax,%r13,4),%esi
lea    0xa6a(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,4),%ecx
lea    (%rax,%rcx,2),%ebx
mov    $0x3,%eax
lea    (%rax,%rax,2),%esi
add    $0x1,%esi
mov    %ebx,%edi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     15e0 <micro_qr_intermediate+0x470>
lea    0xa3e(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    15e0 <micro_qr_intermediate+0x470>
mov    $0x5,%ecx
mov    %ecx,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
jmp    16bf <micro_qr_intermediate+0x54f>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [2 x i8] c"K\00"
@.str.4 = [26 x i8] c"Kanji block (length %d)\0A\09\00"
@.str.5 = [7 x i8] c"0x%4X \00"
@.str.6 = [2 x i8] c"B\00"
@.str.7 = [25 x i8] c"Byte block (length %d)\0A\09\00"
@.str.8 = [2 x i8] c"A\00"
@.str.9 = [26 x i8] c"Alpha block (length %d)\0A\09\00"
@.str.10 = [46 x i8] c"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\00"
@.str.11 = [2 x i8] c"N\00"
@.str.12 = [27 x i8] c"Number block (length %d)\0A\09\00"
@.str.13 = [11 x i8] c"0123456789\00"
@.str.14 = [11 x i8] c"0x%4X (%d)\00"
define i32 @micro_qr_intermediate(i8* %0, i32* %1, i8* %2, i64 %3, i32* %4, i32* %5, i32* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i8
%22 = alloca [2 x i8]
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
store i8* %0, i8** %10
store i32* %1, i32** %11
store i8* %2, i8** %12
store i64 %3, i64* %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store i32* %6, i32** %16
store i32 %7, i32* %17
store i32 0, i32* %18
%35 = load i8*, i8** %10
%36 = call i32 @strcpy(i8* %35, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%37 = load i32, i32* %17
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %58
39: ; preds = %8
store i32 0, i32* %20
br label %40
40: ; preds = %53, %39
%41 = load i32, i32* %20
%42 = sext i32 %41 to i64
%43 = load i64, i64* %13
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %56
45: ; preds = %40
%46 = load i8*, i8** %12
%47 = load i32, i32* %20
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %46, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %45
%54 = load i32, i32* %20
%55 = add nsw i32 %54, 1
store i32 %55, i32* %20
br label %40
56: ; preds = %40
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %58
58: ; preds = %56, %8
br label %59
59: ; preds = %437, %58
%60 = load i8*, i8** %10
%61 = call i32 @strlen(i8* %60)
%62 = icmp sgt i32 %61, 128
br i1 %62, label %63, label %64
63: ; preds = %59
store i32 5, i32* %9
br label %444
64: ; preds = %59
%65 = load i8*, i8** %12
%66 = load i32, i32* %18
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %65, i64 %67
%69 = load i8, i8* %68
store i8 %69, i8* %21
store i32 0, i32* %19
br label %70
70: ; preds = %92, %64
%71 = load i32, i32* %19
%72 = add nsw i32 %71, 1
store i32 %72, i32* %19
br label %73
73: ; preds = %70
%74 = load i32, i32* %19
%75 = load i32, i32* %18
%76 = add nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = load i64, i64* %13
%79 = icmp ult i64 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %73
%81 = load i8*, i8** %12
%82 = load i32, i32* %18
%83 = load i32, i32* %19
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, i8* %81, i64 %85
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = load i8, i8* %21
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %88, %90
br label %92
92: ; preds = %80, %73
%93 = phi i1 [ false, %73 ], [ %91, %80 ]
br i1 %93, label %70, label %94
94: ; preds = %92
%95 = load i8, i8* %21
%96 = sext i8 %95 to i32
switch i32 %96, label %433 [
i32 75, label %97
i32 66, label %174
i32 65, label %226
i32 78, label %314
]
97: ; preds = %94
%98 = load i8*, i8** %10
%99 = call i32 @strcat(i8* %98, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%100 = load i32*, i32** %14
store i32 1, i32* %100
%101 = load i32, i32* %19
%102 = trunc i32 %101 to i8
%103 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
store i8 %102, i8* %103
%104 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 1
store i8 0, i8* %104
%105 = load i8*, i8** %10
%106 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
%107 = call i32 @strcat(i8* %105, i8* %106)
%108 = load i32, i32* %17
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %97
%111 = load i32, i32* %19
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %111)
br label %113
113: ; preds = %110, %97
store i32 0, i32* %20
br label %114
114: ; preds = %165, %113
%115 = load i32, i32* %20
%116 = load i32, i32* %19
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %168
118: ; preds = %114
%119 = load i32*, i32** %11
%120 = load i32, i32* %18
%121 = load i32, i32* %20
%122 = add nsw i32 %120, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, i32* %119, i64 %123
%125 = load i32, i32* %124
store i32 %125, i32* %23
%126 = load i32, i32* %23
%127 = icmp sge i32 %126, 33088
br i1 %127, label %128, label %134
128: ; preds = %118
%129 = load i32, i32* %23
%130 = icmp sle i32 %129, 40956
br i1 %130, label %131, label %134
131: ; preds = %128
%132 = load i32, i32* %23
%133 = sub nsw i32 %132, 33088
store i32 %133, i32* %23
br label %144
134: ; preds = %128, %118
%135 = load i32, i32* %23
%136 = icmp sge i32 %135, 57408
br i1 %136, label %137, label %143
137: ; preds = %134
%138 = load i32, i32* %23
%139 = icmp sle i32 %138, 60351
br i1 %139, label %140, label %143
140: ; preds = %137
%141 = load i32, i32* %23
%142 = sub nsw i32 %141, 49472
store i32 %142, i32* %23
br label %143
143: ; preds = %140, %137, %134
br label %144
144: ; preds = %143, %131
%145 = load i32, i32* %23
%146 = ashr i32 %145, 8
%147 = mul nsw i32 %146, 192
%148 = load i32, i32* %23
%149 = and i32 %148, 255
%150 = add nsw i32 %147, %149
store i32 %150, i32* %24
%151 = load i32, i32* %24
%152 = load i8*, i8** %10
%153 = call i32 @bin_append(i32 %151, i32 13, i8* %152)
%154 = load i32, i32* %17
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %159
156: ; preds = %144
%157 = load i32, i32* %24
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %157)
br label %159
159: ; preds = %156, %144
%160 = load i8*, i8** %10
%161 = call i32 @strlen(i8* %160)
%162 = icmp sgt i32 %161, 128
br i1 %162, label %163, label %164
163: ; preds = %159
store i32 5, i32* %9
br label %444
164: ; preds = %159
br label %165
165: ; preds = %164
%166 = load i32, i32* %20
%167 = add nsw i32 %166, 1
store i32 %167, i32* %20
br label %114
168: ; preds = %114
%169 = load i32, i32* %17
%170 = icmp ne i32 %169, 0
br i1 %170, label %171, label %173
171: ; preds = %168
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %173
173: ; preds = %171, %168
br label %433
174: ; preds = %94
%175 = load i8*, i8** %10
%176 = call i32 @strcat(i8* %175, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%177 = load i32*, i32** %16
store i32 1, i32* %177
%178 = load i32, i32* %19
%179 = trunc i32 %178 to i8
%180 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
store i8 %179, i8* %180
%181 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 1
store i8 0, i8* %181
%182 = load i8*, i8** %10
%183 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
%184 = call i32 @strcat(i8* %182, i8* %183)
%185 = load i32, i32* %17
%186 = icmp ne i32 %185, 0
br i1 %186, label %187, label %190
187: ; preds = %174
%188 = load i32, i32* %19
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %188)
br label %190
190: ; preds = %187, %174
store i32 0, i32* %20
br label %191
191: ; preds = %217, %190
%192 = load i32, i32* %20
%193 = load i32, i32* %19
%194 = icmp slt i32 %192, %193
br i1 %194, label %195, label %220
195: ; preds = %191
%196 = load i32*, i32** %11
%197 = load i32, i32* %18
%198 = load i32, i32* %20
%199 = add nsw i32 %197, %198
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, i32* %196, i64 %200
%202 = load i32, i32* %201
store i32 %202, i32* %25
%203 = load i32, i32* %25
%204 = load i8*, i8** %10
%205 = call i32 @bin_append(i32 %203, i32 8, i8* %204)
%206 = load i32, i32* %17
%207 = icmp ne i32 %206, 0
br i1 %207, label %208, label %211
208: ; preds = %195
%209 = load i32, i32* %25
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %209)
br label %211
211: ; preds = %208, %195
%212 = load i8*, i8** %10
%213 = call i32 @strlen(i8* %212)
%214 = icmp sgt i32 %213, 128
br i1 %214, label %215, label %216
215: ; preds = %211
store i32 5, i32* %9
br label %444
216: ; preds = %211
br label %217
217: ; preds = %216
%218 = load i32, i32* %20
%219 = add nsw i32 %218, 1
store i32 %219, i32* %20
br label %191
220: ; preds = %191
%221 = load i32, i32* %17
%222 = icmp ne i32 %221, 0
br i1 %222, label %223, label %225
223: ; preds = %220
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %225
225: ; preds = %223, %220
br label %433
226: ; preds = %94
%227 = load i8*, i8** %10
%228 = call i32 @strcat(i8* %227, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%229 = load i32*, i32** %15
store i32 1, i32* %229
%230 = load i32, i32* %19
%231 = trunc i32 %230 to i8
%232 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
store i8 %231, i8* %232
%233 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 1
store i8 0, i8* %233
%234 = load i8*, i8** %10
%235 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
%236 = call i32 @strcat(i8* %234, i8* %235)
%237 = load i32, i32* %17
%238 = icmp ne i32 %237, 0
br i1 %238, label %239, label %242
239: ; preds = %226
%240 = load i32, i32* %19
%241 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 %240)
br label %242
242: ; preds = %239, %226
store i32 0, i32* %20
br label %243
243: ; preds = %305, %242
%244 = load i32, i32* %20
%245 = load i32, i32* %19
%246 = icmp slt i32 %244, %245
br i1 %246, label %247, label %308
247: ; preds = %243
store i32 0, i32* %27
store i32 0, i32* %28
%248 = load i32*, i32** %11
%249 = load i32, i32* %18
%250 = load i32, i32* %20
%251 = add nsw i32 %249, %250
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i32, i32* %248, i64 %252
%254 = load i32, i32* %253
%255 = trunc i32 %254 to i8
%256 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %255)
store i32 %256, i32* %27
store i32 1, i32* %26
%257 = load i32, i32* %27
store i32 %257, i32* %29
%258 = load i32, i32* %20
%259 = add nsw i32 %258, 1
%260 = load i32, i32* %19
%261 = icmp slt i32 %259, %260
br i1 %261, label %262, label %288
262: ; preds = %247
%263 = load i8*, i8** %12
%264 = load i32, i32* %18
%265 = load i32, i32* %20
%266 = add nsw i32 %264, %265
%267 = add nsw i32 %266, 1
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i8, i8* %263, i64 %268
%270 = load i8, i8* %269
%271 = sext i8 %270 to i32
%272 = icmp eq i32 %271, 65
br i1 %272, label %273, label %288
273: ; preds = %262
%274 = load i32*, i32** %11
%275 = load i32, i32* %18
%276 = load i32, i32* %20
%277 = add nsw i32 %275, %276
%278 = add nsw i32 %277, 1
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i32, i32* %274, i64 %279
%281 = load i32, i32* %280
%282 = trunc i32 %281 to i8
%283 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %282)
store i32 %283, i32* %28
store i32 2, i32* %26
%284 = load i32, i32* %27
%285 = mul nsw i32 %284, 45
%286 = load i32, i32* %28
%287 = add nsw i32 %285, %286
store i32 %287, i32* %29
br label %288
288: ; preds = %273, %262, %247
%289 = load i32, i32* %29
%290 = load i32, i32* %26
%291 = mul nsw i32 5, %290
%292 = add nsw i32 1, %291
%293 = load i8*, i8** %10
%294 = call i32 @bin_append(i32 %289, i32 %292, i8* %293)
%295 = load i32, i32* %17
%296 = icmp ne i32 %295, 0
br i1 %296, label %297, label %300
297: ; preds = %288
%298 = load i32, i32* %29
%299 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %298)
br label %300
300: ; preds = %297, %288
%301 = load i8*, i8** %10
%302 = call i32 @strlen(i8* %301)
%303 = icmp sgt i32 %302, 128
br i1 %303, label %304, label %305
304: ; preds = %300
store i32 5, i32* %9
br label %444
305: ; preds = %300
%306 = load i32, i32* %20
%307 = add nsw i32 %306, 2
store i32 %307, i32* %20
br label %243
308: ; preds = %243
%309 = load i32, i32* %17
%310 = icmp ne i32 %309, 0
br i1 %310, label %311, label %313
311: ; preds = %308
%312 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %313
313: ; preds = %311, %308
br label %433
314: ; preds = %94
%315 = load i8*, i8** %10
%316 = call i32 @strcat(i8* %315, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%317 = load i32, i32* %19
%318 = trunc i32 %317 to i8
%319 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
store i8 %318, i8* %319
%320 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 1
store i8 0, i8* %320
%321 = load i8*, i8** %10
%322 = getelementptr inbounds [2 x i8], [2 x i8]* %22, i64 0, i64 0
%323 = call i32 @strcat(i8* %321, i8* %322)
%324 = load i32, i32* %17
%325 = icmp ne i32 %324, 0
br i1 %325, label %326, label %329
326: ; preds = %314
%327 = load i32, i32* %19
%328 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i32 %327)
br label %329
329: ; preds = %326, %314
store i32 0, i32* %20
br label %330
330: ; preds = %424, %329
%331 = load i32, i32* %20
%332 = load i32, i32* %19
%333 = icmp slt i32 %331, %332
br i1 %333, label %334, label %427
334: ; preds = %330
store i32 0, i32* %31
store i32 0, i32* %32
store i32 0, i32* %33
%335 = load i32*, i32** %11
%336 = load i32, i32* %18
%337 = load i32, i32* %20
%338 = add nsw i32 %336, %337
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds i32, i32* %335, i64 %339
%341 = load i32, i32* %340
%342 = trunc i32 %341 to i8
%343 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %342)
store i32 %343, i32* %31
store i32 1, i32* %30
%344 = load i32, i32* %31
store i32 %344, i32* %34
%345 = load i32, i32* %20
%346 = add nsw i32 %345, 1
%347 = load i32, i32* %19
%348 = icmp slt i32 %346, %347
br i1 %348, label %349, label %375
349: ; preds = %334
%350 = load i8*, i8** %12
%351 = load i32, i32* %18
%352 = load i32, i32* %20
%353 = add nsw i32 %351, %352
%354 = add nsw i32 %353, 1
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds i8, i8* %350, i64 %355
%357 = load i8, i8* %356
%358 = sext i8 %357 to i32
%359 = icmp eq i32 %358, 78
br i1 %359, label %360, label %375
360: ; preds = %349
%361 = load i32*, i32** %11
%362 = load i32, i32* %18
%363 = load i32, i32* %20
%364 = add nsw i32 %362, %363
%365 = add nsw i32 %364, 1
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds i32, i32* %361, i64 %366
%368 = load i32, i32* %367
%369 = trunc i32 %368 to i8
%370 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %369)
store i32 %370, i32* %32
store i32 2, i32* %30
%371 = load i32, i32* %34
%372 = mul nsw i32 %371, 10
%373 = load i32, i32* %32
%374 = add nsw i32 %372, %373
store i32 %374, i32* %34
br label %375
375: ; preds = %360, %349, %334
%376 = load i32, i32* %20
%377 = add nsw i32 %376, 2
%378 = load i32, i32* %19
%379 = icmp slt i32 %377, %378
br i1 %379, label %380, label %406
380: ; preds = %375
%381 = load i8*, i8** %12
%382 = load i32, i32* %18
%383 = load i32, i32* %20
%384 = add nsw i32 %382, %383
%385 = add nsw i32 %384, 2
%386 = sext i32 %385 to i64
%387 = getelementptr inbounds i8, i8* %381, i64 %386
%388 = load i8, i8* %387
%389 = sext i8 %388 to i32
%390 = icmp eq i32 %389, 78
br i1 %390, label %391, label %406
391: ; preds = %380
%392 = load i32*, i32** %11
%393 = load i32, i32* %18
%394 = load i32, i32* %20
%395 = add nsw i32 %393, %394
%396 = add nsw i32 %395, 2
%397 = sext i32 %396 to i64
%398 = getelementptr inbounds i32, i32* %392, i64 %397
%399 = load i32, i32* %398
%400 = trunc i32 %399 to i8
%401 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %400)
store i32 %401, i32* %33
store i32 3, i32* %30
%402 = load i32, i32* %34
%403 = mul nsw i32 %402, 10
%404 = load i32, i32* %33
%405 = add nsw i32 %403, %404
store i32 %405, i32* %34
br label %406
406: ; preds = %391, %380, %375
%407 = load i32, i32* %34
%408 = load i32, i32* %30
%409 = mul nsw i32 3, %408
%410 = add nsw i32 1, %409
%411 = load i8*, i8** %10
%412 = call i32 @bin_append(i32 %407, i32 %410, i8* %411)
%413 = load i32, i32* %17
%414 = icmp ne i32 %413, 0
br i1 %414, label %415, label %419
415: ; preds = %406
%416 = load i32, i32* %34
%417 = load i32, i32* %34
%418 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %416, i32 %417)
br label %419
419: ; preds = %415, %406
%420 = load i8*, i8** %10
%421 = call i32 @strlen(i8* %420)
%422 = icmp sgt i32 %421, 128
br i1 %422, label %423, label %424
423: ; preds = %419
store i32 5, i32* %9
br label %444
424: ; preds = %419
%425 = load i32, i32* %20
%426 = add nsw i32 %425, 3
store i32 %426, i32* %20
br label %330
427: ; preds = %330
%428 = load i32, i32* %17
%429 = icmp ne i32 %428, 0
br i1 %429, label %430, label %432
430: ; preds = %427
%431 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %432
432: ; preds = %430, %427
br label %433
433: ; preds = %94, %432, %313, %225, %173
%434 = load i32, i32* %19
%435 = load i32, i32* %18
%436 = add nsw i32 %435, %434
store i32 %436, i32* %18
br label %437
437: ; preds = %433
%438 = load i32, i32* %18
%439 = sext i32 %438 to i64
%440 = load i64, i64* %13
%441 = sub i64 %440, 1
%442 = icmp ult i64 %439, %441
br i1 %442, label %59, label %443
443: ; preds = %437
store i32 0, i32* %9
br label %444
444: ; preds = %443, %423, %304, %215, %163, %63
%445 = load i32, i32* %9
ret i32 %445
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.3 = [2 x i8] c"K\00"
@.str.4 = [26 x i8] c"Kanji block (length %d)\0A\09\00"
@.str.5 = [7 x i8] c"0x%4X \00"
@.str.6 = [2 x i8] c"B\00"
@.str.7 = [25 x i8] c"Byte block (length %d)\0A\09\00"
@.str.8 = [2 x i8] c"A\00"
@.str.9 = [26 x i8] c"Alpha block (length %d)\0A\09\00"
@.str.10 = [46 x i8] c"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\00"
@.str.11 = [2 x i8] c"N\00"
@.str.12 = [27 x i8] c"Number block (length %d)\0A\09\00"
@.str.13 = [11 x i8] c"0123456789\00"
@.str.14 = [11 x i8] c"0x%4X (%d)\00"
define i32 @micro_qr_intermediate(i8* %0, i32* nocapture %1, i8* nocapture %2, i64 %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6, i32 %7) {
%9 = alloca [2 x i8]
%10 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%11 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32 %7, 0
br i1 %12, label %25, label %13
13: ; preds = %8
%14 = icmp eq i64 %3, 0
br i1 %14, label %23, label %15
15: ; preds = %13, %15
%16 = phi i64 [ %21, %15 ], [ 0, %13 ]
%17 = getelementptr inbounds i8, i8* %2, i64 %16
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = tail call i32 @putchar(i32 %19)
%21 = add nuw i64 %16, 1
%22 = icmp eq i64 %21, %3
br i1 %22, label %23, label %15
23: ; preds = %15, %13
%24 = tail call i32 @putchar(i32 10)
br label %25
25: ; preds = %23, %8
%26 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 1
%27 = add i64 %3, -1
br label %28
28: ; preds = %211, %25
%29 = phi i64 [ 0, %25 ], [ %39, %211 ]
%30 = call i32 @strlen(i8* %0)
%31 = icmp sgt i32 %30, 128
br i1 %31, label %213, label %32
32: ; preds = %28
%33 = and i64 %29, 4294967295
%34 = getelementptr inbounds i8, i8* %2, i64 %33
%35 = load i8, i8* %34
br label %36
36: ; preds = %41, %32
%37 = phi i64 [ %38, %41 ], [ 0, %32 ]
%38 = add nuw i64 %37, 1
%39 = add nuw nsw i64 %38, %33
%40 = icmp ult i64 %39, %3
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = getelementptr inbounds i8, i8* %2, i64 %39
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, %35
br i1 %44, label %36, label %45
45: ; preds = %36, %41
%46 = trunc i64 %38 to i32
%47 = and i64 %39, 4294967295
%48 = sext i8 %35 to i32
switch i32 %48, label %211 [
i32 75, label %49
i32 66, label %84
i32 65, label %108
i32 78, label %149
]
49: ; preds = %45
%50 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %4
%51 = trunc i64 %38 to i8
store i8 %51, i8* %10
store i8 0, i8* %26
%52 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %55, label %53
53: ; preds = %49
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %46)
br label %55
55: ; preds = %53, %49
%56 = add i64 %37, 1
%57 = and i64 %56, 4294967295
br label %61
58: ; preds = %80
%59 = add nuw nsw i64 %62, 1
%60 = icmp eq i64 %59, %57
br i1 %60, label %83, label %61
61: ; preds = %55, %58
%62 = phi i64 [ 0, %55 ], [ %59, %58 ]
%63 = add nuw nsw i64 %62, %33
%64 = getelementptr inbounds i32, i32* %1, i64 %63
%65 = load i32, i32* %64
%66 = add i32 %65, -33088
%67 = icmp ult i32 %66, 7869
%68 = add i32 %65, -57408
%69 = icmp ult i32 %68, 2944
%70 = add nsw i32 %65, -49472
%71 = select i1 %69, i32 %70, i32 %65
%72 = select i1 %67, i32 %66, i32 %71
%73 = ashr i32 %72, 8
%74 = mul nsw i32 %73, 192
%75 = and i32 %72, 255
%76 = add nsw i32 %74, %75
%77 = call i32 @bin_append(i32 %76, i32 13, i8* %0)
br i1 %12, label %80, label %78
78: ; preds = %61
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %76)
br label %80
80: ; preds = %78, %61
%81 = call i32 @strlen(i8* %0)
%82 = icmp sgt i32 %81, 128
br i1 %82, label %213, label %58
83: ; preds = %58
br i1 %12, label %211, label %209
84: ; preds = %45
%85 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %6
%86 = trunc i64 %38 to i8
store i8 %86, i8* %10
store i8 0, i8* %26
%87 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %90, label %88
88: ; preds = %84
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %46)
br label %90
90: ; preds = %88, %84
%91 = add i64 %37, 1
%92 = and i64 %91, 4294967295
br label %96
93: ; preds = %104
%94 = add nuw nsw i64 %97, 1
%95 = icmp eq i64 %94, %92
br i1 %95, label %107, label %96
96: ; preds = %90, %93
%97 = phi i64 [ 0, %90 ], [ %94, %93 ]
%98 = add nuw nsw i64 %97, %33
%99 = getelementptr inbounds i32, i32* %1, i64 %98
%100 = load i32, i32* %99
%101 = call i32 @bin_append(i32 %100, i32 8, i8* %0)
br i1 %12, label %104, label %102
102: ; preds = %96
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %100)
br label %104
104: ; preds = %102, %96
%105 = call i32 @strlen(i8* %0)
%106 = icmp sgt i32 %105, 128
br i1 %106, label %213, label %93
107: ; preds = %93
br i1 %12, label %211, label %209
108: ; preds = %45
%109 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %5
%110 = trunc i64 %38 to i8
store i8 %110, i8* %10
store i8 0, i8* %26
%111 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %114, label %112
112: ; preds = %108
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 %46)
br label %114
114: ; preds = %112, %108
%115 = and i64 %37, 4294967295
br label %116
116: ; preds = %144, %114
%117 = phi i64 [ %147, %144 ], [ 0, %114 ]
%118 = icmp ugt i64 %117, %115
br i1 %118, label %148, label %119
119: ; preds = %116
%120 = add nuw nsw i64 %117, %33
%121 = getelementptr inbounds i32, i32* %1, i64 %120
%122 = load i32, i32* %121
%123 = trunc i32 %122 to i8
%124 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %123)
%125 = icmp ult i64 %117, %115
br i1 %125, label %126, label %138
126: ; preds = %119
%127 = add nuw nsw i64 %120, 1
%128 = getelementptr inbounds i8, i8* %2, i64 %127
%129 = load i8, i8* %128
%130 = icmp eq i8 %129, 65
br i1 %130, label %131, label %138
131: ; preds = %126
%132 = getelementptr inbounds i32, i32* %1, i64 %127
%133 = load i32, i32* %132
%134 = trunc i32 %133 to i8
%135 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %134)
%136 = mul nsw i32 %124, 45
%137 = add nsw i32 %135, %136
br label %138
138: ; preds = %131, %126, %119
%139 = phi i32 [ 11, %131 ], [ 6, %126 ], [ 6, %119 ]
%140 = phi i32 [ %137, %131 ], [ %124, %126 ], [ %124, %119 ]
%141 = call i32 @bin_append(i32 %140, i32 %139, i8* %0)
br i1 %12, label %144, label %142
142: ; preds = %138
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %140)
br label %144
144: ; preds = %142, %138
%145 = call i32 @strlen(i8* %0)
%146 = icmp sgt i32 %145, 128
%147 = add nuw nsw i64 %117, 2
br i1 %146, label %213, label %116
148: ; preds = %116
br i1 %12, label %211, label %209
149: ; preds = %45
%150 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%151 = trunc i64 %38 to i8
store i8 %151, i8* %10
store i8 0, i8* %26
%152 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %155, label %153
153: ; preds = %149
%154 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i32 %46)
br label %155
155: ; preds = %153, %149
%156 = and i64 %37, 4294967295
br label %157
157: ; preds = %204, %155
%158 = phi i64 [ %207, %204 ], [ 0, %155 ]
%159 = icmp ugt i64 %158, %156
br i1 %159, label %208, label %160
160: ; preds = %157
%161 = add nuw nsw i64 %158, %33
%162 = getelementptr inbounds i32, i32* %1, i64 %161
%163 = load i32, i32* %162
%164 = trunc i32 %163 to i8
%165 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %164)
%166 = icmp ult i64 %158, %156
br i1 %166, label %167, label %179
167: ; preds = %160
%168 = add nuw nsw i64 %161, 1
%169 = getelementptr inbounds i8, i8* %2, i64 %168
%170 = load i8, i8* %169
%171 = icmp eq i8 %170, 78
br i1 %171, label %172, label %179
172: ; preds = %167
%173 = getelementptr inbounds i32, i32* %1, i64 %168
%174 = load i32, i32* %173
%175 = trunc i32 %174 to i8
%176 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %175)
%177 = mul nsw i32 %165, 10
%178 = add nsw i32 %176, %177
br label %179
179: ; preds = %172, %167, %160
%180 = phi i32 [ 2, %172 ], [ 1, %167 ], [ 1, %160 ]
%181 = phi i32 [ %178, %172 ], [ %165, %167 ], [ %165, %160 ]
%182 = add nuw nsw i64 %158, 2
%183 = icmp ugt i64 %182, %156
br i1 %183, label %196, label %184
184: ; preds = %179
%185 = add nuw nsw i64 %161, 2
%186 = getelementptr inbounds i8, i8* %2, i64 %185
%187 = load i8, i8* %186
%188 = icmp eq i8 %187, 78
br i1 %188, label %189, label %196
189: ; preds = %184
%190 = getelementptr inbounds i32, i32* %1, i64 %185
%191 = load i32, i32* %190
%192 = trunc i32 %191 to i8
%193 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %192)
%194 = mul nsw i32 %181, 10
%195 = add nsw i32 %193, %194
br label %196
196: ; preds = %189, %184, %179
%197 = phi i32 [ 3, %189 ], [ %180, %184 ], [ %180, %179 ]
%198 = phi i32 [ %195, %189 ], [ %181, %184 ], [ %181, %179 ]
%199 = mul nuw nsw i32 %197, 3
%200 = add nuw nsw i32 %199, 1
%201 = call i32 @bin_append(i32 %198, i32 %200, i8* %0)
br i1 %12, label %204, label %202
202: ; preds = %196
%203 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %198, i32 %198)
br label %204
204: ; preds = %202, %196
%205 = call i32 @strlen(i8* %0)
%206 = icmp sgt i32 %205, 128
%207 = add nuw nsw i64 %158, 3
br i1 %206, label %213, label %157
208: ; preds = %157
br i1 %12, label %211, label %209
209: ; preds = %208, %148, %107, %83
%210 = call i32 @putchar(i32 10)
br label %211
211: ; preds = %209, %208, %148, %107, %83, %45
%212 = icmp ugt i64 %27, %47
br i1 %212, label %28, label %213
213: ; preds = %211, %28, %204, %144, %104, %80
%214 = phi i32 [ 5, %80 ], [ 5, %104 ], [ 5, %144 ], [ 5, %204 ], [ 0, %211 ], [ 5, %28 ]
ret i32 %214
}