#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 *afp_error(int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int);
int /*<<< orphan*/ sprintf(char *, char *, int, char *);
int /*<<< orphan*/ strcat(char *, char *);
char *bitmap2text(unsigned int bitmap) {
  static char temp[4096];
  static char temp1[4096];
  temp[0] = 0;
  if (((1 << 0) & bitmap)) {
    sprintf(temp, "%d %s ", -5018, afp_error(htonl(-5018)));
  }
  if (((1 << 1) & bitmap)) {
    sprintf(temp1, "%d %s ", -5029, afp_error(htonl(-5029)));
    strcat(temp, temp1);
  }
  if (((1 << 2) & bitmap)) {
    sprintf(temp1, "%d %s ", -5019, afp_error(htonl(-5019)));
    strcat(temp, temp1);
  }
  if (((1 << 3) & bitmap)) {
    sprintf(temp1, "%d %s ", -5010, afp_error(htonl(-5010)));
    strcat(temp, temp1);
  }
  if (((1 << 4) & bitmap)) {
    sprintf(temp1, "%d %s ", -5025, afp_error(htonl(-5025)));
    strcat(temp, temp1);
  }
  if (((1 << 5) & bitmap)) {
    sprintf(temp1, "%d %s ", -5012, afp_error(htonl(-5012)));
    strcat(temp, temp1);
  }
  if (((1 << 6) & bitmap)) {
    sprintf(temp1, "%d %s ", -5006, afp_error(htonl(-5006)));
    strcat(temp, temp1);
  }
  if (((1 << 7) & bitmap)) {
    sprintf(temp1, "%d %s ", -5026, afp_error(htonl(-5026)));
    strcat(temp, temp1);
  }
  if (((1 << 8) & bitmap)) {
    sprintf(temp1, "%d %s ", -5000, afp_error(htonl(-5000)));
    strcat(temp, temp1);
  }
  if (((1 << 9) & bitmap)) {
    sprintf(temp1, "%d %s ", -5034, afp_error(htonl(-5034)));
    strcat(temp, temp1);
  }
  if (((1 << 10) & bitmap)) {
    sprintf(temp1, "%d %s ", -5004, afp_error(htonl(-5004)));
    strcat(temp, temp1);
  }
  if (((1 << 11) & bitmap)) {
    sprintf(temp1, "%d %s ", -5014, afp_error(htonl(-5014)));
    strcat(temp, temp1);
  }
  return temp;
}


