#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);
scalar_t__ isprint(unsigned char);
char *malloc(int);
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int pixelMessage(char *, char, 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, 2);
  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, 2);
  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;
    }
    memcpy(dest, source, arrsize * sizeof(char));
  }
  internal = pixelMessage(dest, c, arrsize);
  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     11cb <TestEmbedBit+0x4b>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    11db <TestEmbedBit+0x5b>
lea    0xe46(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    11db <TestEmbedBit+0x5b>
mov    -0x48(%rbp),%rsi
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x2,%edx
call   1030 <DumpImageDataWide@plt>
movzbl -0x1(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movzbl -0x1(%rbp),%edi
call   1090 <isprint@plt>
cmp    $0x0,%rax
je     1224 <TestEmbedBit+0xa4>
movsbl -0x1(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    1231 <TestEmbedBit+0xb1>
mov    $0x2e,%eax
mov    %eax,-0x50(%rbp)
jmp    1231 <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   1070 <BinString@plt>
mov    -0x4c(%rbp),%esi
mov    -0x54(%rbp),%edx
mov    %rax,%rcx
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x2,%edx
call   1030 <DumpImageDataWide@plt>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movq   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     12e9 <TestEmbedBit+0x169>
cmpl   $0x0,-0x14(%rbp)
jle    12e9 <TestEmbedBit+0x169>
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12d2 <TestEmbedBit+0x152>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13bf <TestEmbedBit+0x23f>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edx
call   1060 <memcpy@plt>
mov    -0x30(%rbp),%rdi
mov    -0x1(%rbp),%al
mov    -0x14(%rbp),%edx
movsbl %al,%esi
call   10a0 <pixelMessage@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    131d <TestEmbedBit+0x19d>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1330 <TestEmbedBit+0x1b0>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13bf <TestEmbedBit+0x23f>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    13b1 <TestEmbedBit+0x231>
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    0xd39(%rip),%rcx
lea    0xd2d(%rip),%rax
cmp    %r8d,%edi
cmove  %rax,%rcx
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1345 <TestEmbedBit+0x1c5>
lea    0xcab(%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    0xe4b(%rip),%rsi
cmovne %rbx,%rsi
lea    0xe28(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x2,%edx
call   1030 <DumpImageDataWide@plt>
movzbl %r13b,%r14d
mov    %r14d,%edi
call   10a0 <isprint@plt>
test   %rax,%rax
mov    $0x2e,%r12d
cmovne %r14d,%r12d
mov    %r13d,%edi
lea    0x1f(%rsp),%rsi
mov    $0x8,%edx
call   1080 <BinString@plt>
lea    0xdfd(%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    $0x2,%edx
call   1030 <DumpImageDataWide@plt>
lea    0xe20(%rip),%rdi
call   1040 <puts@plt>
test   %rbx,%rbx
je     1279 <TestEmbedBit+0xe9>
test   %ebp,%ebp
jle    1279 <TestEmbedBit+0xe9>
mov    %ebp,%edi
call   1090 <malloc@plt>
test   %rax,%rax
je     13be <TestEmbedBit+0x22e>
mov    %rax,%r15
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1070 <memcpy@plt>
movsbl %r13b,%esi
mov    %r15,%rdi
mov    %ebp,%edx
call   10b0 <pixelMessage@plt>
cmp    0xc(%rsp),%eax
jne    13b5 <TestEmbedBit+0x225>
lea    0xdf0(%rip),%rdi
call   1040 <puts@plt>
lea    0xdf9(%rip),%rdi
call   1040 <puts@plt>
movzbl (%r15),%esi
movzbl (%r14),%edx
cmp    %dl,%sil
lea    0xda5(%rip),%rbp
lea    0xda3(%rip),%rbx
mov    %rbx,%rcx
cmove  %rbp,%rcx
lea    0xd7d(%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    0xd0c(%rip),%rdi
jmp    13c5 <TestEmbedBit+0x235>
lea    0xcb2(%rip),%rdi
jmp    13c5 <TestEmbedBit+0x235>
lea    0xce8(%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 2)
%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 2)
%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 %72
51: ; preds = %37
%52 = load i32, i32* %8
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %72
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 %123
64: ; preds = %54
%65 = load i8*, i8** %12
%66 = load i8*, i8** %7
%67 = load i32, i32* %8
%68 = sext i32 %67 to i64
%69 = mul i64 %68, 1
%70 = trunc i64 %69 to i32
%71 = call i32 @memcpy(i8* %65, i8* %66, i32 %70)
br label %72
72: ; preds = %64, %51, %37
%73 = load i8*, i8** %12
%74 = load i8, i8* %6
%75 = load i32, i32* %8
%76 = call i32 @pixelMessage(i8* %73, i8 signext %74, i32 %75)
store i32 %76, i32* %11
%77 = load i32, i32* %11
%78 = load i32, i32* %9
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %82
80: ; preds = %72
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
br label %84
82: ; preds = %72
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %123
84: ; preds = %80
%85 = 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 %86
86: ; preds = %118, %84
%87 = load i32, i32* %13
%88 = icmp slt i32 %87, 8
br i1 %88, label %89, label %121
89: ; preds = %86
%90 = load i8*, i8** %12
%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** %10
%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** %12
%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 = load i8*, i8** %10
%109 = load i32, i32* %13
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %108, i64 %110
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = icmp eq i32 %107, %113
%115 = zext i1 %114 to i64
%116 = select i1 %114, 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)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %95, i32 %101, i8* %116)
br label %118
118: ; preds = %89
%119 = load i32, i32* %13
%120 = add nsw i32 %119, 1
store i32 %120, i32* %13
br label %86
121: ; preds = %86
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %123
123: ; preds = %121, %82, %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 2)
%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 2)
%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 %28
23: ; preds = %5
%24 = call i8* @malloc(i32 %2)
%25 = icmp eq i8* %24, null
br i1 %25, label %105, label %26
26: ; preds = %23
%27 = call i32 @memcpy(i8* %24, i8* %1, i32 %2)
br label %28
28: ; preds = %26, %5
%29 = phi i8* [ %24, %26 ], [ null, %5 ]
%30 = call i32 @pixelMessage(i8* %29, i8 signext %0, i32 %2)
%31 = icmp eq i32 %30, %3
br i1 %31, label %32, label %105
32: ; preds = %28
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.13, i64 0, i64 0))
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.14, i64 0, i64 0))
%35 = load i8, i8* %29
%36 = zext i8 %35 to i32
%37 = load i8, i8* %4
%38 = zext i8 %37 to i32
%39 = icmp eq i8 %35, %37
%40 = select i1 %39, 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)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %36, i32 %38, i8* %40)
%42 = getelementptr inbounds i8, i8* %29, i64 1
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = getelementptr inbounds i8, i8* %4, i64 1
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = icmp eq i8 %43, %46
%49 = select i1 %48, 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)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %44, i32 %47, i8* %49)
%51 = getelementptr inbounds i8, i8* %29, i64 2
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = getelementptr inbounds i8, i8* %4, i64 2
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = icmp eq i8 %52, %55
%58 = select i1 %57, 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)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %53, i32 %56, i8* %58)
%60 = getelementptr inbounds i8, i8* %29, i64 3
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = getelementptr inbounds i8, i8* %4, i64 3
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = icmp eq i8 %61, %64
%67 = select i1 %66, 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)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %62, i32 %65, i8* %67)
%69 = getelementptr inbounds i8, i8* %29, i64 4
%70 = load i8, i8* %69
%71 = zext i8 %70 to i32
%72 = getelementptr inbounds i8, i8* %4, i64 4
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = icmp eq i8 %70, %73
%76 = select i1 %75, 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)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %71, i32 %74, i8* %76)
%78 = getelementptr inbounds i8, i8* %29, i64 5
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = getelementptr inbounds i8, i8* %4, i64 5
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = icmp eq i8 %79, %82
%85 = select i1 %84, 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)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %80, i32 %83, i8* %85)
%87 = getelementptr inbounds i8, i8* %29, i64 6
%88 = load i8, i8* %87
%89 = zext i8 %88 to i32
%90 = getelementptr inbounds i8, i8* %4, i64 6
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = icmp eq i8 %88, %91
%94 = select i1 %93, 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)
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %89, i32 %92, i8* %94)
%96 = getelementptr inbounds i8, i8* %29, i64 7
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = getelementptr inbounds i8, i8* %4, i64 7
%100 = load i8, i8* %99
%101 = zext i8 %100 to i32
%102 = icmp eq i8 %97, %100
%103 = select i1 %102, 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)
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %98, i32 %101, i8* %103)
br label %105
105: ; preds = %28, %23, %32
%106 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0), %32 ], [ 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), %28 ]
%107 = call i32 @puts(i8* dereferenceable(1) %106)
ret void
}