#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*/ bitstuffFrame(unsigned char *, int, unsigned char *);
long calcStuffBufferBitSize(unsigned char *, int);
int /*<<< orphan*/ free(unsigned char *);
scalar_t__ malloc(long);
int /*<<< orphan*/ printf(char *, ...);
long unbitstuffFrame(unsigned char *, long, unsigned char *);
int testStuffAndUnstuff() {
  unsigned char test[256];
  unsigned char *b1;
  unsigned char *b2;
  int fail = 0;
  for (int i = 0; i < 255; i++) {
    test[i] = i;
  }
  long bits = calcStuffBufferBitSize(test, 256);
  long bytes = (bits + 7) / 8;
  b1 = (unsigned char *)malloc(bytes);
  b2 = (unsigned char *)malloc(bytes);
  bitstuffFrame(test, 256, b1);
  long unret = unbitstuffFrame(b1, bytes, b2);
  if (unret) {
    printf("calcStuffBufferBitSize -- Unstuff issue at %ld\n", unret);
    fail = -1;
  } else {
    for (int i = 0; i < 255; i++) {
      if (test[i] != b2[i]) {
        fail = i;
        printf("calcStuffBufferBitSize -- Failed matching at t %d\n", i);
        break;
      }
    }
  }
  free(b1);
  free(b2);
  if (!fail)
    printf("calcStuffBufferBitSize -- Passed\n");
  return fail;
}