x86 assembly (clang, -O0):
<bitmap2text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,0x2efe(%rip)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     118d <bitmap2text+0x4d>
mov    $0xffffec66,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x2ed4(%rip),%rdi
lea    0xe7d(%rip),%rsi
mov    $0xffffec66,%edx
call   1050 <sprintf@plt>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     11db <bitmap2text+0x9b>
mov    $0xffffec5b,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3e99(%rip),%rdi
lea    0xe42(%rip),%rsi
mov    $0xffffec5b,%edx
call   1050 <sprintf@plt>
lea    0x2e81(%rip),%rdi
lea    0x3e7a(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1229 <bitmap2text+0xe9>
mov    $0xffffec65,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3e4b(%rip),%rdi
lea    0xdf4(%rip),%rsi
mov    $0xffffec65,%edx
call   1050 <sprintf@plt>
lea    0x2e33(%rip),%rdi
lea    0x3e2c(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1277 <bitmap2text+0x137>
mov    $0xffffec6e,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3dfd(%rip),%rdi
lea    0xda6(%rip),%rsi
mov    $0xffffec6e,%edx
call   1050 <sprintf@plt>
lea    0x2de5(%rip),%rdi
lea    0x3dde(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     12c5 <bitmap2text+0x185>
mov    $0xffffec5f,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3daf(%rip),%rdi
lea    0xd58(%rip),%rsi
mov    $0xffffec5f,%edx
call   1050 <sprintf@plt>
lea    0x2d97(%rip),%rdi
lea    0x3d90(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1313 <bitmap2text+0x1d3>
mov    $0xffffec6c,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3d61(%rip),%rdi
lea    0xd0a(%rip),%rsi
mov    $0xffffec6c,%edx
call   1050 <sprintf@plt>
lea    0x2d49(%rip),%rdi
lea    0x3d42(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1361 <bitmap2text+0x221>
mov    $0xffffec72,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3d13(%rip),%rdi
lea    0xcbc(%rip),%rsi
mov    $0xffffec72,%edx
call   1050 <sprintf@plt>
lea    0x2cfb(%rip),%rdi
lea    0x3cf4(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     13b1 <bitmap2text+0x271>
mov    $0xffffec5e,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3cc3(%rip),%rdi
lea    0xc6c(%rip),%rsi
mov    $0xffffec5e,%edx
call   1050 <sprintf@plt>
lea    0x2cab(%rip),%rdi
lea    0x3ca4(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1401 <bitmap2text+0x2c1>
mov    $0xffffec78,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3c73(%rip),%rdi
lea    0xc1c(%rip),%rsi
mov    $0xffffec78,%edx
call   1050 <sprintf@plt>
lea    0x2c5b(%rip),%rdi
lea    0x3c54(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     1451 <bitmap2text+0x311>
mov    $0xffffec56,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3c23(%rip),%rdi
lea    0xbcc(%rip),%rsi
mov    $0xffffec56,%edx
call   1050 <sprintf@plt>
lea    0x2c0b(%rip),%rdi
lea    0x3c04(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     14a1 <bitmap2text+0x361>
mov    $0xffffec74,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3bd3(%rip),%rdi
lea    0xb7c(%rip),%rsi
mov    $0xffffec74,%edx
call   1050 <sprintf@plt>
lea    0x2bbb(%rip),%rdi
lea    0x3bb4(%rip),%rsi
call   1040 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800,%eax
cmp    $0x0,%eax
je     14f1 <bitmap2text+0x3b1>
mov    $0xffffec6a,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
mov    %rax,%rcx
lea    0x3b83(%rip),%rdi
lea    0xb2c(%rip),%rsi
mov    $0xffffec6a,%edx
call   1050 <sprintf@plt>
lea    0x2b6b(%rip),%rdi
lea    0x3b64(%rip),%rsi
call   1040 <strcat@plt>
lea    0x2b58(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitmap2text>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
movb   $0x0,0x2f03(%rip)
test   $0x1,%bl
jne    120e <bitmap2text+0xce>
test   $0x2,%bl
jne    1243 <bitmap2text+0x103>
test   $0x4,%bl
jne    128a <bitmap2text+0x14a>
test   $0x8,%bl
jne    12d1 <bitmap2text+0x191>
test   $0x10,%bl
jne    1318 <bitmap2text+0x1d8>
test   $0x20,%bl
jne    135f <bitmap2text+0x21f>
test   $0x40,%bl
jne    13a6 <bitmap2text+0x266>
test   $0x80,%bl
jne    13ed <bitmap2text+0x2ad>
test   $0x100,%ebx
jne    1437 <bitmap2text+0x2f7>
test   $0x200,%ebx
jne    1481 <bitmap2text+0x341>
test   $0x400,%ebx
jne    14cb <bitmap2text+0x38b>
test   $0x800,%ebx
je     11ff <bitmap2text+0xbf>
mov    $0xffffec6a,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3e77(%rip),%rbx
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
mov    $0xffffec6a,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2e59(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcat@plt>
lea    0x2e4a(%rip),%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0xffffec66,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x2e2a(%rip),%rdi
lea    0xdd3(%rip),%rsi
mov    $0xffffec66,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
test   $0x2,%bl
je     115f <bitmap2text+0x1f>
mov    $0xffffec5b,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3df5(%rip),%r14
lea    0xd9e(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec5b,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2dd7(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x4,%bl
je     1168 <bitmap2text+0x28>
mov    $0xffffec65,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3dae(%rip),%r14
lea    0xd57(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec65,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2d90(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x8,%bl
je     1171 <bitmap2text+0x31>
mov    $0xffffec6e,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3d67(%rip),%r14
lea    0xd10(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec6e,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2d49(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x10,%bl
je     117a <bitmap2text+0x3a>
mov    $0xffffec5f,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3d20(%rip),%r14
lea    0xcc9(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec5f,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2d02(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x20,%bl
je     1183 <bitmap2text+0x43>
mov    $0xffffec6c,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3cd9(%rip),%r14
lea    0xc82(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec6c,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2cbb(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x40,%bl
je     118c <bitmap2text+0x4c>
mov    $0xffffec72,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3c92(%rip),%r14
lea    0xc3b(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec72,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2c74(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x80,%bl
je     1195 <bitmap2text+0x55>
mov    $0xffffec5e,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3c4b(%rip),%r14
lea    0xbf4(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec5e,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2c2d(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x100,%ebx
je     11a1 <bitmap2text+0x61>
mov    $0xffffec78,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3c01(%rip),%r14
lea    0xbaa(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec78,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2be3(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x200,%ebx
je     11ad <bitmap2text+0x6d>
mov    $0xffffec56,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3bb7(%rip),%r14
lea    0xb60(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec56,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2b99(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x400,%ebx
je     11b9 <bitmap2text+0x79>
mov    $0xffffec74,%edi
call   1030 <htonl@plt>
mov    %eax,%edi
call   1060 <afp_error@plt>
lea    0x3b6d(%rip),%r14
lea    0xb16(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffec74,%edx
mov    %rax,%rcx
call   1050 <sprintf@plt>
lea    0x2b4f(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
test   $0x800,%ebx
jne    11c1 <bitmap2text+0x81>
jmp    11ff <bitmap2text+0xbf>

LLVM IR (-O0):
@bitmap2text.temp = internal global [4096 x i8] zeroinitializer
@bitmap2text.temp1 = internal global [4096 x i8] zeroinitializer
@.str = [7 x i8] c"%d %s \00"
define i8* @bitmap2text(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store i8 0, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0)
%3 = load i32, i32* %2
%4 = and i32 1, %3
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = call i32 @htonl(i32 -5018)
%8 = call i8* @afp_error(i32 %7)
%9 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5018, i8* %8)
br label %10
10: ; preds = %6, %1
%11 = load i32, i32* %2
%12 = and i32 2, %11
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = call i32 @htonl(i32 -5029)
%16 = call i8* @afp_error(i32 %15)
%17 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5029, i8* %16)
%18 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %19
19: ; preds = %14, %10
%20 = load i32, i32* %2
%21 = and i32 4, %20
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = call i32 @htonl(i32 -5019)
%25 = call i8* @afp_error(i32 %24)
%26 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5019, i8* %25)
%27 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %28
28: ; preds = %23, %19
%29 = load i32, i32* %2
%30 = and i32 8, %29
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = call i32 @htonl(i32 -5010)
%34 = call i8* @afp_error(i32 %33)
%35 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5010, i8* %34)
%36 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %37
37: ; preds = %32, %28
%38 = load i32, i32* %2
%39 = and i32 16, %38
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %37
%42 = call i32 @htonl(i32 -5025)
%43 = call i8* @afp_error(i32 %42)
%44 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5025, i8* %43)
%45 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %46
46: ; preds = %41, %37
%47 = load i32, i32* %2
%48 = and i32 32, %47
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %46
%51 = call i32 @htonl(i32 -5012)
%52 = call i8* @afp_error(i32 %51)
%53 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5012, i8* %52)
%54 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %55
55: ; preds = %50, %46
%56 = load i32, i32* %2
%57 = and i32 64, %56
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %55
%60 = call i32 @htonl(i32 -5006)
%61 = call i8* @afp_error(i32 %60)
%62 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5006, i8* %61)
%63 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %64
64: ; preds = %59, %55
%65 = load i32, i32* %2
%66 = and i32 128, %65
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %64
%69 = call i32 @htonl(i32 -5026)
%70 = call i8* @afp_error(i32 %69)
%71 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5026, i8* %70)
%72 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %73
73: ; preds = %68, %64
%74 = load i32, i32* %2
%75 = and i32 256, %74
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %73
%78 = call i32 @htonl(i32 -5000)
%79 = call i8* @afp_error(i32 %78)
%80 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5000, i8* %79)
%81 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %82
82: ; preds = %77, %73
%83 = load i32, i32* %2
%84 = and i32 512, %83
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %82
%87 = call i32 @htonl(i32 -5034)
%88 = call i8* @afp_error(i32 %87)
%89 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5034, i8* %88)
%90 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %91
91: ; preds = %86, %82
%92 = load i32, i32* %2
%93 = and i32 1024, %92
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %91
%96 = call i32 @htonl(i32 -5004)
%97 = call i8* @afp_error(i32 %96)
%98 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5004, i8* %97)
%99 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %100
100: ; preds = %95, %91
%101 = load i32, i32* %2
%102 = and i32 2048, %101
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %109
104: ; preds = %100
%105 = call i32 @htonl(i32 -5014)
%106 = call i8* @afp_error(i32 %105)
%107 = call i32 @sprintf(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5014, i8* %106)
%108 = call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %109
109: ; preds = %104, %100
ret i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0)
}

LLVM IR (-O2):
@bitmap2text.temp = internal global [4096 x i8] zeroinitializer
@bitmap2text.temp1 = internal global [4096 x i8] zeroinitializer
@.str = [7 x i8] c"%d %s \00"
define i8* @bitmap2text(i32 %0) {
store i8 0, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0)
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 @htonl(i32 -5018)
%6 = tail call i8* @afp_error(i32 %5)
%7 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5018, i8* %6)
br label %8
8: ; preds = %4, %1
%9 = and i32 %0, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %16, label %11
11: ; preds = %8
%12 = tail call i32 @htonl(i32 -5029)
%13 = tail call i8* @afp_error(i32 %12)
%14 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5029, i8* %13)
%15 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %16
16: ; preds = %11, %8
%17 = and i32 %0, 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %16
%20 = tail call i32 @htonl(i32 -5019)
%21 = tail call i8* @afp_error(i32 %20)
%22 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5019, i8* %21)
%23 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %24
24: ; preds = %19, %16
%25 = and i32 %0, 8
%26 = icmp eq i32 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %24
%28 = tail call i32 @htonl(i32 -5010)
%29 = tail call i8* @afp_error(i32 %28)
%30 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5010, i8* %29)
%31 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %32
32: ; preds = %27, %24
%33 = and i32 %0, 16
%34 = icmp eq i32 %33, 0
br i1 %34, label %40, label %35
35: ; preds = %32
%36 = tail call i32 @htonl(i32 -5025)
%37 = tail call i8* @afp_error(i32 %36)
%38 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5025, i8* %37)
%39 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %40
40: ; preds = %35, %32
%41 = and i32 %0, 32
%42 = icmp eq i32 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %40
%44 = tail call i32 @htonl(i32 -5012)
%45 = tail call i8* @afp_error(i32 %44)
%46 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5012, i8* %45)
%47 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %48
48: ; preds = %43, %40
%49 = and i32 %0, 64
%50 = icmp eq i32 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %48
%52 = tail call i32 @htonl(i32 -5006)
%53 = tail call i8* @afp_error(i32 %52)
%54 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5006, i8* %53)
%55 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %56
56: ; preds = %51, %48
%57 = and i32 %0, 128
%58 = icmp eq i32 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %56
%60 = tail call i32 @htonl(i32 -5026)
%61 = tail call i8* @afp_error(i32 %60)
%62 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5026, i8* %61)
%63 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %64
64: ; preds = %59, %56
%65 = and i32 %0, 256
%66 = icmp eq i32 %65, 0
br i1 %66, label %72, label %67
67: ; preds = %64
%68 = tail call i32 @htonl(i32 -5000)
%69 = tail call i8* @afp_error(i32 %68)
%70 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5000, i8* %69)
%71 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %72
72: ; preds = %67, %64
%73 = and i32 %0, 512
%74 = icmp eq i32 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %72
%76 = tail call i32 @htonl(i32 -5034)
%77 = tail call i8* @afp_error(i32 %76)
%78 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5034, i8* %77)
%79 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %80
80: ; preds = %75, %72
%81 = and i32 %0, 1024
%82 = icmp eq i32 %81, 0
br i1 %82, label %88, label %83
83: ; preds = %80
%84 = tail call i32 @htonl(i32 -5004)
%85 = tail call i8* @afp_error(i32 %84)
%86 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5004, i8* %85)
%87 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %88
88: ; preds = %83, %80
%89 = and i32 %0, 2048
%90 = icmp eq i32 %89, 0
br i1 %90, label %96, label %91
91: ; preds = %88
%92 = tail call i32 @htonl(i32 -5014)
%93 = tail call i8* @afp_error(i32 %92)
%94 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 -5014, i8* %93)
%95 = tail call i32 @strcat(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0), i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp1, i64 0, i64 0))
br label %96
96: ; preds = %91, %88
ret i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @bitmap2text.temp, i64 0, i64 0)
}