#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*/ assert(int);
scalar_t__ memcmp(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ printf(char *);
int write_binary(unsigned char **, unsigned char *, int);
void test_write_binary(void) {
  unsigned char original_src[] = {20, 21, 22, 23, 24};
  unsigned char original_src2[] = {30, 31, 32, 33};
  unsigned char src[] = {20, 21, 22, 23, 24};
  unsigned char src2[] = {30, 31, 32, 33};
  unsigned char dest[] = {10, 11, 12, 13, 14, 15, 16};
  unsigned char expected[] = {10, 21, 22, 23, 31, 32, 16};
  unsigned char *p = dest + 1;
  unsigned char *null_ptr = NULL;
  printf("\tStart  test_write_binary\n");
  assert(write_binary(&p, NULL, 0));
  assert(write_binary(NULL, NULL, 0));
  assert(write_binary(NULL, src + 1, 0));
  assert(write_binary(&null_ptr, src + 1, 0));
  assert(write_binary(&null_ptr, NULL, 0));
  assert(!write_binary(&p, NULL, 53));
  assert(!write_binary(NULL, NULL, 1));
  assert(!write_binary(NULL, src + 1, 23));
  assert(!write_binary(&null_ptr, src + 1, 1));
  assert(!write_binary(&null_ptr, NULL, 6));
  assert(*p == 11);
  assert(write_binary(&p, src + 1, 3));
  assert(*p == 14);
  assert(write_binary(&p, src2 + 1, 2));
  assert(*p == 16);
  assert(write_binary(&p, src2, 0));
  assert(*p == 16);
  assert(memcmp(src, original_src, sizeof src) == 0);
  assert(memcmp(src2, original_src2, sizeof src2) == 0);
  assert(memcmp(dest, expected, sizeof dest) == 0);
  printf("\tFinish test_write_binary\n");
}


x86 assembly (clang, -O0):
<test_write_binary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xeb2(%rip),%eax
mov    %eax,-0x5(%rbp)
mov    0xead(%rip),%al
mov    %al,-0x1(%rbp)
mov    0xeb8(%rip),%eax
mov    %eax,-0x9(%rbp)
mov    0xe9c(%rip),%eax
mov    %eax,-0xe(%rbp)
mov    0xe97(%rip),%al
mov    %al,-0xa(%rbp)
mov    0xe9d(%rip),%eax
mov    %eax,-0x12(%rbp)
mov    0xe86(%rip),%eax
mov    %eax,-0x19(%rbp)
mov    0xe80(%rip),%ax
mov    %ax,-0x15(%rbp)
mov    0xe78(%rip),%al
mov    %al,-0x13(%rbp)
mov    0xe70(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xe6a(%rip),%ax
mov    %ax,-0x1c(%rbp)
mov    0xe62(%rip),%al
mov    %al,-0x1a(%rbp)
lea    -0x19(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
lea    -0x28(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
mov    %rsi,%rdi
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rsi
add    $0x1,%rsi
xor    %eax,%eax
mov    %eax,%edi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rsi
add    $0x1,%rsi
lea    -0x30(%rbp),%rdi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    -0x30(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    -0x28(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x35,%edx
call   1050 <write_binary@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %eax,%eax
mov    %eax,%esi
mov    $0x1,%edx
mov    %rsi,%rdi
call   1050 <write_binary@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rsi
add    $0x1,%rsi
xor    %eax,%eax
mov    %eax,%edi
mov    $0x17,%edx
call   1050 <write_binary@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rsi
add    $0x1,%rsi
lea    -0x30(%rbp),%rdi
mov    $0x1,%edx
call   1050 <write_binary@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0x30(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x6,%edx
call   1050 <write_binary@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x28(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xb,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rsi
add    $0x1,%rsi
lea    -0x28(%rbp),%rdi
mov    $0x3,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x28(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xe,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0x12(%rbp),%rsi
add    $0x1,%rsi
lea    -0x28(%rbp),%rdi
mov    $0x2,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x28(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x10,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0x12(%rbp),%rsi
lea    -0x28(%rbp),%rdi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x28(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x10,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0xe(%rbp),%rdi
lea    -0x5(%rbp),%rsi
mov    $0x5,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0x12(%rbp),%rdi
lea    -0x9(%rbp),%rsi
mov    $0x4,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    -0x19(%rbp),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x7,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
lea    0xc13(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_write_binary>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
movb   $0x18,0x20(%rsp)
movl   $0x17161514,0x1c(%rsp)
17
movl   $0x21201f1e,0x2c(%rsp)
21
movb   $0x18,0xc(%rsp)
movl   $0x17161514,0x8(%rsp)
17
movl   $0x21201f1e,0x18(%rsp)
21
movl   $0x100f0e0d,0x27(%rsp)
10
movl   $0xd0c0b0a,0x24(%rsp)
0d
movl   $0x10201f17,0x33(%rsp)
10
movl   $0x1716150a,0x30(%rsp)
17
lea    0x25(%rsp),%rax
mov    %rax,0x10(%rsp)
movq   $0x0,0x38(%rsp)
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    0x9(%rsp),%r15
xor    %edi,%edi
mov    %r15,%rsi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
lea    0x38(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x35,%edx
call   1050 <write_binary@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <write_binary@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
mov    %r15,%rsi
mov    $0x17,%edx
call   1050 <write_binary@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   1050 <write_binary@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x6,%edx
call   1050 <write_binary@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
mov    0x10(%rsp),%rax
xor    %edi,%edi
cmpb   $0xb,(%rax)
sete   %dil
call   1060 <assert@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    0x10(%rsp),%rax
xor    %edi,%edi
cmpb   $0xe,(%rax)
sete   %dil
call   1060 <assert@plt>
lea    0x19(%rsp),%rsi
mov    %r14,%rdi
mov    $0x2,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    0x10(%rsp),%rax
xor    %edi,%edi
cmpb   $0x10,(%rax)
sete   %dil
call   1060 <assert@plt>
lea    0x18(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1050 <write_binary@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    0x10(%rsp),%rax
xor    %edi,%edi
cmpb   $0x10,(%rax)
sete   %dil
call   1060 <assert@plt>
lea    0x8(%rsp),%rdi
lea    0x1c(%rsp),%rsi
mov    $0x5,%edx
call   1040 <memcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1040 <memcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
lea    0x24(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    $0x7,%edx
call   1040 <memcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
lea    0xc81(%rip),%rdi
call   1030 <puts@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.test_write_binary.original_src = [5 x i8] c"\14\15\16\17\18"
@__const.test_write_binary.original_src2 = [4 x i8] c"\1E\1F !"
@__const.test_write_binary.src = [5 x i8] c"\14\15\16\17\18"
@__const.test_write_binary.src2 = [4 x i8] c"\1E\1F !"
@__const.test_write_binary.dest = [7 x i8] c"\0A\0B\0C\0D\0E\0F\10"
@__const.test_write_binary.expected = [7 x i8] c"\0A\15\16\17\1F \10"
@.str = [27 x i8] c"\09Start test_write_binary\0A\00"
@.str.1 = [27 x i8] c"\09Finish test_write_binary\0A\00"
define void @test_write_binary() {
%1 = alloca [5 x i8]
%2 = alloca [4 x i8]
%3 = alloca [5 x i8]
%4 = alloca [4 x i8]
%5 = alloca [7 x i8]
%6 = alloca [7 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = bitcast [5 x i8]* %1 to i8*
%10 = bitcast [4 x i8]* %2 to i8*
%11 = bitcast [5 x i8]* %3 to i8*
%12 = bitcast [4 x i8]* %4 to i8*
%13 = bitcast [7 x i8]* %5 to i8*
%14 = bitcast [7 x i8]* %6 to i8*
%15 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%16 = getelementptr inbounds i8, i8* %15, i64 1
store i8* %16, i8** %7
store i8* null, i8** %8
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @write_binary(i8** %7, i8* null, i32 0)
%19 = call i32 @assert(i32 %18)
%20 = call i32 @write_binary(i8** null, i8* null, i32 0)
%21 = call i32 @assert(i32 %20)
%22 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%23 = getelementptr inbounds i8, i8* %22, i64 1
%24 = call i32 @write_binary(i8** null, i8* %23, i32 0)
%25 = call i32 @assert(i32 %24)
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds i8, i8* %26, i64 1
%28 = call i32 @write_binary(i8** %8, i8* %27, i32 0)
%29 = call i32 @assert(i32 %28)
%30 = call i32 @write_binary(i8** %8, i8* null, i32 0)
%31 = call i32 @assert(i32 %30)
%32 = call i32 @write_binary(i8** %7, i8* null, i32 53)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i32 @write_binary(i8** null, i8* null, i32 1)
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%43 = getelementptr inbounds i8, i8* %42, i64 1
%44 = call i32 @write_binary(i8** null, i8* %43, i32 23)
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%50 = getelementptr inbounds i8, i8* %49, i64 1
%51 = call i32 @write_binary(i8** %8, i8* %50, i32 1)
%52 = icmp ne i32 %51, 0
%53 = xor i1 %52, true
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = call i32 @write_binary(i8** %8, i8* null, i32 6)
%57 = icmp ne i32 %56, 0
%58 = xor i1 %57, true
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = load i8*, i8** %7
%62 = load i8, i8* %61
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 11
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%68 = getelementptr inbounds i8, i8* %67, i64 1
%69 = call i32 @write_binary(i8** %7, i8* %68, i32 3)
%70 = call i32 @assert(i32 %69)
%71 = load i8*, i8** %7
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = icmp eq i32 %73, 14
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%78 = getelementptr inbounds i8, i8* %77, i64 1
%79 = call i32 @write_binary(i8** %7, i8* %78, i32 2)
%80 = call i32 @assert(i32 %79)
%81 = load i8*, i8** %7
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %83, 16
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%88 = call i32 @write_binary(i8** %7, i8* %87, i32 0)
%89 = call i32 @assert(i32 %88)
%90 = load i8*, i8** %7
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = icmp eq i32 %92, 16
%94 = zext i1 %93 to i32
%95 = call i32 @assert(i32 %94)
%96 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%97 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%98 = call i64 @memcmp(i8* %96, i8* %97, i32 5)
%99 = icmp eq i64 %98, 0
%100 = zext i1 %99 to i32
%101 = call i32 @assert(i32 %100)
%102 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%103 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%104 = call i64 @memcmp(i8* %102, i8* %103, i32 4)
%105 = icmp eq i64 %104, 0
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%109 = getelementptr inbounds [7 x i8], [7 x i8]* %6, i64 0, i64 0
%110 = call i64 @memcmp(i8* %108, i8* %109, i32 7)
%111 = icmp eq i64 %110, 0
%112 = zext i1 %111 to i32
%113 = call i32 @assert(i32 %112)
%114 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__const.test_write_binary.src = [5 x i8] c"\14\15\16\17\18"
@__const.test_write_binary.dest = [7 x i8] c"\0A\0B\0C\0D\0E\0F\10"
@__const.test_write_binary.expected = [7 x i8] c"\0A\15\16\17\1F \10"
@str = [26 x i8] c"\09Start test_write_binary\00"
@str.2 = [26 x i8] c"\09Finish test_write_binary\00"
define void @test_write_binary() {
%1 = alloca [5 x i8]
%2 = alloca i32
%3 = alloca [5 x i8]
%4 = alloca i32
%5 = alloca [7 x i8]
%6 = alloca [7 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%10 = bitcast i32* %2 to i8*
store i32 555753246, i32* %2
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%12 = bitcast i32* %4 to i8*
store i32 555753246, i32* %4
%13 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [7 x i8], [7 x i8]* %6, i64 0, i64 0
%15 = bitcast i8** %7 to i8*
%16 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 1
store i8* %16, i8** %7
%17 = bitcast i8** %8 to i8*
store i8* null, i8** %8
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%19 = call i32 @write_binary(i8** %7, i8* null, i32 0)
%20 = call i32 @assert(i32 %19)
%21 = call i32 @write_binary(i8** null, i8* null, i32 0)
%22 = call i32 @assert(i32 %21)
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
%24 = call i32 @write_binary(i8** null, i8* %23, i32 0)
%25 = call i32 @assert(i32 %24)
%26 = call i32 @write_binary(i8** %8, i8* %23, i32 0)
%27 = call i32 @assert(i32 %26)
%28 = call i32 @write_binary(i8** %8, i8* null, i32 0)
%29 = call i32 @assert(i32 %28)
%30 = call i32 @write_binary(i8** %7, i8* null, i32 53)
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = call i32 @write_binary(i8** null, i8* null, i32 1)
%35 = icmp eq i32 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = call i32 @write_binary(i8** null, i8* %23, i32 23)
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = call i32 @write_binary(i8** %8, i8* %23, i32 1)
%43 = icmp eq i32 %42, 0
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 %44)
%46 = call i32 @write_binary(i8** %8, i8* null, i32 6)
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = load i8*, i8** %7
%51 = load i8, i8* %50
%52 = icmp eq i8 %51, 11
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 %53)
%55 = call i32 @write_binary(i8** %7, i8* %23, i32 3)
%56 = call i32 @assert(i32 %55)
%57 = load i8*, i8** %7
%58 = load i8, i8* %57
%59 = icmp eq i8 %58, 14
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 %60)
%62 = getelementptr inbounds i8, i8* %12, i64 1
%63 = call i32 @write_binary(i8** %7, i8* %62, i32 2)
%64 = call i32 @assert(i32 %63)
%65 = load i8*, i8** %7
%66 = load i8, i8* %65
%67 = icmp eq i8 %66, 16
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = call i32 @write_binary(i8** %7, i8* %12, i32 0)
%71 = call i32 @assert(i32 %70)
%72 = load i8*, i8** %7
%73 = load i8, i8* %72
%74 = icmp eq i8 %73, 16
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = call i64 @memcmp(i8* %11, i8* %9, i32 5)
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = call i64 @memcmp(i8* %12, i8* %10, i32 4)
%82 = icmp eq i64 %81, 0
%83 = zext i1 %82 to i32
%84 = call i32 @assert(i32 %83)
%85 = call i64 @memcmp(i8* %13, i8* %14, i32 7)
%86 = icmp eq i64 %85, 0
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 %87)
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.2, i64 0, i64 0))
ret void
}