#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 *affect_bit_name(int vector) {
  static char buf[512];
  buf[0] = '\0';
  if (vector & (1))
    strcat(buf, " blind");
  if (vector & (2))
    strcat(buf, " invisible");
  if (vector & (4))
    strcat(buf, " detect_evil");
  if (vector & (64))
    strcat(buf, " detect_good");
  if (vector & (8))
    strcat(buf, " detect_invis");
  if (vector & (16))
    strcat(buf, " detect_magic");
  if (vector & (32))
    strcat(buf, " detect_hidden");
  if (vector & (128))
    strcat(buf, " sanctuary");
  if (vector & (256))
    strcat(buf, " faerie_fire");
  if (vector & (512))
    strcat(buf, " infrared");
  if (vector & (1024))
    strcat(buf, " curse");
  if (vector & (4096))
    strcat(buf, " poison");
  if (vector & (8192))
    strcat(buf, " prot_evil");
  if (vector & (16384))
    strcat(buf, " prot_good");
  if (vector & (131072))
    strcat(buf, " sleep");
  if (vector & (32768))
    strcat(buf, " sneak");
  if (vector & (65536))
    strcat(buf, " hide");
  if (vector & (262144))
    strcat(buf, " charm");
  if (vector & (524288))
    strcat(buf, " flying");
  if (vector & (1048576))
    strcat(buf, " pass_door");
  if (vector & (67108864))
    strcat(buf, " berserk");
  if (vector & (4194304))
    strcat(buf, " calm");
  if (vector & (2097152))
    strcat(buf, " haste");
  if (vector & (536870912))
    strcat(buf, " slow");
  if (vector & (8388608))
    strcat(buf, " plague");
  if (vector & (33554432))
    strcat(buf, " dark_vision");
  return (buf[0] != '\0') ? buf + 1 : "none";
}


