#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(char const, int, char *);
int /*<<< orphan*/ strcat(char *, char *);
size_t strlen(char const *);
void microqr_expand_binary(const char binary_stream[], char full_stream[],
                           const int version) {
  int i;
  size_t length;
  length = strlen(binary_stream);
  i = 0;
  do {
    switch (binary_stream[i]) {
    case '1':
      strcat(full_stream, "1");
      i++;
      break;
    case '0':
      strcat(full_stream, "0");
      i++;
      break;
    case 'N':
      switch (version) {
      case 1:
        strcat(full_stream, "0");
        break;
      case 2:
        strcat(full_stream, "00");
        break;
      case 3:
        strcat(full_stream, "000");
        break;
      }
      bin_append(binary_stream[i + 1], 3 + version, full_stream);
      i += 2;
      break;
    case 'A':
      switch (version) {
      case 1:
        strcat(full_stream, "1");
        break;
      case 2:
        strcat(full_stream, "01");
        break;
      case 3:
        strcat(full_stream, "001");
        break;
      }
      bin_append(binary_stream[i + 1], 2 + version, full_stream);
      i += 2;
      break;
    case 'B':
      switch (version) {
      case 2:
        strcat(full_stream, "10");
        break;
      case 3:
        strcat(full_stream, "010");
        break;
      }
      bin_append(binary_stream[i + 1], 2 + version, full_stream);
      i += 2;
      break;
    case 'K':
      switch (version) {
      case 2:
        strcat(full_stream, "11");
        break;
      case 3:
        strcat(full_stream, "011");
        break;
      }
      bin_append(binary_stream[i + 1], 1 + version, full_stream);
      i += 2;
      break;
    }
  } while (i < length);
}