x86 assembly (clang, -O0):
<testStuffAndUnstuff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x114(%rbp)
movl   $0x0,-0x118(%rbp)
cmpl   $0xff,-0x118(%rbp)
jge    11b9 <testStuffAndUnstuff+0x59>
mov    -0x118(%rbp),%eax
mov    %al,%cl
movslq -0x118(%rbp),%rax
mov    %cl,-0x100(%rbp,%rax,1)
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    117f <testStuffAndUnstuff+0x1f>
lea    -0x100(%rbp),%rdi
mov    $0x100,%esi
call   1060 <calcStuffBufferBitSize@plt>
mov    %rax,-0x120(%rbp)
mov    -0x120(%rbp),%rax
add    $0x7,%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rdi
call   1070 <malloc@plt>
mov    %rax,-0x108(%rbp)
mov    -0x128(%rbp),%rdi
call   1070 <malloc@plt>
mov    %rax,-0x110(%rbp)
lea    -0x100(%rbp),%rdi
mov    -0x108(%rbp),%rdx
mov    $0x100,%esi
call   1050 <bitstuffFrame@plt>
mov    -0x108(%rbp),%rdi
mov    -0x128(%rbp),%rsi
mov    -0x110(%rbp),%rdx
call   1080 <unbitstuffFrame@plt>
mov    %rax,-0x130(%rbp)
cmpq   $0x0,-0x130(%rbp)
je     127e <testStuffAndUnstuff+0x11e>
mov    -0x130(%rbp),%rsi
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x114(%rbp)
ff ff ff
jmp    1304 <testStuffAndUnstuff+0x1a4>
movl   $0x0,-0x134(%rbp)
cmpl   $0xff,-0x134(%rbp)
jge    12ff <testStuffAndUnstuff+0x19f>
movslq -0x134(%rbp),%rax
movzbl -0x100(%rbp,%rax,1),%eax
ff
mov    -0x110(%rbp),%rcx
movslq -0x134(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     12e6 <testStuffAndUnstuff+0x186>
mov    -0x134(%rbp),%eax
mov    %eax,-0x114(%rbp)
mov    -0x134(%rbp),%esi
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12ff <testStuffAndUnstuff+0x19f>
jmp    12eb <testStuffAndUnstuff+0x18b>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    1288 <testStuffAndUnstuff+0x128>
jmp    1304 <testStuffAndUnstuff+0x1a4>
mov    -0x108(%rbp),%rdi
call   1030 <free@plt>
mov    -0x110(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x114(%rbp)
jne    1337 <testStuffAndUnstuff+0x1d7>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testStuffAndUnstuff>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x108,%rsp
movaps 0xe7b(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe80(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe84(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe88(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe90(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe94(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe98(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe9c(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe9f(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movabs $0xf7f6f5f4f3f2f1f0,%rax
f5 f6 f7
mov    %rax,0xf0(%rsp)
movl   $0xfbfaf9f8,0xf8(%rsp)
f8 f9 fa fb
movw   $0xfdfc,0xfc(%rsp)
movb   $0xfe,0xfe(%rsp)
fe
mov    %rsp,%r12
mov    %r12,%rdi
mov    $0x100,%esi
call   1070 <calcStuffBufferBitSize@plt>
lea    0x7(%rax),%rcx
lea    0xe(%rax),%rbx
test   %rcx,%rcx
cmovns %rcx,%rbx
sar    $0x3,%rbx
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    %r12,%rdi
mov    $0x100,%esi
mov    %r14,%rdx
call   1060 <bitstuffFrame@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1090 <unbitstuffFrame@plt>
test   %rax,%rax
je     12e9 <testStuffAndUnstuff+0x179>
lea    0xe18(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%ebx
jmp    1361 <testStuffAndUnstuff+0x1f1>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movzbl (%rsp,%rbx,1),%eax
cmp    (%r15,%rbx,1),%al
jne    1351 <testStuffAndUnstuff+0x1e1>
movzbl 0x1(%rsp,%rbx,1),%eax
cmp    0x1(%r15,%rbx,1),%al
jne    133b <testStuffAndUnstuff+0x1cb>
movzbl 0x2(%rsp,%rbx,1),%eax
cmp    0x2(%r15,%rbx,1),%al
jne    1341 <testStuffAndUnstuff+0x1d1>
movzbl 0x3(%rsp,%rbx,1),%eax
cmp    0x3(%r15,%rbx,1),%al
jne    1347 <testStuffAndUnstuff+0x1d7>
movzbl 0x4(%rsp,%rbx,1),%eax
cmp    0x4(%r15,%rbx,1),%al
jne    134d <testStuffAndUnstuff+0x1dd>
add    $0x5,%rbx
cmp    $0xff,%rbx
jne    12f0 <testStuffAndUnstuff+0x180>
xor    %ebx,%ebx
jmp    1361 <testStuffAndUnstuff+0x1f1>
add    $0x1,%rbx
jmp    1351 <testStuffAndUnstuff+0x1e1>
add    $0x2,%rbx
jmp    1351 <testStuffAndUnstuff+0x1e1>
add    $0x3,%rbx
jmp    1351 <testStuffAndUnstuff+0x1e1>
add    $0x4,%rbx
lea    0xdc8(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
test   %ebx,%ebx
jne    1381 <testStuffAndUnstuff+0x211>
lea    0xdd7(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [48 x i8] c"calcStuffBufferBitSize -- Unstuff issue at %ld\0A\00"
@.str.1 = [51 x i8] c"calcStuffBufferBitSize -- Failed matching at t %d\0A\00"
@.str.2 = [34 x i8] c"calcStuffBufferBitSize -- Passed\0A\00"
define i32 @testStuffAndUnstuff() {
%1 = alloca [256 x i8]
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i32
store i32 0, i32* %4
store i32 0, i32* %5
br label %10
10: ; preds = %19, %0
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 255
br i1 %12, label %13, label %22
13: ; preds = %10
%14 = load i32, i32* %5
%15 = trunc i32 %14 to i8
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %17
store i8 %15, i8* %18
br label %19
19: ; preds = %13
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %10
22: ; preds = %10
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%24 = call i64 @calcStuffBufferBitSize(i8* %23, i32 256)
store i64 %24, i64* %6
%25 = load i64, i64* %6
%26 = add nsw i64 %25, 7
%27 = sdiv i64 %26, 8
store i64 %27, i64* %7
%28 = load i64, i64* %7
%29 = call i64 @malloc(i64 %28)
%30 = inttoptr i64 %29 to i8*
store i8* %30, i8** %2
%31 = load i64, i64* %7
%32 = call i64 @malloc(i64 %31)
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %3
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%35 = load i8*, i8** %2
%36 = call i32 @bitstuffFrame(i8* %34, i32 256, i8* %35)
%37 = load i8*, i8** %2
%38 = load i64, i64* %7
%39 = load i8*, i8** %3
%40 = call i64 @unbitstuffFrame(i8* %37, i64 %38, i8* %39)
store i64 %40, i64* %8
%41 = load i64, i64* %8
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %22
%44 = load i64, i64* %8
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i64 %44)
store i32 -1, i32* %4
br label %72
46: ; preds = %22
store i32 0, i32* %9
br label %47
47: ; preds = %68, %46
%48 = load i32, i32* %9
%49 = icmp slt i32 %48, 255
br i1 %49, label %50, label %71
50: ; preds = %47
%51 = load i32, i32* %9
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %52
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = load i8*, i8** %3
%57 = load i32, i32* %9
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = icmp ne i32 %55, %61
br i1 %62, label %63, label %67
63: ; preds = %50
%64 = load i32, i32* %9
store i32 %64, i32* %4
%65 = load i32, i32* %9
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %65)
br label %71
67: ; preds = %50
br label %68
68: ; preds = %67
%69 = load i32, i32* %9
%70 = add nsw i32 %69, 1
store i32 %70, i32* %9
br label %47
71: ; preds = %63, %47
br label %72
72: ; preds = %71, %43
%73 = load i8*, i8** %2
%74 = call i32 @free(i8* %73)
%75 = load i8*, i8** %3
%76 = call i32 @free(i8* %75)
%77 = load i32, i32* %4
%78 = icmp ne i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %72
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
br label %81
81: ; preds = %79, %72
%82 = load i32, i32* %4
ret i32 %82
}

LLVM IR (-O2):
@.str = [48 x i8] c"calcStuffBufferBitSize -- Unstuff issue at %ld\0A\00"
@.str.1 = [51 x i8] c"calcStuffBufferBitSize -- Failed matching at t %d\0A\00"
@str = [33 x i8] c"calcStuffBufferBitSize -- Passed\00"
define i32 @testStuffAndUnstuff() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = bitcast [256 x i8]* %1 to <16 x i8>*
store <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, <16 x i8>* %3
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 16
%5 = bitcast i8* %4 to <16 x i8>*
store <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, <16 x i8>* %5
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 32
%7 = bitcast i8* %6 to <16 x i8>*
store <16 x i8> <i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41, i8 42, i8 43, i8 44, i8 45, i8 46, i8 47>, <16 x i8>* %7
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 48
%9 = bitcast i8* %8 to <16 x i8>*
store <16 x i8> <i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57, i8 58, i8 59, i8 60, i8 61, i8 62, i8 63>, <16 x i8>* %9
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 64
%11 = bitcast i8* %10 to <16 x i8>*
store <16 x i8> <i8 64, i8 65, i8 66, i8 67, i8 68, i8 69, i8 70, i8 71, i8 72, i8 73, i8 74, i8 75, i8 76, i8 77, i8 78, i8 79>, <16 x i8>* %11
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 80
%13 = bitcast i8* %12 to <16 x i8>*
store <16 x i8> <i8 80, i8 81, i8 82, i8 83, i8 84, i8 85, i8 86, i8 87, i8 88, i8 89, i8 90, i8 91, i8 92, i8 93, i8 94, i8 95>, <16 x i8>* %13
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 96
%15 = bitcast i8* %14 to <16 x i8>*
store <16 x i8> <i8 96, i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111>, <16 x i8>* %15
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 112
%17 = bitcast i8* %16 to <16 x i8>*
store <16 x i8> <i8 112, i8 113, i8 114, i8 115, i8 116, i8 117, i8 118, i8 119, i8 120, i8 121, i8 122, i8 123, i8 124, i8 125, i8 126, i8 127>, <16 x i8>* %17
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 128
%19 = bitcast i8* %18 to <16 x i8>*
store <16 x i8> <i8 -128, i8 -127, i8 -126, i8 -125, i8 -124, i8 -123, i8 -122, i8 -121, i8 -120, i8 -119, i8 -118, i8 -117, i8 -116, i8 -115, i8 -114, i8 -113>, <16 x i8>* %19
%20 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 144
%21 = bitcast i8* %20 to <16 x i8>*
store <16 x i8> <i8 -112, i8 -111, i8 -110, i8 -109, i8 -108, i8 -107, i8 -106, i8 -105, i8 -104, i8 -103, i8 -102, i8 -101, i8 -100, i8 -99, i8 -98, i8 -97>, <16 x i8>* %21
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 160
%23 = bitcast i8* %22 to <16 x i8>*
store <16 x i8> <i8 -96, i8 -95, i8 -94, i8 -93, i8 -92, i8 -91, i8 -90, i8 -89, i8 -88, i8 -87, i8 -86, i8 -85, i8 -84, i8 -83, i8 -82, i8 -81>, <16 x i8>* %23
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 176
%25 = bitcast i8* %24 to <16 x i8>*
store <16 x i8> <i8 -80, i8 -79, i8 -78, i8 -77, i8 -76, i8 -75, i8 -74, i8 -73, i8 -72, i8 -71, i8 -70, i8 -69, i8 -68, i8 -67, i8 -66, i8 -65>, <16 x i8>* %25
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 192
%27 = bitcast i8* %26 to <16 x i8>*
store <16 x i8> <i8 -64, i8 -63, i8 -62, i8 -61, i8 -60, i8 -59, i8 -58, i8 -57, i8 -56, i8 -55, i8 -54, i8 -53, i8 -52, i8 -51, i8 -50, i8 -49>, <16 x i8>* %27
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 208
%29 = bitcast i8* %28 to <16 x i8>*
store <16 x i8> <i8 -48, i8 -47, i8 -46, i8 -45, i8 -44, i8 -43, i8 -42, i8 -41, i8 -40, i8 -39, i8 -38, i8 -37, i8 -36, i8 -35, i8 -34, i8 -33>, <16 x i8>* %29
%30 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 224
%31 = bitcast i8* %30 to <16 x i8>*
store <16 x i8> <i8 -32, i8 -31, i8 -30, i8 -29, i8 -28, i8 -27, i8 -26, i8 -25, i8 -24, i8 -23, i8 -22, i8 -21, i8 -20, i8 -19, i8 -18, i8 -17>, <16 x i8>* %31
%32 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 240
store i8 -16, i8* %32
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 241
store i8 -15, i8* %33
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 242
store i8 -14, i8* %34
%35 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 243
store i8 -13, i8* %35
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 244
store i8 -12, i8* %36
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 245
store i8 -11, i8* %37
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 246
store i8 -10, i8* %38
%39 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 247
store i8 -9, i8* %39
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 248
store i8 -8, i8* %40
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 249
store i8 -7, i8* %41
%42 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 250
store i8 -6, i8* %42
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 251
store i8 -5, i8* %43
%44 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 252
store i8 -4, i8* %44
%45 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 253
store i8 -3, i8* %45
%46 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 254
store i8 -2, i8* %46
%47 = call i64 @calcStuffBufferBitSize(i8* %2, i32 256)
%48 = add nsw i64 %47, 7
%49 = sdiv i64 %48, 8
%50 = call i64 @malloc(i64 %49)
%51 = inttoptr i64 %50 to i8*
%52 = call i64 @malloc(i64 %49)
%53 = inttoptr i64 %52 to i8*
%54 = call i32 @bitstuffFrame(i8* %2, i32 256, i8* %51)
%55 = call i64 @unbitstuffFrame(i8* %51, i64 %49, i8* %53)
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %0
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i64 %55)
br label %101
59: ; preds = %0, %98
%60 = phi i64 [ %99, %98 ], [ 0, %0 ]
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %60
%62 = load i8, i8* %61
%63 = getelementptr inbounds i8, i8* %53, i64 %60
%64 = load i8, i8* %63
%65 = icmp eq i8 %62, %64
br i1 %65, label %70, label %66
66: ; preds = %91, %84, %77, %70, %59
%67 = phi i64 [ %60, %59 ], [ %71, %70 ], [ %78, %77 ], [ %85, %84 ], [ %92, %91 ]
%68 = trunc i64 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %68)
br label %101
70: ; preds = %59
%71 = add nuw nsw i64 %60, 1
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %71
%73 = load i8, i8* %72
%74 = getelementptr inbounds i8, i8* %53, i64 %71
%75 = load i8, i8* %74
%76 = icmp eq i8 %73, %75
br i1 %76, label %77, label %66
77: ; preds = %70
%78 = add nuw nsw i64 %60, 2
%79 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = getelementptr inbounds i8, i8* %53, i64 %78
%82 = load i8, i8* %81
%83 = icmp eq i8 %80, %82
br i1 %83, label %84, label %66
84: ; preds = %77
%85 = add nuw nsw i64 %60, 3
%86 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %85
%87 = load i8, i8* %86
%88 = getelementptr inbounds i8, i8* %53, i64 %85
%89 = load i8, i8* %88
%90 = icmp eq i8 %87, %89
br i1 %90, label %91, label %66
91: ; preds = %84
%92 = add nuw nsw i64 %60, 4
%93 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %92
%94 = load i8, i8* %93
%95 = getelementptr inbounds i8, i8* %53, i64 %92
%96 = load i8, i8* %95
%97 = icmp eq i8 %94, %96
br i1 %97, label %98, label %66
98: ; preds = %91
%99 = add nuw nsw i64 %60, 5
%100 = icmp eq i64 %99, 255
br i1 %100, label %101, label %59
101: ; preds = %98, %66, %57
%102 = phi i32 [ -1, %57 ], [ %68, %66 ], [ 0, %98 ]
%103 = call i32 @free(i8* %51)
%104 = call i32 @free(i8* %53)
%105 = icmp eq i32 %102, 0
br i1 %105, label %106, label %108
106: ; preds = %101
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
br label %108
108: ; preds = %106, %101
ret i32 %102
}