#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*/ memset(char *, int /*<<< orphan*/, int);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
void get_operand_regtype_str(int regtype, char *str, int len) {
  static struct {
    char *name;
    int value;
  } operand_regtypes[] = {
      {"reg_gen", 0x00001},
      {"reg_in", 0x00002},
      {"reg_out", 0x00004},
      {"reg_local", 0x00008},
      {"reg_fpu", 0x00010},
      {"reg_seg", 0x00020},
      {"reg_simd", 0x00040},
      {"reg_sys", 0x00080},
      {"reg_sp", 0x00100},
      {"reg_fp", 0x00200},
      {"reg_pc", 0x00400},
      {"reg_retaddr", 0x00800},
      {"reg_cond", 0x01000},
      {"reg_zero", 0x02000},
      {"reg_ret", 0x04000},
      {"reg_src", 0x10000},
      {"reg_dest", 0x20000},
      {"reg_count", 0x40000},
      {NULL, 0},
  };
  unsigned int i;
  memset(str, 0, len);
  for (i = 0; operand_regtypes[i].name; i++) {
    if (!(regtype & operand_regtypes[i].value))
      continue;
    if (str[0]) {
      do {
        int _i = strlen(" "), _blen = strlen(str), _len = len - 1;
        if (len) {
          strncat(str, " ", _len);
          if (_len <= _i) {
            str[_blen + _len] = '\0';
            len = 0;
          } else {
            len -= _i;
          }
        }
      } while (0);
    }
    do {
      int _i = strlen(operand_regtypes[i].name), _blen = strlen(str),
          _len = len - 1;
      if (len) {
        strncat(str, operand_regtypes[i].name, _len);
        if (_len <= _i) {
          str[_blen + _len] = '\0';
          len = 0;
        } else {
          len -= _i;
        }
      }
    } while (0);
  }
}


