#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*/ Base64Encode(char *, char **);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
char toupper(char);
int traductor(char **key, int k_i, int hkdf_i, char **code, int space) {
  char *KI;
  char *HKDFI;
  char *body;
  char *tmp;
  int i, stop;
  KI = (char *)malloc(space * sizeof(char));
  HKDFI = (char *)malloc(space * sizeof(char));
  body = (char *)malloc(2048 * sizeof(char));
  tmp = (char *)malloc(2048 * sizeof(char));
  memset(KI, 0, space);
  memset(HKDFI, 0, space);
  memset(body, 0, 2048);
  if (1) {
    Base64Encode(*key, &body);
    memset(tmp, 0, 2048);
  } else {
    strcpy(body, *key);
  }
  sprintf(KI, "%x", k_i);
  stop = strlen(KI);
  for (i = 0; i < stop; i++) {
    KI[i] = toupper(KI[i]);
  }
  sprintf(HKDFI, "%x", hkdf_i);
  stop = strlen(HKDFI);
  for (i = 0; i < stop; i++) {
    HKDFI[i] = toupper(HKDFI[i]);
  }
  i = strlen(KI) + strlen(HKDFI);
  if (i > space || strlen(KI) != strlen(HKDFI)) {
    printf("Cannot have a %d key for a %d space \n", i, space);
    return 0;
  }
  strcpy(*code, KI);
  strcat(*code, HKDFI);
  strcat(*code, "-");
  stop = strlen(body);
  for (i = 0; i + space < stop; i = i + space) {
    strncat(*code, body + i, space);
    strcat(*code, "-");
  }
  strncat(*code, body + i, space);
  return 1;
}


