#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*/ diran(char *, char, int);
int /*<<< orphan*/ concat(char *, char *);
int strlen(char *);
void microqr_expand_binary(char binary_stream[], char full_stream[],
                           int version) {
  int i, length;
  length = strlen(binary_stream);
  i = 0;
  do {
    switch (binary_stream[i]) {
    case '1':
      concat(full_stream, "1");
      i++;
      break;
    case '0':
      concat(full_stream, "0");
      i++;
      break;
    case 'N':
      switch (version) {
      case 1:
        concat(full_stream, "0");
        break;
      case 2:
        concat(full_stream, "00");
        break;
      case 3:
        concat(full_stream, "000");
        break;
      }
      diran(full_stream, binary_stream[i + 1], 4 << version);
      i += 2;
      break;
    case 'A':
      switch (version) {
      case 1:
        concat(full_stream, "1");
        break;
      case 2:
        concat(full_stream, "01");
        break;
      case 3:
        concat(full_stream, "001");
        break;
      }
      diran(full_stream, binary_stream[i + 1], 2 << version);
      i += 2;
      break;
    case 'B':
      switch (version) {
      case 2:
        concat(full_stream, "10");
        break;
      case 3:
        concat(full_stream, "010");
        break;
      }
      diran(full_stream, binary_stream[i + 1], 2 << version);
      i += 2;
      break;
    case 'K':
      switch (version) {
      case 2:
        concat(full_stream, "11");
        break;
      case 3:
        concat(full_stream, "011");
        break;
      }
      diran(full_stream, binary_stream[i + 1], 1 << version);
      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   1040 <strlen@plt>
mov    %eax,-0x1c(%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     1403 <microqr_expand_binary+0x2d3>
mov    -0x28(%rbp),%rax
lea    0xe81(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
lea    0xeef(%rip),%rsi
call   1050 <concat@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1403 <microqr_expand_binary+0x2d3>
mov    -0x10(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1050 <concat@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1403 <microqr_expand_binary+0x2d3>
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
sub    $0x1,%eax
je     11fa <microqr_expand_binary+0xca>
jmp    11d8 <microqr_expand_binary+0xa8>
mov    -0x2c(%rbp),%eax
sub    $0x2,%eax
je     120f <microqr_expand_binary+0xdf>
jmp    11e9 <microqr_expand_binary+0xb9>
mov    -0x2c(%rbp),%eax
sub    $0x3,%eax
je     1224 <microqr_expand_binary+0xf4>
jmp    1234 <microqr_expand_binary+0x104>
mov    -0x10(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1050 <concat@plt>
jmp    1234 <microqr_expand_binary+0x104>
mov    -0x10(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1050 <concat@plt>
jmp    1234 <microqr_expand_binary+0x104>
mov    -0x10(%rbp),%rdi
lea    0xe4d(%rip),%rsi
call   1050 <concat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%ecx
mov    $0x4,%edx
shl    %cl,%edx
movsbl %al,%esi
call   1030 <diran@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1403 <microqr_expand_binary+0x2d3>
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
sub    $0x1,%eax
je     129e <microqr_expand_binary+0x16e>
jmp    127c <microqr_expand_binary+0x14c>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     12b3 <microqr_expand_binary+0x183>
jmp    128d <microqr_expand_binary+0x15d>
mov    -0x30(%rbp),%eax
sub    $0x3,%eax
je     12c8 <microqr_expand_binary+0x198>
jmp    12d8 <microqr_expand_binary+0x1a8>
mov    -0x10(%rbp),%rdi
lea    0xdd9(%rip),%rsi
call   1050 <concat@plt>
jmp    12d8 <microqr_expand_binary+0x1a8>
mov    -0x10(%rbp),%rdi
lea    0xdc3(%rip),%rsi
call   1050 <concat@plt>
jmp    12d8 <microqr_expand_binary+0x1a8>
mov    -0x10(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1050 <concat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%ecx
mov    $0x2,%edx
shl    %cl,%edx
movsbl %al,%esi
call   1030 <diran@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1403 <microqr_expand_binary+0x2d3>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
sub    $0x2,%eax
je     1331 <microqr_expand_binary+0x201>
jmp    1320 <microqr_expand_binary+0x1f0>
mov    -0x34(%rbp),%eax
sub    $0x3,%eax
je     1346 <microqr_expand_binary+0x216>
jmp    1356 <microqr_expand_binary+0x226>
mov    -0x10(%rbp),%rdi
lea    0xd49(%rip),%rsi
call   1050 <concat@plt>
jmp    1356 <microqr_expand_binary+0x226>
mov    -0x10(%rbp),%rdi
lea    0xd33(%rip),%rsi
call   1050 <concat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%ecx
mov    $0x2,%edx
shl    %cl,%edx
movsbl %al,%esi
call   1030 <diran@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1403 <microqr_expand_binary+0x2d3>
mov    -0x14(%rbp),%eax
mov    %eax,-0x38(%rbp)
sub    $0x2,%eax
je     13af <microqr_expand_binary+0x27f>
jmp    139e <microqr_expand_binary+0x26e>
mov    -0x38(%rbp),%eax
sub    $0x3,%eax
je     13c4 <microqr_expand_binary+0x294>
jmp    13d4 <microqr_expand_binary+0x2a4>
mov    -0x10(%rbp),%rdi
lea    0xccf(%rip),%rsi
call   1050 <concat@plt>
jmp    13d4 <microqr_expand_binary+0x2a4>
mov    -0x10(%rbp),%rdi
lea    0xcb9(%rip),%rsi
call   1050 <concat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
movsbl %al,%esi
call   1030 <diran@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1408 <microqr_expand_binary+0x2d8>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     1156 <microqr_expand_binary+0x26>
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,%r14d
mov    %rsi,%r15
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    $0x1,%eax
mov    %r14d,%ecx
shl    %cl,%eax
mov    %eax,0x1c(%rsp)
mov    $0x2,%eax
shl    %cl,%eax
mov    %eax,0xc(%rsp)
mov    $0x4,%eax
shl    %cl,%eax
mov    %eax,0x18(%rsp)
mov    %r14,0x10(%rsp)
lea    -0x1(%r14),%eax
mov    %eax,0x8(%rsp)
cltq
shl    $0x2,%rax
mov    %rax,0x20(%rsp)
xor    %r14d,%r14d
lea    0xe6c(%rip),%r12
jmp    11b8 <microqr_expand_binary+0x88>
movsbl 0x1(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    0x18(%rsp),%edx
call   1030 <diran@plt>
add    $0x2,%r13d
mov    %r13d,%r14d
cmp    %ebp,%r14d
jge    12a5 <microqr_expand_binary+0x175>
movslq %r14d,%r13
movsbl (%rbx,%r13,1),%eax
add    $0xffffffd0,%eax
cmp    $0x1e,%eax
ja     11af <microqr_expand_binary+0x7f>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
mov    %r15,%rdi
lea    0xebb(%rip),%rsi
jmp    11e7 <microqr_expand_binary+0xb7>
mov    %r15,%rdi
lea    0xeb3(%rip),%rsi
call   1050 <concat@plt>
add    $0x1,%r14d
jmp    11af <microqr_expand_binary+0x7f>
cmpl   $0x2,0x8(%rsp)
ja     1232 <microqr_expand_binary+0x102>
mov    0x20(%rsp),%rax
lea    0xe83(%rip),%rcx
movslq (%rax,%rcx,1),%rsi
add    %rcx,%rsi
jmp    122a <microqr_expand_binary+0xfa>
lea    0xe88(%rip),%rsi
cmpl   $0x2,0x10(%rsp)
je     122a <microqr_expand_binary+0xfa>
cmpl   $0x3,0x10(%rsp)
jne    1232 <microqr_expand_binary+0x102>
lea    0xe72(%rip),%rsi
mov    %r15,%rdi
call   1050 <concat@plt>
movsbl 0x1(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    0xc(%rsp),%edx
jmp    11a3 <microqr_expand_binary+0x73>
lea    0xe56(%rip),%rsi
cmpl   $0x2,0x10(%rsp)
je     1260 <microqr_expand_binary+0x130>
cmpl   $0x3,0x10(%rsp)
jne    1268 <microqr_expand_binary+0x138>
lea    0xe40(%rip),%rsi
mov    %r15,%rdi
call   1050 <concat@plt>
movsbl 0x1(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    0x1c(%rsp),%edx
jmp    11a3 <microqr_expand_binary+0x73>
cmpl   $0x2,0x8(%rsp)
ja     1196 <microqr_expand_binary+0x66>
mov    0x20(%rsp),%rax
lea    0xdeb(%rip),%rcx
movslq (%rax,%rcx,1),%rsi
add    %rcx,%rsi
mov    %r15,%rdi
call   1050 <concat@plt>
jmp    1196 <microqr_expand_binary+0x66>
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 i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
store i32 %10, i32* %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 @concat(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 @concat(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 @concat(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 @concat(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 @concat(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** %5
%41 = load i8*, i8** %4
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %41, i64 %44
%46 = load i8, i8* %45
%47 = load i32, i32* %6
%48 = shl i32 4, %47
%49 = call i32 @diran(i8* %40, i8 signext %46, i32 %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 @concat(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 @concat(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 @concat(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** %5
%65 = load i8*, i8** %4
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, i8* %65, i64 %68
%70 = load i8, i8* %69
%71 = load i32, i32* %6
%72 = shl i32 2, %71
%73 = call i32 @diran(i8* %64, i8 signext %70, i32 %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 @concat(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 @concat(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** %5
%86 = load i8*, i8** %4
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %86, i64 %89
%91 = load i8, i8* %90
%92 = load i32, i32* %6
%93 = shl i32 2, %92
%94 = call i32 @diran(i8* %85, i8 signext %91, i32 %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 @concat(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 @concat(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** %5
%107 = load i8*, i8** %4
%108 = load i32, i32* %7
%109 = add nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %107, i64 %110
%112 = load i8, i8* %111
%113 = load i32, i32* %6
%114 = shl i32 1, %113
%115 = call i32 @diran(i8* %106, i8 signext %112, i32 %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 = load i32, i32* %8
%122 = icmp slt i32 %120, %121
br i1 %122, label %11, label %123
123: ; 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* %0, i8* %1, i32 %2) {
%4 = tail call i32 @strlen(i8* %0)
%5 = shl nuw i32 1, %2
%6 = shl i32 2, %2
%7 = shl i32 4, %2
%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 @concat(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 @concat(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 @concat(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 @diran(i8* %1, i8 signext %36, i32 %7)
%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 @concat(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 @diran(i8* %1, i8 signext %47, i32 %6)
%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 @concat(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 @diran(i8* %1, i8 signext %59, i32 %6)
%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 @concat(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 @diran(i8* %1, i8 signext %71, i32 %5)
%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 = icmp slt i32 %75, %4
br i1 %76, label %16, label %77
77: ; preds = %74
ret void
}