#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*/ strcat(char *, char *);
char *form_bit_name(int form_flags) {
  static char buf[512];
  buf[0] = '\0';
  if (form_flags & (2))
    strcat(buf, " poison");
  else if (form_flags & (1))
    strcat(buf, " edible");
  if (form_flags & (4))
    strcat(buf, " magical");
  if (form_flags & (8))
    strcat(buf, " instant_rot");
  if (form_flags & (16))
    strcat(buf, " other");
  if (form_flags & (64))
    strcat(buf, " animal");
  if (form_flags & (128))
    strcat(buf, " sentient");
  if (form_flags & (256))
    strcat(buf, " undead");
  if (form_flags & (512))
    strcat(buf, " construct");
  if (form_flags & (1024))
    strcat(buf, " mist");
  if (form_flags & (2048))
    strcat(buf, " intangible");
  if (form_flags & (4096))
    strcat(buf, " biped");
  if (form_flags & (8192))
    strcat(buf, " centaur");
  if (form_flags & (16384))
    strcat(buf, " insect");
  if (form_flags & (32768))
    strcat(buf, " spider");
  if (form_flags & (65536))
    strcat(buf, " crustacean");
  if (form_flags & (131072))
    strcat(buf, " worm");
  if (form_flags & (262144))
    strcat(buf, " blob");
  if (form_flags & (2097152))
    strcat(buf, " mammal");
  if (form_flags & (4194304))
    strcat(buf, " bird");
  if (form_flags & (8388608))
    strcat(buf, " reptile");
  if (form_flags & (16777216))
    strcat(buf, " snake");
  if (form_flags & (33554432))
    strcat(buf, " dragon");
  if (form_flags & (67108864))
    strcat(buf, " amphibian");
  if (form_flags & (134217728))
    strcat(buf, " fish");
  if (form_flags & (268435456))
    strcat(buf, " cold_blooded");
  return (buf[0] != '\0') ? buf + 1 : "none";
}