x86 assembly (clang, -O0):
<traductor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x800,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    $0x800,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x24(%rbp),%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x38(%rbp),%rdi
mov    -0x24(%rbp),%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1080 <memset@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <Base64Encode@plt>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1080 <memset@plt>
mov    -0x30(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xdaa(%rip),%rsi
call   10c0 <sprintf@plt>
mov    -0x30(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    12a6 <traductor+0x106>
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1050 <toupper@plt>
mov    %al,%dl
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    126e <traductor+0xce>
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xd4c(%rip),%rsi
call   10c0 <sprintf@plt>
mov    -0x38(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1304 <traductor+0x164>
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1050 <toupper@plt>
mov    %al,%dl
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12cc <traductor+0x12c>
mov    -0x30(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1351 <traductor+0x1b1>
mov    -0x30(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%eax
cmp    %ecx,%eax
je     136f <traductor+0x1cf>
mov    -0x4c(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xca5(%rip),%rdi
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1420 <traductor+0x280>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x38(%rbp),%rsi
call   10b0 <strcat@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xc8c(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x40(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
add    -0x24(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    13ff <traductor+0x25f>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x40(%rbp),%rsi
movslq -0x4c(%rbp),%rax
add    %rax,%rsi
mov    -0x24(%rbp),%edx
call   1090 <strncat@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xc3d(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x4c(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    13b5 <traductor+0x215>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x40(%rbp),%rsi
movslq -0x4c(%rbp),%rax
add    %rax,%rsi
mov    -0x24(%rbp),%edx
call   1090 <strncat@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<traductor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8d,%ebx
mov    %rcx,0x18(%rsp)
mov    %edx,0x10(%rsp)
mov    %esi,%ebp
mov    %rdi,0x20(%rsp)
mov    %r8d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   10a0 <malloc@plt>
mov    %rax,%r15
mov    $0x800,%edi
call   10a0 <malloc@plt>
mov    %rax,%r13
mov    %rax,0x8(%rsp)
mov    $0x800,%edi
call   10a0 <malloc@plt>
mov    %rax,%r12
mov    %r14,%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %ebx,0x4(%rsp)
mov    %ebx,%edx
call   1080 <memset@plt>
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1080 <memset@plt>
mov    0x20(%rsp),%rax
mov    (%rax),%rdi
lea    0x8(%rsp),%rsi
call   1030 <Base64Encode@plt>
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1080 <memset@plt>
lea    0xdb8(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
call   10c0 <sprintf@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1287 <traductor+0xe7>
mov    %eax,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%r14,%rbp,1),%edi
call   1050 <toupper@plt>
mov    %al,(%r14,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1270 <traductor+0xd0>
lea    0xd72(%rip),%rsi
mov    %r15,%rdi
mov    0x10(%rsp),%edx
call   10c0 <sprintf@plt>
mov    %r15,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    12c7 <traductor+0x127>
mov    %eax,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsbl (%r15,%rbp,1),%edi
call   1050 <toupper@plt>
mov    %al,(%r15,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    12b0 <traductor+0x110>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    %eax,%r13d
mov    %r15,%rdi
call   1060 <strlen@plt>
mov    %eax,%r12d
add    %r13d,%r12d
cmp    0x4(%rsp),%r12d
jg     13ac <traductor+0x20c>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    %eax,%r13d
mov    %r15,%rdi
call   1060 <strlen@plt>
cmp    %eax,%r13d
jne    13ac <traductor+0x20c>
mov    0x18(%rsp),%r12
mov    (%r12),%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    (%r12),%rdi
mov    %r15,%rsi
call   10b0 <strcat@plt>
mov    (%r12),%rdi
lea    0xcfa(%rip),%rsi
call   10b0 <strcat@plt>
mov    0x8(%rsp),%rdi
call   1060 <strlen@plt>
mov    0x4(%rsp),%r13d
cmp    %r13d,%eax
jle    13c3 <traductor+0x223>
movslq %r13d,%r14
cltq
mov    %rax,0x10(%rsp)
mov    %r14,%rbp
shl    $0x20,%rbp
xor    %ebx,%ebx
mov    %r12,%r15
mov    %r14,%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r15),%rdi
mov    %rbx,%rsi
sar    $0x20,%rsi
add    0x8(%rsp),%rsi
mov    %r13d,%edx
call   1090 <strncat@plt>
mov    (%r15),%rdi
lea    0xc98(%rip),%rsi
call   10b0 <strcat@plt>
add    %r14,%r12
add    %rbp,%rbx
cmp    0x10(%rsp),%r12
jl     1370 <traductor+0x1d0>
sar    $0x20,%rbx
mov    %r15,%r12
jmp    13c5 <traductor+0x225>
lea    0xc50(%rip),%rdi
mov    %r12d,%esi
mov    0x4(%rsp),%edx
call   1070 <printf@plt>
xor    %eax,%eax
jmp    13de <traductor+0x23e>
xor    %ebx,%ebx
mov    (%r12),%rdi
add    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    %r13d,%edx
call   1090 <strncat@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%x\00"
@.str.1 = [38 x i8] c"Cannot have a %d key for a %d space \0A\00"
@.str.2 = [2 x i8] c"-\00"
define i32 @traductor(i8** %0, i32 %1, i32 %2, i8** %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8**
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i8** %0, i8*** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i8** %3, i8*** %10
store i32 %4, i32* %11
%18 = load i32, i32* %11
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 1
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 %21)
%23 = inttoptr i64 %22 to i8*
store i8* %23, i8** %12
%24 = load i32, i32* %11
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 1
%27 = trunc i64 %26 to i32
%28 = call i64 @malloc(i32 %27)
%29 = inttoptr i64 %28 to i8*
store i8* %29, i8** %13
%30 = call i64 @malloc(i32 2048)
%31 = inttoptr i64 %30 to i8*
store i8* %31, i8** %14
%32 = call i64 @malloc(i32 2048)
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %15
%34 = load i8*, i8** %12
%35 = load i32, i32* %11
%36 = call i32 @memset(i8* %34, i32 0, i32 %35)
%37 = load i8*, i8** %13
%38 = load i32, i32* %11
%39 = call i32 @memset(i8* %37, i32 0, i32 %38)
%40 = load i8*, i8** %14
%41 = call i32 @memset(i8* %40, i32 0, i32 2048)
%42 = load i8**, i8*** %7
%43 = load i8*, i8** %42
%44 = call i32 @Base64Encode(i8* %43, i8** %14)
%45 = load i8*, i8** %15
%46 = call i32 @memset(i8* %45, i32 0, i32 2048)
%47 = load i8*, i8** %12
%48 = load i32, i32* %8
%49 = call i32 @sprintf(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %48)
%50 = load i8*, i8** %12
%51 = call i32 @strlen(i8* %50)
store i32 %51, i32* %17
store i32 0, i32* %16
br label %52
52: ; preds = %67, %5
%53 = load i32, i32* %16
%54 = load i32, i32* %17
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %70
56: ; preds = %52
%57 = load i8*, i8** %12
%58 = load i32, i32* %16
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = load i8, i8* %60
%62 = call signext i8 @toupper(i8 signext %61)
%63 = load i8*, i8** %12
%64 = load i32, i32* %16
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %63, i64 %65
store i8 %62, i8* %66
br label %67
67: ; preds = %56
%68 = load i32, i32* %16
%69 = add nsw i32 %68, 1
store i32 %69, i32* %16
br label %52
70: ; preds = %52
%71 = load i8*, i8** %13
%72 = load i32, i32* %9
%73 = call i32 @sprintf(i8* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %72)
%74 = load i8*, i8** %13
%75 = call i32 @strlen(i8* %74)
store i32 %75, i32* %17
store i32 0, i32* %16
br label %76
76: ; preds = %91, %70
%77 = load i32, i32* %16
%78 = load i32, i32* %17
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %94
80: ; preds = %76
%81 = load i8*, i8** %13
%82 = load i32, i32* %16
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %81, i64 %83
%85 = load i8, i8* %84
%86 = call signext i8 @toupper(i8 signext %85)
%87 = load i8*, i8** %13
%88 = load i32, i32* %16
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %87, i64 %89
store i8 %86, i8* %90
br label %91
91: ; preds = %80
%92 = load i32, i32* %16
%93 = add nsw i32 %92, 1
store i32 %93, i32* %16
br label %76
94: ; preds = %76
%95 = load i8*, i8** %12
%96 = call i32 @strlen(i8* %95)
%97 = load i8*, i8** %13
%98 = call i32 @strlen(i8* %97)
%99 = add nsw i32 %96, %98
store i32 %99, i32* %16
%100 = load i32, i32* %16
%101 = load i32, i32* %11
%102 = icmp sgt i32 %100, %101
br i1 %102, label %109, label %103
103: ; preds = %94
%104 = load i8*, i8** %12
%105 = call i32 @strlen(i8* %104)
%106 = load i8*, i8** %13
%107 = call i32 @strlen(i8* %106)
%108 = icmp ne i32 %105, %107
br i1 %108, label %109, label %113
109: ; preds = %103, %94
%110 = load i32, i32* %16
%111 = load i32, i32* %11
%112 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %110, i32 %111)
store i32 0, i32* %6
br label %158
113: ; preds = %103
%114 = load i8**, i8*** %10
%115 = load i8*, i8** %114
%116 = load i8*, i8** %12
%117 = call i32 @strcpy(i8* %115, i8* %116)
%118 = load i8**, i8*** %10
%119 = load i8*, i8** %118
%120 = load i8*, i8** %13
%121 = call i32 @strcat(i8* %119, i8* %120)
%122 = load i8**, i8*** %10
%123 = load i8*, i8** %122
%124 = call i32 @strcat(i8* %123, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%125 = load i8*, i8** %14
%126 = call i32 @strlen(i8* %125)
store i32 %126, i32* %17
store i32 0, i32* %16
br label %127
127: ; preds = %145, %113
%128 = load i32, i32* %16
%129 = load i32, i32* %11
%130 = add nsw i32 %128, %129
%131 = load i32, i32* %17
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %149
133: ; preds = %127
%134 = load i8**, i8*** %10
%135 = load i8*, i8** %134
%136 = load i8*, i8** %14
%137 = load i32, i32* %16
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, i8* %136, i64 %138
%140 = load i32, i32* %11
%141 = call i32 @strncat(i8* %135, i8* %139, i32 %140)
%142 = load i8**, i8*** %10
%143 = load i8*, i8** %142
%144 = call i32 @strcat(i8* %143, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %145
145: ; preds = %133
%146 = load i32, i32* %16
%147 = load i32, i32* %11
%148 = add nsw i32 %146, %147
store i32 %148, i32* %16
br label %127
149: ; preds = %127
%150 = load i8**, i8*** %10
%151 = load i8*, i8** %150
%152 = load i8*, i8** %14
%153 = load i32, i32* %16
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds i8, i8* %152, i64 %154
%156 = load i32, i32* %11
%157 = call i32 @strncat(i8* %151, i8* %155, i32 %156)
store i32 1, i32* %6
br label %158
158: ; preds = %149, %109
%159 = load i32, i32* %6
ret i32 %159
}

LLVM IR (-O2):
@.str = [3 x i8] c"%x\00"
@.str.1 = [38 x i8] c"Cannot have a %d key for a %d space \0A\00"
@.str.2 = [2 x i8] c"-\00"
define i32 @traductor(i8** nocapture %0, i32 %1, i32 %2, i8** nocapture %3, i32 %4) {
%6 = alloca i8*
%7 = bitcast i8** %6 to i8*
%8 = tail call i64 @malloc(i32 %4)
%9 = inttoptr i64 %8 to i8*
%10 = tail call i64 @malloc(i32 %4)
%11 = inttoptr i64 %10 to i8*
%12 = tail call i64 @malloc(i32 2048)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %6
%14 = tail call i64 @malloc(i32 2048)
%15 = inttoptr i64 %14 to i8*
%16 = tail call i32 @memset(i8* %9, i32 0, i32 %4)
%17 = tail call i32 @memset(i8* %11, i32 0, i32 %4)
%18 = tail call i32 @memset(i8* %13, i32 0, i32 2048)
%19 = load i8*, i8** %0
%20 = call i32 @Base64Encode(i8* %19, i8** %6)
%21 = call i32 @memset(i8* %15, i32 0, i32 2048)
%22 = call i32 @sprintf(i8* dereferenceable(1) %9, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%23 = call i32 @strlen(i8* %9)
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %34
25: ; preds = %5
%26 = zext i32 %23 to i64
br label %27
27: ; preds = %25, %27
%28 = phi i64 [ 0, %25 ], [ %32, %27 ]
%29 = getelementptr inbounds i8, i8* %9, i64 %28
%30 = load i8, i8* %29
%31 = call signext i8 @toupper(i8 signext %30)
store i8 %31, i8* %29
%32 = add nuw nsw i64 %28, 1
%33 = icmp eq i64 %32, %26
br i1 %33, label %34, label %27
34: ; preds = %27, %5
%35 = call i32 @sprintf(i8* dereferenceable(1) %11, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
%36 = call i32 @strlen(i8* %11)
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = zext i32 %36 to i64
br label %40
40: ; preds = %38, %40
%41 = phi i64 [ 0, %38 ], [ %45, %40 ]
%42 = getelementptr inbounds i8, i8* %11, i64 %41
%43 = load i8, i8* %42
%44 = call signext i8 @toupper(i8 signext %43)
store i8 %44, i8* %42
%45 = add nuw nsw i64 %41, 1
%46 = icmp eq i64 %45, %39
br i1 %46, label %47, label %40
47: ; preds = %40, %34
%48 = call i32 @strlen(i8* %9)
%49 = call i32 @strlen(i8* %11)
%50 = add nsw i32 %49, %48
%51 = icmp sgt i32 %50, %4
br i1 %51, label %56, label %52
52: ; preds = %47
%53 = call i32 @strlen(i8* %9)
%54 = call i32 @strlen(i8* %11)
%55 = icmp eq i32 %53, %54
br i1 %55, label %58, label %56
56: ; preds = %52, %47
%57 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %50, i32 %4)
br label %93
58: ; preds = %52
%59 = load i8*, i8** %3
%60 = call i32 @strcpy(i8* %59, i8* %9)
%61 = load i8*, i8** %3
%62 = call i32 @strcat(i8* %61, i8* %11)
%63 = load i8*, i8** %3
%64 = call i32 @strcat(i8* %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%65 = load i8*, i8** %6
%66 = call i32 @strlen(i8* %65)
%67 = icmp sgt i32 %66, %4
br i1 %67, label %68, label %87
68: ; preds = %58
%69 = sext i32 %4 to i64
%70 = sext i32 %66 to i64
br label %71
71: ; preds = %68, %71
%72 = phi i64 [ %69, %68 ], [ %82, %71 ]
%73 = phi i64 [ 0, %68 ], [ %72, %71 ]
%74 = load i8*, i8** %3
%75 = load i8*, i8** %6
%76 = shl i64 %73, 32
%77 = ashr exact i64 %76, 32
%78 = getelementptr inbounds i8, i8* %75, i64 %77
%79 = call i32 @strncat(i8* %74, i8* %78, i32 %4)
%80 = load i8*, i8** %3
%81 = call i32 @strcat(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%82 = add i64 %72, %69
%83 = icmp slt i64 %82, %70
br i1 %83, label %71, label %84
84: ; preds = %71
%85 = shl i64 %72, 32
%86 = ashr exact i64 %85, 32
br label %87
87: ; preds = %84, %58
%88 = phi i64 [ 0, %58 ], [ %86, %84 ]
%89 = load i8*, i8** %3
%90 = load i8*, i8** %6
%91 = getelementptr inbounds i8, i8* %90, i64 %88
%92 = call i32 @strncat(i8* %89, i8* %91, i32 %4)
br label %93
93: ; preds = %87, %56
%94 = phi i32 [ 0, %56 ], [ 1, %87 ]
ret i32 %94
}