x86 assembly (clang, -O0):
<get_operand_regtype_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%edx
xor    %esi,%esi
call   1040 <memset@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
lea    0x2edd(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
cmpq   $0x0,(%rax)
je     12e6 <get_operand_regtype_str+0x1b6>
mov    -0x4(%rbp),%eax
mov    -0x18(%rbp),%ecx
mov    %ecx,%edx
lea    0x2ebd(%rip),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
and    0x8(%rcx),%eax
cmp    $0x0,%eax
jne    119b <get_operand_regtype_str+0x6b>
jmp    12d8 <get_operand_regtype_str+0x1a8>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1231 <get_operand_regtype_str+0x101>
jmp    11ad <get_operand_regtype_str+0x7d>
lea    0xee4(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1227 <get_operand_regtype_str+0xf7>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xeaf(%rip),%rsi
call   1050 <strncat@plt>
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1217 <get_operand_regtype_str+0xe7>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x14(%rbp)
jmp    1222 <get_operand_regtype_str+0xf2>
mov    -0x1c(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1227 <get_operand_regtype_str+0xf7>
jmp    122c <get_operand_regtype_str+0xfc>
jmp    1231 <get_operand_regtype_str+0x101>
jmp    1236 <get_operand_regtype_str+0x106>
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
lea    0x2dfe(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12ce <get_operand_regtype_str+0x19e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
lea    0x2dbd(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
mov    -0x30(%rbp),%edx
call   1050 <strncat@plt>
mov    -0x30(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     12be <get_operand_regtype_str+0x18e>
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x14(%rbp)
jmp    12c9 <get_operand_regtype_str+0x199>
mov    -0x28(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    12ce <get_operand_regtype_str+0x19e>
jmp    12d3 <get_operand_regtype_str+0x1a3>
jmp    12d8 <get_operand_regtype_str+0x1a8>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1157 <get_operand_regtype_str+0x27>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_operand_regtype_str>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,%ebp
mov    %rsi,%r15
mov    %edi,0x14(%rsp)
mov    %rsi,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    $0x8,%r13d
lea    0x2b92(%rip),%rbx
lea    0xf33(%rip),%r12
jmp    1196 <get_operand_regtype_str+0x66>
add    %r15d,%r12d
movslq %r12d,%rax
movb   $0x0,(%r14,%rax,1)
mov    %r14,%r15
lea    0x2b74(%rip),%rbx
lea    0xf15(%rip),%r12
xor    %ebp,%ebp
add    $0x10,%r13
cmp    $0x128,%r13
je     1252 <get_operand_regtype_str+0x122>
mov    0x14(%rsp),%eax
test   %eax,0x0(%r13,%rbx,1)
je     1185 <get_operand_regtype_str+0x55>
cmpb   $0x0,(%r15)
je     11f3 <get_operand_regtype_str+0xc3>
mov    %r12,%rdi
call   1030 <strlen@plt>
mov    %eax,0xc(%rsp)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %eax,%r14d
mov    %ebp,%eax
sub    $0x1,%ebp
jb     11f1 <get_operand_regtype_str+0xc1>
mov    %eax,0x10(%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1050 <strncat@plt>
mov    0xc(%rsp),%ecx
cmp    %ecx,%ebp
jle    11e6 <get_operand_regtype_str+0xb6>
mov    0x10(%rsp),%ebp
sub    %ecx,%ebp
jmp    11f3 <get_operand_regtype_str+0xc3>
add    %ebp,%r14d
movslq %r14d,%rax
movb   $0x0,(%r15,%rax,1)
xor    %ebp,%ebp
mov    -0x8(%r13,%rbx,1),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %eax,0xc(%rsp)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %r15,%r14
mov    %ebp,%r15d
sub    $0x1,%r15d
jb     1172 <get_operand_regtype_str+0x42>
mov    %eax,%r12d
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   1050 <strncat@plt>
mov    0xc(%rsp),%eax
cmp    %eax,%r15d
jle    1167 <get_operand_regtype_str+0x37>
sub    %eax,%ebp
mov    %r14,%r15
lea    0x2aaa(%rip),%rbx
lea    0xe4b(%rip),%r12
jmp    1185 <get_operand_regtype_str+0x55>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.anon = type { i8*, i32 }
@get_operand_regtype_str.operand_regtypes = internal global [19 x %struct.anon] [%struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 1 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i32 2 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0), i32 4 }, %struct.anon { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i32 0, i32 0), i32 8 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i32 0, i32 0), i32 16 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i32 0, i32 0), i32 32 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i32 0, i32 0), i32 64 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i32 128 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i32 0, i32 0), i32 256 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i32 0, i32 0), i32 512 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i32 1024 }, %struct.anon { i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i32 0, i32 0), i32 2048 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i32 4096 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i32 8192 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i32 16384 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i32 65536 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i32 0, i32 0), i32 131072 }, %struct.anon { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i32 262144 }, %struct.anon zeroinitializer]
@.str = [8 x i8] c"reg_gen\00"
@.str.1 = [7 x i8] c"reg_in\00"
@.str.2 = [8 x i8] c"reg_out\00"
@.str.3 = [10 x i8] c"reg_local\00"
@.str.4 = [8 x i8] c"reg_fpu\00"
@.str.5 = [8 x i8] c"reg_seg\00"
@.str.6 = [9 x i8] c"reg_simd\00"
@.str.7 = [8 x i8] c"reg_sys\00"
@.str.8 = [7 x i8] c"reg_sp\00"
@.str.9 = [7 x i8] c"reg_fp\00"
@.str.10 = [7 x i8] c"reg_pc\00"
@.str.11 = [12 x i8] c"reg_retaddr\00"
@.str.12 = [9 x i8] c"reg_cond\00"
@.str.13 = [9 x i8] c"reg_zero\00"
@.str.14 = [8 x i8] c"reg_ret\00"
@.str.15 = [8 x i8] c"reg_src\00"
@.str.16 = [9 x i8] c"reg_dest\00"
@.str.17 = [10 x i8] c"reg_count\00"
@.str.18 = [2 x i8] c" \00"
define void @get_operand_regtype_str(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%14 = load i8*, i8** %5
%15 = load i32, i32* %6
%16 = call i32 @memset(i8* %14, i32 0, i32 %15)
store i32 0, i32* %7
br label %17
17: ; preds = %109, %3
%18 = load i32, i32* %7
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %19
%21 = getelementptr inbounds %struct.anon, %struct.anon* %20, i32 0, i32 0
%22 = load i8*, i8** %21
%23 = icmp ne i8* %22, null
br i1 %23, label %24, label %112
24: ; preds = %17
%25 = load i32, i32* %4
%26 = load i32, i32* %7
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %27
%29 = getelementptr inbounds %struct.anon, %struct.anon* %28, i32 0, i32 1
%30 = load i32, i32* %29
%31 = and i32 %25, %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %34, label %33
33: ; preds = %24
br label %109
34: ; preds = %24
%35 = load i8*, i8** %5
%36 = getelementptr inbounds i8, i8* %35, i64 0
%37 = load i8, i8* %36
%38 = icmp ne i8 %37, 0
br i1 %38, label %39, label %69
39: ; preds = %34
br label %40
40: ; preds = %39
%41 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
store i32 %41, i32* %8
%42 = load i8*, i8** %5
%43 = call i32 @strlen(i8* %42)
store i32 %43, i32* %9
%44 = load i32, i32* %6
%45 = sub nsw i32 %44, 1
store i32 %45, i32* %10
%46 = load i32, i32* %6
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %67
48: ; preds = %40
%49 = load i8*, i8** %5
%50 = load i32, i32* %10
%51 = call i32 @strncat(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %10
%53 = load i32, i32* %8
%54 = icmp sle i32 %52, %53
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load i8*, i8** %5
%57 = load i32, i32* %9
%58 = load i32, i32* %10
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, i8* %56, i64 %60
store i8 0, i8* %61
store i32 0, i32* %6
br label %66
62: ; preds = %48
%63 = load i32, i32* %8
%64 = load i32, i32* %6
%65 = sub nsw i32 %64, %63
store i32 %65, i32* %6
br label %66
66: ; preds = %62, %55
br label %67
67: ; preds = %66, %40
br label %68
68: ; preds = %67
br label %69
69: ; preds = %68, %34
br label %70
70: ; preds = %69
%71 = load i32, i32* %7
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %72
%74 = getelementptr inbounds %struct.anon, %struct.anon* %73, i32 0, i32 0
%75 = load i8*, i8** %74
%76 = call i32 @strlen(i8* %75)
store i32 %76, i32* %11
%77 = load i8*, i8** %5
%78 = call i32 @strlen(i8* %77)
store i32 %78, i32* %12
%79 = load i32, i32* %6
%80 = sub nsw i32 %79, 1
store i32 %80, i32* %13
%81 = load i32, i32* %6
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %107
83: ; preds = %70
%84 = load i8*, i8** %5
%85 = load i32, i32* %7
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %86
%88 = getelementptr inbounds %struct.anon, %struct.anon* %87, i32 0, i32 0
%89 = load i8*, i8** %88
%90 = load i32, i32* %13
%91 = call i32 @strncat(i8* %84, i8* %89, i32 %90)
%92 = load i32, i32* %13
%93 = load i32, i32* %11
%94 = icmp sle i32 %92, %93
br i1 %94, label %95, label %102
95: ; preds = %83
%96 = load i8*, i8** %5
%97 = load i32, i32* %12
%98 = load i32, i32* %13
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, i8* %96, i64 %100
store i8 0, i8* %101
store i32 0, i32* %6
br label %106
102: ; preds = %83
%103 = load i32, i32* %11
%104 = load i32, i32* %6
%105 = sub nsw i32 %104, %103
store i32 %105, i32* %6
br label %106
106: ; preds = %102, %95
br label %107
107: ; preds = %106, %70
br label %108
108: ; preds = %107
br label %109
109: ; preds = %108, %33
%110 = load i32, i32* %7
%111 = add i32 %110, 1
store i32 %111, i32* %7
br label %17
112: ; preds = %17
ret void
}

LLVM IR (-O2):
%struct.anon = type { i8*, i32 }
@get_operand_regtype_str.operand_regtypes = internal unnamed_addr constant [19 x %struct.anon] [%struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 1 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i32 2 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0), i32 4 }, %struct.anon { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i32 0, i32 0), i32 8 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i32 0, i32 0), i32 16 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i32 0, i32 0), i32 32 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i32 0, i32 0), i32 64 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i32 128 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i32 0, i32 0), i32 256 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i32 0, i32 0), i32 512 }, %struct.anon { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i32 1024 }, %struct.anon { i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i32 0, i32 0), i32 2048 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i32 4096 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i32 8192 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i32 16384 }, %struct.anon { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i32 65536 }, %struct.anon { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i32 0, i32 0), i32 131072 }, %struct.anon { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i32 262144 }, %struct.anon zeroinitializer]
@.str = [8 x i8] c"reg_gen\00"
@.str.1 = [7 x i8] c"reg_in\00"
@.str.2 = [8 x i8] c"reg_out\00"
@.str.3 = [10 x i8] c"reg_local\00"
@.str.4 = [8 x i8] c"reg_fpu\00"
@.str.5 = [8 x i8] c"reg_seg\00"
@.str.6 = [9 x i8] c"reg_simd\00"
@.str.7 = [8 x i8] c"reg_sys\00"
@.str.8 = [7 x i8] c"reg_sp\00"
@.str.9 = [7 x i8] c"reg_fp\00"
@.str.10 = [7 x i8] c"reg_pc\00"
@.str.11 = [12 x i8] c"reg_retaddr\00"
@.str.12 = [9 x i8] c"reg_cond\00"
@.str.13 = [9 x i8] c"reg_zero\00"
@.str.14 = [8 x i8] c"reg_ret\00"
@.str.15 = [8 x i8] c"reg_src\00"
@.str.16 = [9 x i8] c"reg_dest\00"
@.str.17 = [10 x i8] c"reg_count\00"
@.str.18 = [2 x i8] c" \00"
define void @get_operand_regtype_str(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 @memset(i8* %1, i32 0, i32 %2)
br label %5
5: ; preds = %3, %46
%6 = phi i64 [ 0, %3 ], [ %48, %46 ]
%7 = phi i8** [ getelementptr inbounds ([19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 0, i32 0), %3 ], [ %49, %46 ]
%8 = phi i32 [ %2, %3 ], [ %47, %46 ]
%9 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %6, i32 1
%10 = load i32, i32* %9
%11 = and i32 %10, %0
%12 = icmp eq i32 %11, 0
br i1 %12, label %46, label %13
13: ; preds = %5
%14 = load i8, i8* %1
%15 = icmp eq i8 %14, 0
br i1 %15, label %30, label %16
16: ; preds = %13
%17 = tail call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
%18 = tail call i32 @strlen(i8* %1)
%19 = add nsw i32 %8, -1
%20 = icmp eq i32 %8, 0
br i1 %20, label %30, label %21
21: ; preds = %16
%22 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i32 %19)
%23 = icmp sgt i32 %19, %17
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = add nsw i32 %18, %19
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %1, i64 %26
store i8 0, i8* %27
br label %30
28: ; preds = %21
%29 = sub nsw i32 %8, %17
br label %30
30: ; preds = %16, %28, %24, %13
%31 = phi i32 [ %8, %13 ], [ 0, %24 ], [ %29, %28 ], [ 0, %16 ]
%32 = load i8*, i8** %7
%33 = tail call i32 @strlen(i8* %32)
%34 = tail call i32 @strlen(i8* %1)
%35 = add nsw i32 %31, -1
%36 = icmp eq i32 %31, 0
br i1 %36, label %46, label %37
37: ; preds = %30
%38 = tail call i32 @strncat(i8* %1, i8* %32, i32 %35)
%39 = icmp sgt i32 %35, %33
br i1 %39, label %44, label %40
40: ; preds = %37
%41 = add nsw i32 %34, %35
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %1, i64 %42
store i8 0, i8* %43
br label %46
44: ; preds = %37
%45 = sub nsw i32 %31, %33
br label %46
46: ; preds = %30, %44, %40, %5
%47 = phi i32 [ %8, %5 ], [ 0, %40 ], [ %45, %44 ], [ 0, %30 ]
%48 = add nuw nsw i64 %6, 1
%49 = getelementptr inbounds [19 x %struct.anon], [19 x %struct.anon]* @get_operand_regtype_str.operand_regtypes, i64 0, i64 %48, i32 0
%50 = icmp eq i64 %48, 18
br i1 %50, label %51, label %5
51: ; preds = %46
ret void
}