x86 assembly (clang, -O0):
<affect_bit_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,0x2f1e(%rip)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1144 <affect_bit_name+0x34>
lea    0x2f08(%rip),%rdi
lea    0xec1(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1166 <affect_bit_name+0x56>
lea    0x2ee6(%rip),%rdi
lea    0xea6(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1188 <affect_bit_name+0x78>
lea    0x2ec4(%rip),%rdi
lea    0xe8f(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     11aa <affect_bit_name+0x9a>
lea    0x2ea2(%rip),%rdi
lea    0xe7a(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     11cc <affect_bit_name+0xbc>
lea    0x2e80(%rip),%rdi
lea    0xe65(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     11ee <affect_bit_name+0xde>
lea    0x2e5e(%rip),%rdi
lea    0xe51(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1210 <affect_bit_name+0x100>
lea    0x2e3c(%rip),%rdi
lea    0xe3d(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1234 <affect_bit_name+0x124>
lea    0x2e18(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1258 <affect_bit_name+0x148>
lea    0x2df4(%rip),%rdi
lea    0xe0f(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     127c <affect_bit_name+0x16c>
lea    0x2dd0(%rip),%rdi
lea    0xdf8(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     12a0 <affect_bit_name+0x190>
lea    0x2dac(%rip),%rdi
lea    0xdde(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     12c4 <affect_bit_name+0x1b4>
lea    0x2d88(%rip),%rdi
lea    0xdc1(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     12e8 <affect_bit_name+0x1d8>
lea    0x2d64(%rip),%rdi
lea    0xda5(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     130c <affect_bit_name+0x1fc>
lea    0x2d40(%rip),%rdi
lea    0xd8c(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20000,%eax
cmp    $0x0,%eax
je     1330 <affect_bit_name+0x220>
lea    0x2d1c(%rip),%rdi
lea    0xd73(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     1354 <affect_bit_name+0x244>
lea    0x2cf8(%rip),%rdi
lea    0xd56(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10000,%eax
cmp    $0x0,%eax
je     1378 <affect_bit_name+0x268>
lea    0x2cd4(%rip),%rdi
lea    0xd39(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40000,%eax
cmp    $0x0,%eax
je     139c <affect_bit_name+0x28c>
lea    0x2cb0(%rip),%rdi
lea    0xd1b(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x80000,%eax
cmp    $0x0,%eax
je     13c0 <affect_bit_name+0x2b0>
lea    0x2c8c(%rip),%rdi
lea    0xcfe(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x100000,%eax
cmp    $0x0,%eax
je     13e4 <affect_bit_name+0x2d4>
lea    0x2c68(%rip),%rdi
lea    0xce2(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4000000,%eax
cmp    $0x0,%eax
je     1408 <affect_bit_name+0x2f8>
lea    0x2c44(%rip),%rdi
lea    0xcc9(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400000,%eax
cmp    $0x0,%eax
je     142c <affect_bit_name+0x31c>
lea    0x2c20(%rip),%rdi
lea    0xcae(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200000,%eax
cmp    $0x0,%eax
je     1450 <affect_bit_name+0x340>
lea    0x2bfc(%rip),%rdi
lea    0xc90(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20000000,%eax
cmp    $0x0,%eax
je     1474 <affect_bit_name+0x364>
lea    0x2bd8(%rip),%rdi
lea    0xc73(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800000,%eax
cmp    $0x0,%eax
je     1498 <affect_bit_name+0x388>
lea    0x2bb4(%rip),%rdi
lea    0xc55(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2000000,%eax
cmp    $0x0,%eax
je     14bc <affect_bit_name+0x3ac>
lea    0x2b90(%rip),%rdi
lea    0xc39(%rip),%rsi
call   1030 <strcat@plt>
movsbl 0x2b7d(%rip),%edx
lea    0xc33(%rip),%rax
lea    0x2b6f(%rip),%rcx
add    $0x1,%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<affect_bit_name>:
push   %rbx
mov    %edi,%ebx
movb   $0x0,0x2f26(%rip)
test   $0x1,%bl
jne    1264 <affect_bit_name+0x154>
test   $0x2,%bl
jne    1280 <affect_bit_name+0x170>
test   $0x4,%bl
jne    129c <affect_bit_name+0x18c>
test   $0x40,%bl
jne    12b8 <affect_bit_name+0x1a8>
test   $0x8,%bl
jne    12d4 <affect_bit_name+0x1c4>
test   $0x10,%bl
jne    12f0 <affect_bit_name+0x1e0>
test   $0x20,%bl
jne    130c <affect_bit_name+0x1fc>
test   $0x80,%bl
jne    1328 <affect_bit_name+0x218>
test   $0x100,%ebx
jne    1347 <affect_bit_name+0x237>
test   $0x200,%ebx
jne    1366 <affect_bit_name+0x256>
test   $0x400,%ebx
jne    1385 <affect_bit_name+0x275>
test   $0x1000,%ebx
jne    13a4 <affect_bit_name+0x294>
test   $0x2000,%ebx
jne    13c3 <affect_bit_name+0x2b3>
test   $0x4000,%ebx
jne    13e2 <affect_bit_name+0x2d2>
test   $0x20000,%ebx
jne    1401 <affect_bit_name+0x2f1>
test   $0x8000,%ebx
jne    1420 <affect_bit_name+0x310>
test   $0x10000,%ebx
jne    143f <affect_bit_name+0x32f>
test   $0x40000,%ebx
jne    145e <affect_bit_name+0x34e>
test   $0x80000,%ebx
jne    147d <affect_bit_name+0x36d>
test   $0x100000,%ebx
jne    149c <affect_bit_name+0x38c>
test   $0x4000000,%ebx
jne    14bb <affect_bit_name+0x3ab>
test   $0x400000,%ebx
jne    14da <affect_bit_name+0x3ca>
test   $0x200000,%ebx
jne    14f9 <affect_bit_name+0x3e9>
test   $0x20000000,%ebx
jne    1518 <affect_bit_name+0x408>
test   $0x800000,%ebx
jne    1537 <affect_bit_name+0x427>
test   $0x2000000,%ebx
je     1249 <affect_bit_name+0x139>
lea    0x2e03(%rip),%rdi
lea    0xeac(%rip),%rsi
call   1030 <strcat@plt>
cmpb   $0x0,0x2df0(%rip)
lea    0xea6(%rip),%rcx
lea    0x2de3(%rip),%rax
cmove  %rcx,%rax
pop    %rbx
ret
lea    0x2dd5(%rip),%rdi
lea    0xd8e(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2,%bl
je     112c <affect_bit_name+0x1c>
lea    0x2db9(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4,%bl
je     1135 <affect_bit_name+0x25>
lea    0x2d9d(%rip),%rdi
lea    0xd68(%rip),%rsi
call   1030 <strcat@plt>
test   $0x40,%bl
je     113e <affect_bit_name+0x2e>
lea    0x2d81(%rip),%rdi
lea    0xd59(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8,%bl
je     1147 <affect_bit_name+0x37>
lea    0x2d65(%rip),%rdi
lea    0xd4a(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10,%bl
je     1150 <affect_bit_name+0x40>
lea    0x2d49(%rip),%rdi
lea    0xd3c(%rip),%rsi
call   1030 <strcat@plt>
test   $0x20,%bl
je     1159 <affect_bit_name+0x49>
lea    0x2d2d(%rip),%rdi
lea    0xd2e(%rip),%rsi
call   1030 <strcat@plt>
test   $0x80,%bl
je     1162 <affect_bit_name+0x52>
lea    0x2d11(%rip),%rdi
lea    0xd21(%rip),%rsi
call   1030 <strcat@plt>
test   $0x100,%ebx
je     116e <affect_bit_name+0x5e>
lea    0x2cf2(%rip),%rdi
lea    0xd0d(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200,%ebx
je     117a <affect_bit_name+0x6a>
lea    0x2cd3(%rip),%rdi
lea    0xcfb(%rip),%rsi
call   1030 <strcat@plt>
test   $0x400,%ebx
je     1186 <affect_bit_name+0x76>
lea    0x2cb4(%rip),%rdi
lea    0xce6(%rip),%rsi
call   1030 <strcat@plt>
test   $0x1000,%ebx
je     1192 <affect_bit_name+0x82>
lea    0x2c95(%rip),%rdi
lea    0xcce(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2000,%ebx
je     119e <affect_bit_name+0x8e>
lea    0x2c76(%rip),%rdi
lea    0xcb7(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4000,%ebx
je     11aa <affect_bit_name+0x9a>
lea    0x2c57(%rip),%rdi
lea    0xca3(%rip),%rsi
call   1030 <strcat@plt>
test   $0x20000,%ebx
je     11b6 <affect_bit_name+0xa6>
lea    0x2c38(%rip),%rdi
lea    0xc8f(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8000,%ebx
je     11c2 <affect_bit_name+0xb2>
lea    0x2c19(%rip),%rdi
lea    0xc77(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10000,%ebx
je     11ce <affect_bit_name+0xbe>
lea    0x2bfa(%rip),%rdi
lea    0xc5f(%rip),%rsi
call   1030 <strcat@plt>
test   $0x40000,%ebx
je     11da <affect_bit_name+0xca>
lea    0x2bdb(%rip),%rdi
lea    0xc46(%rip),%rsi
call   1030 <strcat@plt>
test   $0x80000,%ebx
je     11e6 <affect_bit_name+0xd6>
lea    0x2bbc(%rip),%rdi
lea    0xc2e(%rip),%rsi
call   1030 <strcat@plt>
test   $0x100000,%ebx
je     11f2 <affect_bit_name+0xe2>
lea    0x2b9d(%rip),%rdi
lea    0xc17(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4000000,%ebx
je     11fe <affect_bit_name+0xee>
lea    0x2b7e(%rip),%rdi
lea    0xc03(%rip),%rsi
call   1030 <strcat@plt>
test   $0x400000,%ebx
je     120a <affect_bit_name+0xfa>
lea    0x2b5f(%rip),%rdi
lea    0xbed(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200000,%ebx
je     1216 <affect_bit_name+0x106>
lea    0x2b40(%rip),%rdi
lea    0xbd4(%rip),%rsi
call   1030 <strcat@plt>
test   $0x20000000,%ebx
je     1222 <affect_bit_name+0x112>
lea    0x2b21(%rip),%rdi
lea    0xbbc(%rip),%rsi
call   1030 <strcat@plt>
test   $0x800000,%ebx
je     122e <affect_bit_name+0x11e>
lea    0x2b02(%rip),%rdi
lea    0xba3(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2000000,%ebx
jne    1236 <affect_bit_name+0x126>
jmp    1249 <affect_bit_name+0x139>

LLVM IR (-O0):
@affect_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [7 x i8] c" blind\00"
@.str.1 = [11 x i8] c" invisible\00"
@.str.2 = [13 x i8] c" detect_evil\00"
@.str.3 = [13 x i8] c" detect_good\00"
@.str.4 = [14 x i8] c" detect_invis\00"
@.str.5 = [14 x i8] c" detect_magic\00"
@.str.6 = [15 x i8] c" detect_hidden\00"
@.str.7 = [11 x i8] c" sanctuary\00"
@.str.8 = [13 x i8] c" faerie_fire\00"
@.str.9 = [10 x i8] c" infrared\00"
@.str.10 = [7 x i8] c" curse\00"
@.str.11 = [8 x i8] c" poison\00"
@.str.12 = [11 x i8] c" prot_evil\00"
@.str.13 = [11 x i8] c" prot_good\00"
@.str.14 = [7 x i8] c" sleep\00"
@.str.15 = [7 x i8] c" sneak\00"
@.str.16 = [6 x i8] c" hide\00"
@.str.17 = [7 x i8] c" charm\00"
@.str.18 = [8 x i8] c" flying\00"
@.str.19 = [11 x i8] c" pass_door\00"
@.str.20 = [9 x i8] c" berserk\00"
@.str.21 = [6 x i8] c" calm\00"
@.str.22 = [7 x i8] c" haste\00"
@.str.23 = [6 x i8] c" slow\00"
@.str.24 = [8 x i8] c" plague\00"
@.str.25 = [13 x i8] c" dark_vision\00"
@.str.26 = [5 x i8] c"none\00"
define i8* @affect_bit_name(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0)
%3 = load i32, i32* %2
%4 = and i32 %3, 1
%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]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
%9 = load i32, i32* %2
%10 = and i32 %9, 2
%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]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
%15 = load i32, i32* %2
%16 = and i32 %15, 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %14
%21 = load i32, i32* %2
%22 = and i32 %21, 64
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
%27 = load i32, i32* %2
%28 = and i32 %27, 8
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
%33 = load i32, i32* %2
%34 = and i32 %33, 16
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %36, %32
%39 = load i32, i32* %2
%40 = and i32 %39, 32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = load i32, i32* %2
%46 = and i32 %45, 128
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %50
50: ; preds = %48, %44
%51 = load i32, i32* %2
%52 = and i32 %51, 256
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %56
56: ; preds = %54, %50
%57 = load i32, i32* %2
%58 = and i32 %57, 512
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %62
62: ; preds = %60, %56
%63 = load i32, i32* %2
%64 = and i32 %63, 1024
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %68
68: ; preds = %66, %62
%69 = load i32, i32* %2
%70 = and i32 %69, 4096
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %74
74: ; preds = %72, %68
%75 = load i32, i32* %2
%76 = and i32 %75, 8192
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %80
80: ; preds = %78, %74
%81 = load i32, i32* %2
%82 = and i32 %81, 16384
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
br label %86
86: ; preds = %84, %80
%87 = load i32, i32* %2
%88 = and i32 %87, 131072
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = load i32, i32* %2
%94 = and i32 %93, 32768
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %98
98: ; preds = %96, %92
%99 = load i32, i32* %2
%100 = and i32 %99, 65536
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
br label %104
104: ; preds = %102, %98
%105 = load i32, i32* %2
%106 = and i32 %105, 262144
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
br label %110
110: ; preds = %108, %104
%111 = load i32, i32* %2
%112 = and i32 %111, 524288
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
br label %116
116: ; preds = %114, %110
%117 = load i32, i32* %2
%118 = and i32 %117, 1048576
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
br label %122
122: ; preds = %120, %116
%123 = load i32, i32* %2
%124 = and i32 %123, 67108864
%125 = icmp ne i32 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %122
%127 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
br label %128
128: ; preds = %126, %122
%129 = load i32, i32* %2
%130 = and i32 %129, 4194304
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %134
132: ; preds = %128
%133 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
br label %134
134: ; preds = %132, %128
%135 = load i32, i32* %2
%136 = and i32 %135, 2097152
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %140
140: ; preds = %138, %134
%141 = load i32, i32* %2
%142 = and i32 %141, 536870912
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0))
br label %146
146: ; preds = %144, %140
%147 = load i32, i32* %2
%148 = and i32 %147, 8388608
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
br label %152
152: ; preds = %150, %146
%153 = load i32, i32* %2
%154 = and i32 %153, 33554432
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %158
156: ; preds = %152
%157 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0))
br label %158
158: ; preds = %156, %152
%159 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0)
%160 = sext i8 %159 to i32
%161 = icmp ne i32 %160, 0
%162 = zext i1 %161 to i64
%163 = select i1 %161, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 1), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0)
ret i8* %163
}

LLVM IR (-O2):
@affect_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [7 x i8] c" blind\00"
@.str.1 = [11 x i8] c" invisible\00"
@.str.2 = [13 x i8] c" detect_evil\00"
@.str.3 = [13 x i8] c" detect_good\00"
@.str.4 = [14 x i8] c" detect_invis\00"
@.str.5 = [14 x i8] c" detect_magic\00"
@.str.6 = [15 x i8] c" detect_hidden\00"
@.str.7 = [11 x i8] c" sanctuary\00"
@.str.8 = [13 x i8] c" faerie_fire\00"
@.str.9 = [10 x i8] c" infrared\00"
@.str.10 = [7 x i8] c" curse\00"
@.str.11 = [8 x i8] c" poison\00"
@.str.12 = [11 x i8] c" prot_evil\00"
@.str.13 = [11 x i8] c" prot_good\00"
@.str.14 = [7 x i8] c" sleep\00"
@.str.15 = [7 x i8] c" sneak\00"
@.str.16 = [6 x i8] c" hide\00"
@.str.17 = [7 x i8] c" charm\00"
@.str.18 = [8 x i8] c" flying\00"
@.str.19 = [11 x i8] c" pass_door\00"
@.str.20 = [9 x i8] c" berserk\00"
@.str.21 = [6 x i8] c" calm\00"
@.str.22 = [7 x i8] c" haste\00"
@.str.23 = [6 x i8] c" slow\00"
@.str.24 = [8 x i8] c" plague\00"
@.str.25 = [13 x i8] c" dark_vision\00"
@.str.26 = [5 x i8] c"none\00"
define i8* @affect_bit_name(i32 %0) {
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0)
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
%7 = and i32 %0, 2
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
%12 = and i32 %0, 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
%17 = and i32 %0, 64
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = and i32 %0, 8
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %26
26: ; preds = %24, %21
%27 = and i32 %0, 16
%28 = icmp eq i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = and i32 %0, 32
%33 = icmp eq i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = and i32 %0, 128
%38 = icmp eq i32 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = and i32 %0, 256
%43 = icmp eq i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %41
%45 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
%47 = and i32 %0, 512
%48 = icmp eq i32 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %46
%50 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %51
51: ; preds = %49, %46
%52 = and i32 %0, 1024
%53 = icmp eq i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %51
%55 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %56
56: ; preds = %54, %51
%57 = and i32 %0, 4096
%58 = icmp eq i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %56
%60 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = and i32 %0, 8192
%63 = icmp eq i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %61
%65 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %66
66: ; preds = %64, %61
%67 = and i32 %0, 16384
%68 = icmp eq i32 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
br label %71
71: ; preds = %69, %66
%72 = and i32 %0, 131072
%73 = icmp eq i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
%77 = and i32 %0, 32768
%78 = icmp eq i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %76
%80 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %81
81: ; preds = %79, %76
%82 = and i32 %0, 65536
%83 = icmp eq i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
br label %86
86: ; preds = %84, %81
%87 = and i32 %0, 262144
%88 = icmp eq i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %86
%90 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
br label %91
91: ; preds = %89, %86
%92 = and i32 %0, 524288
%93 = icmp eq i32 %92, 0
br i1 %93, label %96, label %94
94: ; preds = %91
%95 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
br label %96
96: ; preds = %94, %91
%97 = and i32 %0, 1048576
%98 = icmp eq i32 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %96
%100 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
br label %101
101: ; preds = %99, %96
%102 = and i32 %0, 67108864
%103 = icmp eq i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
br label %106
106: ; preds = %104, %101
%107 = and i32 %0, 4194304
%108 = icmp eq i32 %107, 0
br i1 %108, label %111, label %109
109: ; preds = %106
%110 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
br label %111
111: ; preds = %109, %106
%112 = and i32 %0, 2097152
%113 = icmp eq i32 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %111
%115 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %116
116: ; preds = %114, %111
%117 = and i32 %0, 536870912
%118 = icmp eq i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %116
%120 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0))
br label %121
121: ; preds = %119, %116
%122 = and i32 %0, 8388608
%123 = icmp eq i32 %122, 0
br i1 %123, label %126, label %124
124: ; preds = %121
%125 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
br label %126
126: ; preds = %124, %121
%127 = and i32 %0, 33554432
%128 = icmp eq i32 %127, 0
br i1 %128, label %131, label %129
129: ; preds = %126
%130 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0))
br label %131
131: ; preds = %129, %126
%132 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 0)
%133 = icmp eq i8 %132, 0
%134 = select i1 %133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([512 x i8], [512 x i8]* @affect_bit_name.buf, i64 0, i64 1)
ret i8* %134
}