x86 assembly (clang, -O0):
<microqr_expand_binary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
add    $0xffffffd0,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x1e,%eax
ja     13f4 <microqr_expand_binary+0x2c4>
mov    -0x28(%rbp),%rax
lea    0xe80(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
lea    0xeee(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13f4 <microqr_expand_binary+0x2c4>
mov    -0x10(%rbp),%rdi
lea    0xecc(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13f4 <microqr_expand_binary+0x2c4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
sub    $0x1,%eax
je     11fb <microqr_expand_binary+0xcb>
jmp    11d9 <microqr_expand_binary+0xa9>
mov    -0x2c(%rbp),%eax
sub    $0x2,%eax
je     1210 <microqr_expand_binary+0xe0>
jmp    11ea <microqr_expand_binary+0xba>
mov    -0x2c(%rbp),%eax
sub    $0x3,%eax
je     1225 <microqr_expand_binary+0xf5>
jmp    1235 <microqr_expand_binary+0x105>
mov    -0x10(%rbp),%rdi
lea    0xe78(%rip),%rsi
call   1050 <strcat@plt>
jmp    1235 <microqr_expand_binary+0x105>
mov    -0x10(%rbp),%rdi
lea    0xe62(%rip),%rsi
call   1050 <strcat@plt>
jmp    1235 <microqr_expand_binary+0x105>
mov    -0x10(%rbp),%rdi
lea    0xe4c(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%rdx
movsbl %al,%edi
call   1040 <bin_append@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    13f4 <microqr_expand_binary+0x2c4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
sub    $0x1,%eax
je     129b <microqr_expand_binary+0x16b>
jmp    1279 <microqr_expand_binary+0x149>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     12b0 <microqr_expand_binary+0x180>
jmp    128a <microqr_expand_binary+0x15a>
mov    -0x30(%rbp),%eax
sub    $0x3,%eax
je     12c5 <microqr_expand_binary+0x195>
jmp    12d5 <microqr_expand_binary+0x1a5>
mov    -0x10(%rbp),%rdi
lea    0xddc(%rip),%rsi
call   1050 <strcat@plt>
jmp    12d5 <microqr_expand_binary+0x1a5>
mov    -0x10(%rbp),%rdi
lea    0xdc6(%rip),%rsi
call   1050 <strcat@plt>
jmp    12d5 <microqr_expand_binary+0x1a5>
mov    -0x10(%rbp),%rdi
lea    0xdb0(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%rdx
movsbl %al,%edi
call   1040 <bin_append@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    13f4 <microqr_expand_binary+0x2c4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
sub    $0x2,%eax
je     132a <microqr_expand_binary+0x1fa>
jmp    1319 <microqr_expand_binary+0x1e9>
mov    -0x34(%rbp),%eax
sub    $0x3,%eax
je     133f <microqr_expand_binary+0x20f>
jmp    134f <microqr_expand_binary+0x21f>
mov    -0x10(%rbp),%rdi
lea    0xd50(%rip),%rsi
call   1050 <strcat@plt>
jmp    134f <microqr_expand_binary+0x21f>
mov    -0x10(%rbp),%rdi
lea    0xd3a(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%rdx
movsbl %al,%edi
call   1040 <bin_append@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    13f4 <microqr_expand_binary+0x2c4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x38(%rbp)
sub    $0x2,%eax
je     13a4 <microqr_expand_binary+0x274>
jmp    1393 <microqr_expand_binary+0x263>
mov    -0x38(%rbp),%eax
sub    $0x3,%eax
je     13b9 <microqr_expand_binary+0x289>
jmp    13c9 <microqr_expand_binary+0x299>
mov    -0x10(%rbp),%rdi
lea    0xcda(%rip),%rsi
call   1050 <strcat@plt>
jmp    13c9 <microqr_expand_binary+0x299>
mov    -0x10(%rbp),%rdi
lea    0xcc4(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%rdx
movsbl %al,%edi
call   1040 <bin_append@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    13f9 <microqr_expand_binary+0x2c9>
movslq -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jb     1157 <microqr_expand_binary+0x27>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<microqr_expand_binary>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edx,%ebp
mov    %rsi,%r15
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rax,%r12
lea    0x1(%rbp),%eax
mov    %eax,0x1c(%rsp)
lea    0x2(%rbp),%eax
mov    %eax,0xc(%rsp)
lea    0x3(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    %rbp,%rax
mov    %rbp,0x10(%rsp)
lea    -0x1(%rbp),%eax
mov    %eax,0x8(%rsp)
cltq
shl    $0x2,%rax
mov    %rax,0x20(%rsp)
xor    %r14d,%r14d
lea    0xe79(%rip),%rbp
jmp    11ae <microqr_expand_binary+0x7e>
movsbl 0x1(%r13,%rbx,1),%edi
mov    0x18(%rsp),%esi
mov    %r15,%rdx
call   1040 <bin_append@plt>
add    $0x2,%r13d
mov    %r13d,%r14d
movslq %r14d,%rax
cmp    %rax,%r12
jbe    1296 <microqr_expand_binary+0x166>
movslq %r14d,%r13
movsbl (%rbx,%r13,1),%eax
add    $0xffffffd0,%eax
cmp    $0x1e,%eax
ja     11a2 <microqr_expand_binary+0x72>
movslq 0x0(%rbp,%rax,4),%rax
add    %rbp,%rax
jmp    *%rax
mov    %r15,%rdi
lea    0xec4(%rip),%rsi
jmp    11de <microqr_expand_binary+0xae>
mov    %r15,%rdi
lea    0xebc(%rip),%rsi
call   1050 <strcat@plt>
add    $0x1,%r14d
jmp    11a2 <microqr_expand_binary+0x72>
cmpl   $0x2,0x8(%rsp)
ja     1229 <microqr_expand_binary+0xf9>
mov    0x20(%rsp),%rax
lea    0xe8c(%rip),%rcx
movslq (%rax,%rcx,1),%rsi
add    %rcx,%rsi
jmp    1221 <microqr_expand_binary+0xf1>
lea    0xe91(%rip),%rsi
cmpl   $0x2,0x10(%rsp)
je     1221 <microqr_expand_binary+0xf1>
cmpl   $0x3,0x10(%rsp)
jne    1229 <microqr_expand_binary+0xf9>
lea    0xe7b(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
movsbl 0x1(%r13,%rbx,1),%edi
mov    0xc(%rsp),%esi
jmp    1193 <microqr_expand_binary+0x63>
lea    0xe62(%rip),%rsi
cmpl   $0x2,0x10(%rsp)
je     1254 <microqr_expand_binary+0x124>
cmpl   $0x3,0x10(%rsp)
jne    125c <microqr_expand_binary+0x12c>
lea    0xe4c(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
movsbl 0x1(%r13,%rbx,1),%edi
mov    0x1c(%rsp),%esi
jmp    1193 <microqr_expand_binary+0x63>
cmpl   $0x2,0x8(%rsp)
ja     1189 <microqr_expand_binary+0x59>
mov    0x20(%rsp),%rax
lea    0xdfa(%rip),%rcx
movslq (%rax,%rcx,1),%rsi
add    %rcx,%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
jmp    1189 <microqr_expand_binary+0x59>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [3 x i8] c"00\00"
@.str.3 = [4 x i8] c"000\00"
@.str.4 = [3 x i8] c"01\00"
@.str.5 = [4 x i8] c"001\00"
@.str.6 = [3 x i8] c"10\00"
@.str.7 = [4 x i8] c"010\00"
@.str.8 = [3 x i8] c"11\00"
@.str.9 = [4 x i8] c"011\00"
define void @microqr_expand_binary(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%9 = load i8*, i8** %4
%10 = call i64 @strlen(i8* %9)
store i64 %10, i64* %8
store i32 0, i32* %7
br label %11
11: ; preds = %119, %3
%12 = load i8*, i8** %4
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %12, i64 %14
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
switch i32 %17, label %118 [
i32 49, label %18
i32 48, label %23
i32 78, label %28
i32 65, label %52
i32 66, label %76
i32 75, label %97
]
18: ; preds = %11
%19 = load i8*, i8** %5
%20 = call i32 @strcat(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %118
23: ; preds = %11
%24 = load i8*, i8** %5
%25 = call i32 @strcat(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %118
28: ; preds = %11
%29 = load i32, i32* %6
switch i32 %29, label %39 [
i32 1, label %30
i32 2, label %33
i32 3, label %36
]
30: ; preds = %28
%31 = load i8*, i8** %5
%32 = call i32 @strcat(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %39
33: ; preds = %28
%34 = load i8*, i8** %5
%35 = call i32 @strcat(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %39
36: ; preds = %28
%37 = load i8*, i8** %5
%38 = call i32 @strcat(i8* %37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %39
39: ; preds = %28, %36, %33, %30
%40 = load i8*, i8** %4
%41 = load i32, i32* %7
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %40, i64 %43
%45 = load i8, i8* %44
%46 = load i32, i32* %6
%47 = add nsw i32 3, %46
%48 = load i8*, i8** %5
%49 = call i32 @bin_append(i8 signext %45, i32 %47, i8* %48)
%50 = load i32, i32* %7
%51 = add nsw i32 %50, 2
store i32 %51, i32* %7
br label %118
52: ; preds = %11
%53 = load i32, i32* %6
switch i32 %53, label %63 [
i32 1, label %54
i32 2, label %57
i32 3, label %60
]
54: ; preds = %52
%55 = load i8*, i8** %5
%56 = call i32 @strcat(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %63
57: ; preds = %52
%58 = load i8*, i8** %5
%59 = call i32 @strcat(i8* %58, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %63
60: ; preds = %52
%61 = load i8*, i8** %5
%62 = call i32 @strcat(i8* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %63
63: ; preds = %52, %60, %57, %54
%64 = load i8*, i8** %4
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %64, i64 %67
%69 = load i8, i8* %68
%70 = load i32, i32* %6
%71 = add nsw i32 2, %70
%72 = load i8*, i8** %5
%73 = call i32 @bin_append(i8 signext %69, i32 %71, i8* %72)
%74 = load i32, i32* %7
%75 = add nsw i32 %74, 2
store i32 %75, i32* %7
br label %118
76: ; preds = %11
%77 = load i32, i32* %6
switch i32 %77, label %84 [
i32 2, label %78
i32 3, label %81
]
78: ; preds = %76
%79 = load i8*, i8** %5
%80 = call i32 @strcat(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %84
81: ; preds = %76
%82 = load i8*, i8** %5
%83 = call i32 @strcat(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %84
84: ; preds = %76, %81, %78
%85 = load i8*, i8** %4
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* %85, i64 %88
%90 = load i8, i8* %89
%91 = load i32, i32* %6
%92 = add nsw i32 2, %91
%93 = load i8*, i8** %5
%94 = call i32 @bin_append(i8 signext %90, i32 %92, i8* %93)
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 2
store i32 %96, i32* %7
br label %118
97: ; preds = %11
%98 = load i32, i32* %6
switch i32 %98, label %105 [
i32 2, label %99
i32 3, label %102
]
99: ; preds = %97
%100 = load i8*, i8** %5
%101 = call i32 @strcat(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %105
102: ; preds = %97
%103 = load i8*, i8** %5
%104 = call i32 @strcat(i8* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %105
105: ; preds = %97, %102, %99
%106 = load i8*, i8** %4
%107 = load i32, i32* %7
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, i8* %106, i64 %109
%111 = load i8, i8* %110
%112 = load i32, i32* %6
%113 = add nsw i32 1, %112
%114 = load i8*, i8** %5
%115 = call i32 @bin_append(i8 signext %111, i32 %113, i8* %114)
%116 = load i32, i32* %7
%117 = add nsw i32 %116, 2
store i32 %117, i32* %7
br label %118
118: ; preds = %11, %105, %84, %63, %39, %23, %18
br label %119
119: ; preds = %118
%120 = load i32, i32* %7
%121 = sext i32 %120 to i64
%122 = load i64, i64* %8
%123 = icmp ult i64 %121, %122
br i1 %123, label %11, label %124
124: ; preds = %119
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [3 x i8] c"00\00"
@.str.3 = [4 x i8] c"000\00"
@.str.4 = [3 x i8] c"01\00"
@.str.5 = [4 x i8] c"001\00"
@.str.6 = [3 x i8] c"10\00"
@.str.7 = [4 x i8] c"010\00"
@.str.8 = [3 x i8] c"11\00"
@.str.9 = [4 x i8] c"011\00"
@reltable.microqr_expand_binary = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.1 to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.2 to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.3 to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary to i64)) to i32)]
@reltable.microqr_expand_binary.11 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary.11 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.4 to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary.11 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.5 to i64), i64 ptrtoint ([3 x i32]* @reltable.microqr_expand_binary.11 to i64)) to i32)]
define void @microqr_expand_binary(i8* nocapture %0, i8* %1, i32 %2) {
%4 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%5 = add nsw i32 %2, 1
%6 = add nsw i32 %2, 2
%7 = add nsw i32 %2, 3
%8 = add i32 %2, -1
%9 = icmp ult i32 %8, 3
%10 = sext i32 %8 to i64
%11 = shl i64 %10, 2
%12 = add i32 %2, -1
%13 = icmp ult i32 %12, 3
%14 = sext i32 %12 to i64
%15 = shl i64 %14, 2
br label %16
16: ; preds = %74, %3
%17 = phi i32 [ 0, %3 ], [ %75, %74 ]
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
switch i32 %21, label %74 [
i32 49, label %22
i32 48, label %25
i32 78, label %28
i32 65, label %39
i32 66, label %50
i32 75, label %62
]
22: ; preds = %16
%23 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = add nsw i32 %17, 1
br label %74
25: ; preds = %16
%26 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = add nsw i32 %17, 1
br label %74
28: ; preds = %16
br i1 %13, label %29, label %32
29: ; preds = %28
%30 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.microqr_expand_binary to i8*), i64 %15)
%31 = tail call i32 @strcat(i8* %1, i8* %30)
br label %32
32: ; preds = %28, %29
%33 = add nsw i32 %17, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %0, i64 %34
%36 = load i8, i8* %35
%37 = tail call i32 @bin_append(i8 signext %36, i32 %7, i8* %1)
%38 = add nsw i32 %17, 2
br label %74
39: ; preds = %16
br i1 %9, label %40, label %43
40: ; preds = %39
%41 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.microqr_expand_binary.11 to i8*), i64 %11)
%42 = tail call i32 @strcat(i8* %1, i8* %41)
br label %43
43: ; preds = %39, %40
%44 = add nsw i32 %17, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, i8* %0, i64 %45
%47 = load i8, i8* %46
%48 = tail call i32 @bin_append(i8 signext %47, i32 %6, i8* %1)
%49 = add nsw i32 %17, 2
br label %74
50: ; preds = %16
switch i32 %2, label %55 [
i32 2, label %52
i32 3, label %51
]
51: ; preds = %50
br label %52
52: ; preds = %50, %51
%53 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), %51 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), %50 ]
%54 = tail call i32 @strcat(i8* %1, i8* %53)
br label %55
55: ; preds = %52, %50
%56 = add nsw i32 %17, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %0, i64 %57
%59 = load i8, i8* %58
%60 = tail call i32 @bin_append(i8 signext %59, i32 %6, i8* %1)
%61 = add nsw i32 %17, 2
br label %74
62: ; preds = %16
switch i32 %2, label %67 [
i32 2, label %64
i32 3, label %63
]
63: ; preds = %62
br label %64
64: ; preds = %62, %63
%65 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %63 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), %62 ]
%66 = tail call i32 @strcat(i8* %1, i8* %65)
br label %67
67: ; preds = %64, %62
%68 = add nsw i32 %17, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %0, i64 %69
%71 = load i8, i8* %70
%72 = tail call i32 @bin_append(i8 signext %71, i32 %5, i8* %1)
%73 = add nsw i32 %17, 2
br label %74
74: ; preds = %22, %25, %32, %43, %55, %67, %16
%75 = phi i32 [ %17, %16 ], [ %73, %67 ], [ %61, %55 ], [ %49, %43 ], [ %38, %32 ], [ %27, %25 ], [ %24, %22 ]
%76 = sext i32 %75 to i64
%77 = icmp ugt i64 %4, %76
br i1 %77, label %16, label %78
78: ; preds = %74
ret void
}