#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 */
char *BinString(char, char *, int);
int /*<<< orphan*/ DumpImageDataWide(char *, int, int);
int EmbedChar(int, char, char *, char *);
scalar_t__ isprint(unsigned char);
char *malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
void TestEmbedBit(char c, char *source, int arrsize, int resultf,
                  char *resultem) {
  int internal;
  char *dest;
  int idx = 0;
  char buf[9];
  memset(buf, 0, 9 * sizeof(char));
  printf("Test: Pixels (0x%p) = {", (source ? source : "NULL"));
  DumpImageDataWide(source, arrsize, 3);
  printf("\n} encoded with character [0x%02x '%c' %s] == {", (unsigned char)c,
         (unsigned char)(isprint((unsigned char)c) ? c : '.'),
         BinString(c, buf, 8));
  DumpImageDataWide(resultem, arrsize, 3);
  printf("\n}\n");
  dest = NULL;
  if (source != NULL && arrsize > 0) {
    dest = malloc(arrsize * sizeof(char));
    if (dest == NULL) {
      printf("Out of memory!!! \n\n\n");
      return;
    }
  }
  internal = EmbedChar(arrsize, c, source, dest);
  if (internal == resultf) {
    printf("The function works!!\n");
  } else {
    printf("The function is fucked!\n\n\n");
    return;
  }
  printf("Compare arrays:\n");
  for (idx = 0; idx < 8; idx++) {
    printf("%02x == %02x (%s)\n", (unsigned char)dest[idx],
           (unsigned char)resultem[idx],
           ((unsigned char)dest[idx] == (unsigned char)resultem[idx]
                ? "True"
                : "False"));
  }
  printf("\n\n");
}