x86 assembly (clang, -O0):
<form_bit_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,0x2f1e(%rip)
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1149 <form_bit_name+0x39>
lea    0x2f08(%rip),%rdi
lea    0xec1(%rip),%rsi
call   1030 <strcat@plt>
jmp    1170 <form_bit_name+0x60>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     116b <form_bit_name+0x5b>
lea    0x2ee1(%rip),%rdi
lea    0xea2(%rip),%rsi
call   1030 <strcat@plt>
jmp    1170 <form_bit_name+0x60>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1192 <form_bit_name+0x82>
lea    0x2eba(%rip),%rdi
lea    0xe83(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     11b4 <form_bit_name+0xa4>
lea    0x2e98(%rip),%rdi
lea    0xe6a(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     11d6 <form_bit_name+0xc6>
lea    0x2e76(%rip),%rdi
lea    0xe55(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     11f8 <form_bit_name+0xe8>
lea    0x2e54(%rip),%rdi
lea    0xe3a(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     121c <form_bit_name+0x10c>
lea    0x2e30(%rip),%rdi
lea    0xe1e(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1240 <form_bit_name+0x130>
lea    0x2e0c(%rip),%rdi
lea    0xe04(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     1264 <form_bit_name+0x154>
lea    0x2de8(%rip),%rdi
lea    0xde8(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     1288 <form_bit_name+0x178>
lea    0x2dc4(%rip),%rdi
lea    0xdcf(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800,%eax
cmp    $0x0,%eax
je     12ac <form_bit_name+0x19c>
lea    0x2da0(%rip),%rdi
lea    0xdb1(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     12d0 <form_bit_name+0x1c0>
lea    0x2d7c(%rip),%rdi
lea    0xd99(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     12f4 <form_bit_name+0x1e4>
lea    0x2d58(%rip),%rdi
lea    0xd7c(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     1318 <form_bit_name+0x208>
lea    0x2d34(%rip),%rdi
lea    0xd61(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     133c <form_bit_name+0x22c>
lea    0x2d10(%rip),%rdi
lea    0xd45(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10000,%eax
cmp    $0x0,%eax
je     1360 <form_bit_name+0x250>
lea    0x2cec(%rip),%rdi
lea    0xd29(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20000,%eax
cmp    $0x0,%eax
je     1384 <form_bit_name+0x274>
lea    0x2cc8(%rip),%rdi
lea    0xd11(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40000,%eax
cmp    $0x0,%eax
je     13a8 <form_bit_name+0x298>
lea    0x2ca4(%rip),%rdi
lea    0xcf3(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200000,%eax
cmp    $0x0,%eax
je     13cc <form_bit_name+0x2bc>
lea    0x2c80(%rip),%rdi
lea    0xcd5(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400000,%eax
cmp    $0x0,%eax
je     13f0 <form_bit_name+0x2e0>
lea    0x2c5c(%rip),%rdi
lea    0xcb9(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800000,%eax
cmp    $0x0,%eax
je     1414 <form_bit_name+0x304>
lea    0x2c38(%rip),%rdi
lea    0xc9b(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x1000000,%eax
cmp    $0x0,%eax
je     1438 <form_bit_name+0x328>
lea    0x2c14(%rip),%rdi
lea    0xc80(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2000000,%eax
cmp    $0x0,%eax
je     145c <form_bit_name+0x34c>
lea    0x2bf0(%rip),%rdi
lea    0xc63(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4000000,%eax
cmp    $0x0,%eax
je     1480 <form_bit_name+0x370>
lea    0x2bcc(%rip),%rdi
lea    0xc47(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8000000,%eax
cmp    $0x0,%eax
je     14a4 <form_bit_name+0x394>
lea    0x2ba8(%rip),%rdi
lea    0xc2e(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10000000,%eax
cmp    $0x0,%eax
je     14c8 <form_bit_name+0x3b8>
lea    0x2b84(%rip),%rdi
lea    0xc10(%rip),%rsi
call   1030 <strcat@plt>
movsbl 0x2b71(%rip),%edx
lea    0xc0b(%rip),%rax
lea    0x2b63(%rip),%rcx
add    $0x1,%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<form_bit_name>:
push   %rbx
mov    %edi,%ebx
movb   $0x0,0x2f26(%rip)
test   $0x2,%bl
jne    1267 <form_bit_name+0x157>
test   $0x1,%bl
jne    1270 <form_bit_name+0x160>
test   $0x4,%bl
jne    128c <form_bit_name+0x17c>
test   $0x8,%bl
jne    12a8 <form_bit_name+0x198>
test   $0x10,%bl
jne    12c4 <form_bit_name+0x1b4>
test   $0x40,%bl
jne    12e0 <form_bit_name+0x1d0>
test   $0x80,%bl
jne    12fc <form_bit_name+0x1ec>
test   $0x100,%ebx
jne    131b <form_bit_name+0x20b>
test   $0x200,%ebx
jne    133a <form_bit_name+0x22a>
test   $0x400,%ebx
jne    1359 <form_bit_name+0x249>
test   $0x800,%ebx
jne    1378 <form_bit_name+0x268>
test   $0x1000,%ebx
jne    1397 <form_bit_name+0x287>
test   $0x2000,%ebx
jne    13b6 <form_bit_name+0x2a6>
test   $0x4000,%ebx
jne    13d5 <form_bit_name+0x2c5>
test   $0x8000,%ebx
jne    13f4 <form_bit_name+0x2e4>
test   $0x10000,%ebx
jne    1413 <form_bit_name+0x303>
test   $0x20000,%ebx
jne    1432 <form_bit_name+0x322>
test   $0x40000,%ebx
jne    1451 <form_bit_name+0x341>
test   $0x200000,%ebx
jne    1470 <form_bit_name+0x360>
test   $0x400000,%ebx
jne    148f <form_bit_name+0x37f>
test   $0x800000,%ebx
jne    14ae <form_bit_name+0x39e>
test   $0x1000000,%ebx
jne    14cd <form_bit_name+0x3bd>
test   $0x2000000,%ebx
jne    14ec <form_bit_name+0x3dc>
test   $0x4000000,%ebx
jne    150b <form_bit_name+0x3fb>
test   $0x8000000,%ebx
jne    152a <form_bit_name+0x41a>
test   $0x10000000,%ebx
je     124c <form_bit_name+0x13c>
lea    0x2e00(%rip),%rdi
lea    0xe8c(%rip),%rsi
call   1030 <strcat@plt>
cmpb   $0x0,0x2ded(%rip)
lea    0xe87(%rip),%rcx
lea    0x2de0(%rip),%rax
cmove  %rcx,%rax
pop    %rbx
ret
lea    0xd92(%rip),%rsi
jmp    1277 <form_bit_name+0x167>
lea    0xd91(%rip),%rsi
lea    0x2dc2(%rip),%rdi
call   1030 <strcat@plt>
test   $0x4,%bl
je     1135 <form_bit_name+0x25>
lea    0x2dad(%rip),%rdi
lea    0xd76(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8,%bl
je     113e <form_bit_name+0x2e>
lea    0x2d91(%rip),%rdi
lea    0xd63(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10,%bl
je     1147 <form_bit_name+0x37>
lea    0x2d75(%rip),%rdi
lea    0xd54(%rip),%rsi
call   1030 <strcat@plt>
test   $0x40,%bl
je     1150 <form_bit_name+0x40>
lea    0x2d59(%rip),%rdi
lea    0xd3f(%rip),%rsi
call   1030 <strcat@plt>
test   $0x80,%bl
je     1159 <form_bit_name+0x49>
lea    0x2d3d(%rip),%rdi
lea    0xd2b(%rip),%rsi
call   1030 <strcat@plt>
test   $0x100,%ebx
je     1165 <form_bit_name+0x55>
lea    0x2d1e(%rip),%rdi
lea    0xd16(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200,%ebx
je     1171 <form_bit_name+0x61>
lea    0x2cff(%rip),%rdi
lea    0xcff(%rip),%rsi
call   1030 <strcat@plt>
test   $0x400,%ebx
je     117d <form_bit_name+0x6d>
lea    0x2ce0(%rip),%rdi
lea    0xceb(%rip),%rsi
call   1030 <strcat@plt>
test   $0x800,%ebx
je     1189 <form_bit_name+0x79>
lea    0x2cc1(%rip),%rdi
lea    0xcd2(%rip),%rsi
call   1030 <strcat@plt>
test   $0x1000,%ebx
je     1195 <form_bit_name+0x85>
lea    0x2ca2(%rip),%rdi
lea    0xcbf(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2000,%ebx
je     11a1 <form_bit_name+0x91>
lea    0x2c83(%rip),%rdi
lea    0xca7(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4000,%ebx
je     11ad <form_bit_name+0x9d>
lea    0x2c64(%rip),%rdi
lea    0xc91(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8000,%ebx
je     11b9 <form_bit_name+0xa9>
lea    0x2c45(%rip),%rdi
lea    0xc7a(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10000,%ebx
je     11c5 <form_bit_name+0xb5>
lea    0x2c26(%rip),%rdi
lea    0xc63(%rip),%rsi
call   1030 <strcat@plt>
test   $0x20000,%ebx
je     11d1 <form_bit_name+0xc1>
lea    0x2c07(%rip),%rdi
lea    0xc50(%rip),%rsi
call   1030 <strcat@plt>
test   $0x40000,%ebx
je     11dd <form_bit_name+0xcd>
lea    0x2be8(%rip),%rdi
lea    0xc37(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200000,%ebx
je     11e9 <form_bit_name+0xd9>
lea    0x2bc9(%rip),%rdi
lea    0xc1e(%rip),%rsi
call   1030 <strcat@plt>
test   $0x400000,%ebx
je     11f5 <form_bit_name+0xe5>
lea    0x2baa(%rip),%rdi
lea    0xc07(%rip),%rsi
call   1030 <strcat@plt>
test   $0x800000,%ebx
je     1201 <form_bit_name+0xf1>
lea    0x2b8b(%rip),%rdi
lea    0xbee(%rip),%rsi
call   1030 <strcat@plt>
test   $0x1000000,%ebx
je     120d <form_bit_name+0xfd>
lea    0x2b6c(%rip),%rdi
lea    0xbd8(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2000000,%ebx
je     1219 <form_bit_name+0x109>
lea    0x2b4d(%rip),%rdi
lea    0xbc0(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4000000,%ebx
je     1225 <form_bit_name+0x115>
lea    0x2b2e(%rip),%rdi
lea    0xba9(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8000000,%ebx
je     1231 <form_bit_name+0x121>
lea    0x2b0f(%rip),%rdi
lea    0xb95(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10000000,%ebx
jne    1239 <form_bit_name+0x129>
jmp    124c <form_bit_name+0x13c>

LLVM IR (-O0):
@form_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [8 x i8] c" poison\00"
@.str.1 = [8 x i8] c" edible\00"
@.str.2 = [9 x i8] c" magical\00"
@.str.3 = [13 x i8] c" instant_rot\00"
@.str.4 = [7 x i8] c" other\00"
@.str.5 = [8 x i8] c" animal\00"
@.str.6 = [10 x i8] c" sentient\00"
@.str.7 = [8 x i8] c" undead\00"
@.str.8 = [11 x i8] c" construct\00"
@.str.9 = [6 x i8] c" mist\00"
@.str.10 = [12 x i8] c" intangible\00"
@.str.11 = [7 x i8] c" biped\00"
@.str.12 = [9 x i8] c" centaur\00"
@.str.13 = [8 x i8] c" insect\00"
@.str.14 = [8 x i8] c" spider\00"
@.str.15 = [12 x i8] c" crustacean\00"
@.str.16 = [6 x i8] c" worm\00"
@.str.17 = [6 x i8] c" blob\00"
@.str.18 = [8 x i8] c" mammal\00"
@.str.19 = [6 x i8] c" bird\00"
@.str.20 = [9 x i8] c" reptile\00"
@.str.21 = [7 x i8] c" snake\00"
@.str.22 = [8 x i8] c" dragon\00"
@.str.23 = [11 x i8] c" amphibian\00"
@.str.24 = [6 x i8] c" fish\00"
@.str.25 = [14 x i8] c" cold_blooded\00"
@.str.26 = [5 x i8] c"none\00"
define i8* @form_bit_name(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0)
%3 = load i32, i32* %2
%4 = and i32 %3, 2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %15
8: ; preds = %1
%9 = load i32, i32* %2
%10 = and i32 %9, 1
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
br label %15
15: ; preds = %14, %6
%16 = load i32, i32* %2
%17 = and i32 %16, 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %15
%22 = load i32, i32* %2
%23 = and i32 %22, 8
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %21
%28 = load i32, i32* %2
%29 = and i32 %28, 16
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %27
%34 = load i32, i32* %2
%35 = and i32 %34, 64
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %37, %33
%40 = load i32, i32* %2
%41 = and i32 %40, 128
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %45
45: ; preds = %43, %39
%46 = load i32, i32* %2
%47 = and i32 %46, 256
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %51
51: ; preds = %49, %45
%52 = load i32, i32* %2
%53 = and i32 %52, 512
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %57
57: ; preds = %55, %51
%58 = load i32, i32* %2
%59 = and i32 %58, 1024
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %63
63: ; preds = %61, %57
%64 = load i32, i32* %2
%65 = and i32 %64, 2048
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
br label %69
69: ; preds = %67, %63
%70 = load i32, i32* %2
%71 = and i32 %70, 4096
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %75
75: ; preds = %73, %69
%76 = load i32, i32* %2
%77 = and i32 %76, 8192
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %79, %75
%82 = load i32, i32* %2
%83 = and i32 %82, 16384
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %87
87: ; preds = %85, %81
%88 = load i32, i32* %2
%89 = and i32 %88, 32768
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %93
93: ; preds = %91, %87
%94 = load i32, i32* %2
%95 = and i32 %94, 65536
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
br label %99
99: ; preds = %97, %93
%100 = load i32, i32* %2
%101 = and i32 %100, 131072
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
br label %105
105: ; preds = %103, %99
%106 = load i32, i32* %2
%107 = and i32 %106, 262144
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
br label %111
111: ; preds = %109, %105
%112 = load i32, i32* %2
%113 = and i32 %112, 2097152
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
br label %117
117: ; preds = %115, %111
%118 = load i32, i32* %2
%119 = and i32 %118, 4194304
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %117
%122 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
br label %123
123: ; preds = %121, %117
%124 = load i32, i32* %2
%125 = and i32 %124, 8388608
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %129
127: ; preds = %123
%128 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
br label %129
129: ; preds = %127, %123
%130 = load i32, i32* %2
%131 = and i32 %130, 16777216
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %135
135: ; preds = %133, %129
%136 = load i32, i32* %2
%137 = and i32 %136, 33554432
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %141
139: ; preds = %135
%140 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
br label %141
141: ; preds = %139, %135
%142 = load i32, i32* %2
%143 = and i32 %142, 67108864
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %147
145: ; preds = %141
%146 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
br label %147
147: ; preds = %145, %141
%148 = load i32, i32* %2
%149 = and i32 %148, 134217728
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
br label %153
153: ; preds = %151, %147
%154 = load i32, i32* %2
%155 = and i32 %154, 268435456
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %159
157: ; preds = %153
%158 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.25, i64 0, i64 0))
br label %159
159: ; preds = %157, %153
%160 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0)
%161 = sext i8 %160 to i32
%162 = icmp ne i32 %161, 0
%163 = zext i1 %162 to i64
%164 = select i1 %162, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 1), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0)
ret i8* %164
}

LLVM IR (-O2):
@form_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [8 x i8] c" poison\00"
@.str.1 = [8 x i8] c" edible\00"
@.str.2 = [9 x i8] c" magical\00"
@.str.3 = [13 x i8] c" instant_rot\00"
@.str.4 = [7 x i8] c" other\00"
@.str.5 = [8 x i8] c" animal\00"
@.str.6 = [10 x i8] c" sentient\00"
@.str.7 = [8 x i8] c" undead\00"
@.str.8 = [11 x i8] c" construct\00"
@.str.9 = [6 x i8] c" mist\00"
@.str.10 = [12 x i8] c" intangible\00"
@.str.11 = [7 x i8] c" biped\00"
@.str.12 = [9 x i8] c" centaur\00"
@.str.13 = [8 x i8] c" insect\00"
@.str.14 = [8 x i8] c" spider\00"
@.str.15 = [12 x i8] c" crustacean\00"
@.str.16 = [6 x i8] c" worm\00"
@.str.17 = [6 x i8] c" blob\00"
@.str.18 = [8 x i8] c" mammal\00"
@.str.19 = [6 x i8] c" bird\00"
@.str.20 = [9 x i8] c" reptile\00"
@.str.21 = [7 x i8] c" snake\00"
@.str.22 = [8 x i8] c" dragon\00"
@.str.23 = [11 x i8] c" amphibian\00"
@.str.24 = [6 x i8] c" fish\00"
@.str.25 = [14 x i8] c" cold_blooded\00"
@.str.26 = [5 x i8] c"none\00"
define i8* @form_bit_name(i32 %0) {
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0)
%2 = and i32 %0, 2
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = and i32 %0, 1
%6 = icmp eq i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %4, %1
%8 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %4 ]
%9 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %7, %4
%11 = and i32 %0, 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
%16 = and i32 %0, 8
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %20
20: ; preds = %18, %15
%21 = and i32 %0, 16
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
%26 = and i32 %0, 64
%27 = icmp eq i32 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %28, %25
%31 = and i32 %0, 128
%32 = icmp eq i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %35
35: ; preds = %33, %30
%36 = and i32 %0, 256
%37 = icmp eq i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %38, %35
%41 = and i32 %0, 512
%42 = icmp eq i32 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %45
45: ; preds = %43, %40
%46 = and i32 %0, 1024
%47 = icmp eq i32 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %50
50: ; preds = %48, %45
%51 = and i32 %0, 2048
%52 = icmp eq i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
br label %55
55: ; preds = %53, %50
%56 = and i32 %0, 4096
%57 = icmp eq i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %60
60: ; preds = %58, %55
%61 = and i32 %0, 8192
%62 = icmp eq i32 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
br label %65
65: ; preds = %63, %60
%66 = and i32 %0, 16384
%67 = icmp eq i32 %66, 0
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %70
70: ; preds = %68, %65
%71 = and i32 %0, 32768
%72 = icmp eq i32 %71, 0
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %75
75: ; preds = %73, %70
%76 = and i32 %0, 65536
%77 = icmp eq i32 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
br label %80
80: ; preds = %78, %75
%81 = and i32 %0, 131072
%82 = icmp eq i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
br label %85
85: ; preds = %83, %80
%86 = and i32 %0, 262144
%87 = icmp eq i32 %86, 0
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
br label %90
90: ; preds = %88, %85
%91 = and i32 %0, 2097152
%92 = icmp eq i32 %91, 0
br i1 %92, label %95, label %93
93: ; preds = %90
%94 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
br label %95
95: ; preds = %93, %90
%96 = and i32 %0, 4194304
%97 = icmp eq i32 %96, 0
br i1 %97, label %100, label %98
98: ; preds = %95
%99 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
br label %100
100: ; preds = %98, %95
%101 = and i32 %0, 8388608
%102 = icmp eq i32 %101, 0
br i1 %102, label %105, label %103
103: ; preds = %100
%104 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
br label %105
105: ; preds = %103, %100
%106 = and i32 %0, 16777216
%107 = icmp eq i32 %106, 0
br i1 %107, label %110, label %108
108: ; preds = %105
%109 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %110
110: ; preds = %108, %105
%111 = and i32 %0, 33554432
%112 = icmp eq i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %110
%114 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
br label %115
115: ; preds = %113, %110
%116 = and i32 %0, 67108864
%117 = icmp eq i32 %116, 0
br i1 %117, label %120, label %118
118: ; preds = %115
%119 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
br label %120
120: ; preds = %118, %115
%121 = and i32 %0, 134217728
%122 = icmp eq i32 %121, 0
br i1 %122, label %125, label %123
123: ; preds = %120
%124 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
br label %125
125: ; preds = %123, %120
%126 = and i32 %0, 268435456
%127 = icmp eq i32 %126, 0
br i1 %127, label %130, label %128
128: ; preds = %125
%129 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.25, i64 0, i64 0))
br label %130
130: ; preds = %128, %125
%131 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 0)
%132 = icmp eq i8 %131, 0
%133 = select i1 %132, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([512 x i8], [512 x i8]* @form_bit_name.buf, i64 0, i64 1)
ret i8* %133
}