x86 assembly (clang, -O0):
<TestEmbedBit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x34(%rbp)
lea    -0x3d(%rbp),%rdi
xor    %esi,%esi
mov    $0x9,%edx
call   1050 <memset@plt>
cmpq   $0x0,-0x10(%rbp)
je     11bb <TestEmbedBit+0x4b>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    11cb <TestEmbedBit+0x5b>
lea    0xe56(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    11cb <TestEmbedBit+0x5b>
mov    -0x48(%rbp),%rsi
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x3,%edx
call   1030 <DumpImageDataWide@plt>
movzbl -0x1(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movzbl -0x1(%rbp),%edi
call   1080 <isprint@plt>
cmp    $0x0,%rax
je     1214 <TestEmbedBit+0xa4>
movsbl -0x1(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    1221 <TestEmbedBit+0xb1>
mov    $0x2e,%eax
mov    %eax,-0x50(%rbp)
jmp    1221 <TestEmbedBit+0xb1>
mov    -0x50(%rbp),%eax
movzbl %al,%eax
mov    %eax,-0x54(%rbp)
mov    -0x1(%rbp),%al
lea    -0x3d(%rbp),%rsi
mov    $0x8,%edx
movsbl %al,%edi
call   1060 <BinString@plt>
mov    -0x4c(%rbp),%esi
mov    -0x54(%rbp),%edx
mov    %rax,%rcx
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x3,%edx
call   1030 <DumpImageDataWide@plt>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movq   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     12c7 <TestEmbedBit+0x157>
cmpl   $0x0,-0x14(%rbp)
jle    12c7 <TestEmbedBit+0x157>
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12c2 <TestEmbedBit+0x152>
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13a1 <TestEmbedBit+0x231>
jmp    12c7 <TestEmbedBit+0x157>
mov    -0x14(%rbp),%edi
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rdx
mov    -0x30(%rbp),%rcx
movsbl %al,%esi
call   1090 <EmbedChar@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    12ff <TestEmbedBit+0x18f>
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1312 <TestEmbedBit+0x1a2>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13a1 <TestEmbedBit+0x231>
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    1393 <TestEmbedBit+0x223>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edi
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%r8d
lea    0xd57(%rip),%rcx
lea    0xd4b(%rip),%rax
cmp    %r8d,%edi
cmove  %rax,%rcx
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1327 <TestEmbedBit+0x1b7>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestEmbedBit>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8,0x10(%rsp)
mov    %ecx,0xc(%rsp)
mov    %edx,%ebp
mov    %rsi,%rbx
mov    %edi,%r13d
lea    0x1f(%rsp),%rdi
xor    %r15d,%r15d
xor    %esi,%esi
mov    $0x9,%edx
call   1060 <memset@plt>
test   %rbx,%rbx
lea    0xe5b(%rip),%rsi
cmovne %rbx,%rsi
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x3,%edx
call   1030 <DumpImageDataWide@plt>
movzbl %r13b,%r14d
mov    %r14d,%edi
call   1090 <isprint@plt>
test   %rax,%rax
mov    $0x2e,%r12d
cmovne %r14d,%r12d
mov    %r13d,%edi
lea    0x1f(%rsp),%rsi
mov    $0x8,%edx
call   1070 <BinString@plt>
lea    0xe0d(%rip),%rdi
mov    %r14d,%esi
mov    0x10(%rsp),%r14
mov    %r12d,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x3,%edx
call   1030 <DumpImageDataWide@plt>
lea    0xe30(%rip),%rdi
call   1040 <puts@plt>
test   %rbx,%rbx
je     125c <TestEmbedBit+0xdc>
test   %ebp,%ebp
jle    125c <TestEmbedBit+0xdc>
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
test   %rax,%rax
je     13a4 <TestEmbedBit+0x224>
movsbl %r13b,%esi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %r15,%rcx
call   10a0 <EmbedChar@plt>
cmp    0xc(%rsp),%eax
jne    139b <TestEmbedBit+0x21b>
lea    0xe0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xe13(%rip),%rdi
call   1040 <puts@plt>
movzbl (%r15),%esi
movzbl (%r14),%edx
cmp    %dl,%sil
lea    0xdbf(%rip),%rbp
lea    0xdbd(%rip),%rbx
mov    %rbx,%rcx
cmove  %rbp,%rcx
lea    0xd97(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x1(%r15),%esi
movzbl 0x1(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x2(%r15),%esi
movzbl 0x2(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x3(%r15),%esi
movzbl 0x3(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x4(%r15),%esi
movzbl 0x4(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x5(%r15),%esi
movzbl 0x5(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x6(%r15),%esi
movzbl 0x6(%r14),%edx
cmp    %dl,%sil
mov    %rbx,%rcx
cmove  %rbp,%rcx
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x7(%r15),%esi
movzbl 0x7(%r14),%edx
cmp    %dl,%sil
cmove  %rbp,%rbx
mov    %r12,%rdi
mov    %rbx,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd26(%rip),%rdi
jmp    13ab <TestEmbedBit+0x22b>
lea    0xccc(%rip),%rdi
jmp    13ab <TestEmbedBit+0x22b>
lea    0xd02(%rip),%rdi
call   1040 <puts@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Test: Pixels (0x%p) = {\00"
@.str.1 = [5 x i8] c"NULL\00"
@.str.2 = [48 x i8] c"\0A} encoded with character [0x%02x '%c' %s] == {\00"
@.str.3 = [4 x i8] c"\0A}\0A\00"
@.str.4 = [21 x i8] c"Out of memory!!! \0A\0A\0A\00"
@.str.5 = [22 x i8] c"The function works!!\0A\00"
@.str.6 = [27 x i8] c"The function is fucked!\0A\0A\0A\00"
@.str.7 = [17 x i8] c"Compare arrays:\0A\00"
@.str.8 = [19 x i8] c"%02x == %02x (%s)\0A\00"
@.str.9 = [5 x i8] c"True\00"
@.str.10 = [6 x i8] c"False\00"
@.str.11 = [3 x i8] c"\0A\0A\00"
define void @TestEmbedBit(i8 signext %0, i8* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i8
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca [9 x i8]
store i8 %0, i8* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
store i32 0, i32* %13
%15 = getelementptr inbounds [9 x i8], [9 x i8]* %14, i64 0, i64 0
%16 = call i32 @memset(i8* %15, i32 0, i32 9)
%17 = load i8*, i8** %7
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %21
19: ; preds = %5
%20 = load i8*, i8** %7
br label %22
21: ; preds = %5
br label %22
22: ; preds = %21, %19
%23 = phi i8* [ %20, %19 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %21 ]
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = load i8*, i8** %7
%26 = load i32, i32* %8
%27 = call i32 @DumpImageDataWide(i8* %25, i32 %26, i32 3)
%28 = load i8, i8* %6
%29 = zext i8 %28 to i32
%30 = load i8, i8* %6
%31 = call i64 @isprint(i8 zeroext %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %22
%34 = load i8, i8* %6
%35 = sext i8 %34 to i32
br label %37
36: ; preds = %22
br label %37
37: ; preds = %36, %33
%38 = phi i32 [ %35, %33 ], [ 46, %36 ]
%39 = trunc i32 %38 to i8
%40 = zext i8 %39 to i32
%41 = load i8, i8* %6
%42 = getelementptr inbounds [9 x i8], [9 x i8]* %14, i64 0, i64 0
%43 = call i8* @BinString(i8 signext %41, i8* %42, i32 8)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %29, i32 %40, i8* %43)
%45 = load i8*, i8** %10
%46 = load i32, i32* %8
%47 = call i32 @DumpImageDataWide(i8* %45, i32 %46, i32 3)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i8* null, i8** %12
%49 = load i8*, i8** %7
%50 = icmp ne i8* %49, null
br i1 %50, label %51, label %65
51: ; preds = %37
%52 = load i32, i32* %8
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %51
%55 = load i32, i32* %8
%56 = sext i32 %55 to i64
%57 = mul i64 %56, 1
%58 = trunc i64 %57 to i32
%59 = call i8* @malloc(i32 %58)
store i8* %59, i8** %12
%60 = load i8*, i8** %12
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %64
62: ; preds = %54
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %117
64: ; preds = %54
br label %65
65: ; preds = %64, %51, %37
%66 = load i32, i32* %8
%67 = load i8, i8* %6
%68 = load i8*, i8** %7
%69 = load i8*, i8** %12
%70 = call i32 @EmbedChar(i32 %66, i8 signext %67, i8* %68, i8* %69)
store i32 %70, i32* %11
%71 = load i32, i32* %11
%72 = load i32, i32* %9
%73 = icmp eq i32 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %65
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
br label %78
76: ; preds = %65
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %117
78: ; preds = %74
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %13
br label %80
80: ; preds = %112, %78
%81 = load i32, i32* %13
%82 = icmp slt i32 %81, 8
br i1 %82, label %83, label %115
83: ; preds = %80
%84 = load i8*, i8** %12
%85 = load i32, i32* %13
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, i8* %84, i64 %86
%88 = load i8, i8* %87
%89 = zext i8 %88 to i32
%90 = load i8*, i8** %10
%91 = load i32, i32* %13
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %90, i64 %92
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
%96 = load i8*, i8** %12
%97 = load i32, i32* %13
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, i8* %96, i64 %98
%100 = load i8, i8* %99
%101 = zext i8 %100 to i32
%102 = load i8*, i8** %10
%103 = load i32, i32* %13
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, i8* %102, i64 %104
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = icmp eq i32 %101, %107
%109 = zext i1 %108 to i64
%110 = select i1 %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %89, i32 %95, i8* %110)
br label %112
112: ; preds = %83
%113 = load i32, i32* %13
%114 = add nsw i32 %113, 1
store i32 %114, i32* %13
br label %80
115: ; preds = %80
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %117
117: ; preds = %115, %76, %62
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"Test: Pixels (0x%p) = {\00"
@.str.1 = [5 x i8] c"NULL\00"
@.str.2 = [48 x i8] c"\0A} encoded with character [0x%02x '%c' %s] == {\00"
@.str.8 = [19 x i8] c"%02x == %02x (%s)\0A\00"
@.str.9 = [5 x i8] c"True\00"
@.str.10 = [6 x i8] c"False\00"
@str = [3 x i8] c"\0A}\00"
@str.12 = [26 x i8] c"The function is fucked!\0A\0A\00"
@str.13 = [21 x i8] c"The function works!!\00"
@str.14 = [16 x i8] c"Compare arrays:\00"
@str.15 = [2 x i8] c"\0A\00"
@str.16 = [20 x i8] c"Out of memory!!! \0A\0A\00"
define void @TestEmbedBit(i8 signext %0, i8* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca [9 x i8]
%7 = getelementptr inbounds [9 x i8], [9 x i8]* %6, i64 0, i64 0
%8 = call i32 @memset(i8* %7, i32 0, i32 9)
%9 = icmp ne i8* %1, null
%10 = select i1 %9, i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = call i32 @DumpImageDataWide(i8* %1, i32 %2, i32 3)
%13 = zext i8 %0 to i32
%14 = call i64 @isprint(i8 zeroext %0)
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i32 46, i32 %13
%17 = call i8* @BinString(i8 signext %0, i8* %7, i32 8)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %13, i32 %16, i8* %17)
%19 = call i32 @DumpImageDataWide(i8* %4, i32 %2, i32 3)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%21 = icmp sgt i32 %2, 0
%22 = and i1 %9, %21
br i1 %22, label %23, label %26
23: ; preds = %5
%24 = call i8* @malloc(i32 %2)
%25 = icmp eq i8* %24, null
br i1 %25, label %103, label %26
26: ; preds = %23, %5
%27 = phi i8* [ %24, %23 ], [ null, %5 ]
%28 = call i32 @EmbedChar(i32 %2, i8 signext %0, i8* %1, i8* %27)
%29 = icmp eq i32 %28, %3
br i1 %29, label %30, label %103
30: ; preds = %26
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.13, i64 0, i64 0))
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.14, i64 0, i64 0))
%33 = load i8, i8* %27
%34 = zext i8 %33 to i32
%35 = load i8, i8* %4
%36 = zext i8 %35 to i32
%37 = icmp eq i8 %33, %35
%38 = select i1 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %34, i32 %36, i8* %38)
%40 = getelementptr inbounds i8, i8* %27, i64 1
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = getelementptr inbounds i8, i8* %4, i64 1
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = icmp eq i8 %41, %44
%47 = select i1 %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %42, i32 %45, i8* %47)
%49 = getelementptr inbounds i8, i8* %27, i64 2
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = getelementptr inbounds i8, i8* %4, i64 2
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = icmp eq i8 %50, %53
%56 = select i1 %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %51, i32 %54, i8* %56)
%58 = getelementptr inbounds i8, i8* %27, i64 3
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = getelementptr inbounds i8, i8* %4, i64 3
%62 = load i8, i8* %61
%63 = zext i8 %62 to i32
%64 = icmp eq i8 %59, %62
%65 = select i1 %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %60, i32 %63, i8* %65)
%67 = getelementptr inbounds i8, i8* %27, i64 4
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = getelementptr inbounds i8, i8* %4, i64 4
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = icmp eq i8 %68, %71
%74 = select i1 %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %69, i32 %72, i8* %74)
%76 = getelementptr inbounds i8, i8* %27, i64 5
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = getelementptr inbounds i8, i8* %4, i64 5
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
%82 = icmp eq i8 %77, %80
%83 = select i1 %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %78, i32 %81, i8* %83)
%85 = getelementptr inbounds i8, i8* %27, i64 6
%86 = load i8, i8* %85
%87 = zext i8 %86 to i32
%88 = getelementptr inbounds i8, i8* %4, i64 6
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = icmp eq i8 %86, %89
%92 = select i1 %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %87, i32 %90, i8* %92)
%94 = getelementptr inbounds i8, i8* %27, i64 7
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = getelementptr inbounds i8, i8* %4, i64 7
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = icmp eq i8 %95, %98
%101 = select i1 %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0)
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %96, i32 %99, i8* %101)
br label %103
103: ; preds = %26, %23, %30
%104 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0), %30 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @str.16, i64 0, i64 0), %23 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.12, i64 0, i64 0), %26 ]
%105 = call i32 @puts(i8* dereferenceable(1) %104)
ret void
}