#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 */
typedef int EventMask;

/* Variables and functions */
int Button1MotionMask;
int Button2MotionMask;
int Button3MotionMask;
int Button4MotionMask;
int Button5MotionMask;
int ButtonMotionMask;
int ButtonPressMask;
int ButtonReleaseMask;
int ColormapChangeMask;
int EnterWindowMask;
int ExposureMask;
int FocusChangeMask;
int KeyPressMask;
int KeyReleaseMask;
int KeymapStateMask;
int LeaveWindowMask;
int OwnerGrabButtonMask;
int PointerMotionHintMask;
int PointerMotionMask;
int PropertyChangeMask;
int ResizeRedirectMask;
int StructureNotifyMask;
int SubstructureNotifyMask;
int SubstructureRedirectMask;
int VisibilityChangeMask;
int /*<<< orphan*/ npw_printf(char *);
void print_event_mask(EventMask event_mask) {
  if (event_mask & (KeyPressMask))
    npw_printf("  "
               "KeyPress"
               "\n");
  if (event_mask & (KeyReleaseMask))
    npw_printf("  "
               "KeyRelease"
               "\n");
  if (event_mask & (ButtonPressMask))
    npw_printf("  "
               "ButtonPress"
               "\n");
  if (event_mask & (ButtonReleaseMask))
    npw_printf("  "
               "ButtonRelease"
               "\n");
  if (event_mask & (EnterWindowMask))
    npw_printf("  "
               "EnterWindow"
               "\n");
  if (event_mask & (LeaveWindowMask))
    npw_printf("  "
               "LeaveWindow"
               "\n");
  if (event_mask & (PointerMotionMask))
    npw_printf("  "
               "PointerMotion"
               "\n");
  if (event_mask & (PointerMotionHintMask))
    npw_printf("  "
               "PointerMotionHint"
               "\n");
  if (event_mask & (Button1MotionMask))
    npw_printf("  "
               "Button1Motion"
               "\n");
  if (event_mask & (Button2MotionMask))
    npw_printf("  "
               "Button2Motion"
               "\n");
  if (event_mask & (Button3MotionMask))
    npw_printf("  "
               "Button3Motion"
               "\n");
  if (event_mask & (Button4MotionMask))
    npw_printf("  "
               "Button4Motion"
               "\n");
  if (event_mask & (Button5MotionMask))
    npw_printf("  "
               "Button5Motion"
               "\n");
  if (event_mask & (ButtonMotionMask))
    npw_printf("  "
               "ButtonMotion"
               "\n");
  if (event_mask & (KeymapStateMask))
    npw_printf("  "
               "KeymapState"
               "\n");
  if (event_mask & (ExposureMask))
    npw_printf("  "
               "Exposure"
               "\n");
  if (event_mask & (VisibilityChangeMask))
    npw_printf("  "
               "VisibilityChange"
               "\n");
  if (event_mask & (StructureNotifyMask))
    npw_printf("  "
               "StructureNotify"
               "\n");
  if (event_mask & (ResizeRedirectMask))
    npw_printf("  "
               "ResizeRedirect"
               "\n");
  if (event_mask & (SubstructureNotifyMask))
    npw_printf("  "
               "SubstructureNotify"
               "\n");
  if (event_mask & (SubstructureRedirectMask))
    npw_printf("  "
               "SubstructureRedirect"
               "\n");
  if (event_mask & (FocusChangeMask))
    npw_printf("  "
               "FocusChange"
               "\n");
  if (event_mask & (PropertyChangeMask))
    npw_printf("  "
               "PropertyChange"
               "\n");
  if (event_mask & (ColormapChangeMask))
    npw_printf("  "
               "ColormapChange"
               "\n");
  if (event_mask & (OwnerGrabButtonMask))
    npw_printf("  "
               "OwnerGrabButton"
               "\n");
}


x86 assembly (clang, -O0):
<print_event_mask>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e63(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     113c <print_event_mask+0x2c>
lea    0xec9(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2de2(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     115d <print_event_mask+0x4d>
lea    0xeb4(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2e29(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     117e <print_event_mask+0x6e>
lea    0xea1(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2dd0(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     119f <print_event_mask+0x8f>
lea    0xe8f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2e37(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11c0 <print_event_mask+0xb0>
lea    0xe7f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2d7e(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11e1 <print_event_mask+0xd1>
lea    0xe6d(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2dfd(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1202 <print_event_mask+0xf2>
lea    0xe5b(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2dac(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1223 <print_event_mask+0x113>
lea    0xe4b(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2d83(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1244 <print_event_mask+0x134>
lea    0xe3f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2d32(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1265 <print_event_mask+0x155>
lea    0xe2f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2d01(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1286 <print_event_mask+0x176>
lea    0xe1f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2c88(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12a7 <print_event_mask+0x197>
lea    0xe0f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2d47(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12c8 <print_event_mask+0x1b8>
lea    0xdff(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2cee(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12e9 <print_event_mask+0x1d9>
lea    0xdef(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2cad(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     130a <print_event_mask+0x1fa>
lea    0xdde(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2c2c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     132b <print_event_mask+0x21b>
lea    0xdcc(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2c93(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     134c <print_event_mask+0x23c>
lea    0xdb7(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2c12(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     136d <print_event_mask+0x25d>
lea    0xdaa(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2be9(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     138e <print_event_mask+0x27e>
lea    0xd9c(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2b98(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13af <print_event_mask+0x29f>
lea    0xd8d(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2b97(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13d0 <print_event_mask+0x2c0>
lea    0xd82(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2bf6(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13f1 <print_event_mask+0x2e1>
lea    0xd79(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2bad(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1412 <print_event_mask+0x302>
lea    0xd67(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2b7c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1433 <print_event_mask+0x323>
lea    0xd58(%rip),%rdi
call   1030 <npw_printf@plt>
mov    -0x4(%rbp),%eax
mov    0x2afb(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1454 <print_event_mask+0x344>
lea    0xd49(%rip),%rdi
call   1030 <npw_printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_event_mask>:
push   %rbx
mov    %edi,%ebx
mov    0x2e6e(%rip),%rax
test   %edi,(%rax)
je     112a <print_event_mask+0x1a>
lea    0xedb(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2df7(%rip),%rax
test   %ebx,(%rax)
je     1141 <print_event_mask+0x31>
lea    0xed0(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2e48(%rip),%rax
test   %ebx,(%rax)
je     1158 <print_event_mask+0x48>
lea    0xec7(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2df9(%rip),%rax
test   %ebx,(%rax)
je     116f <print_event_mask+0x5f>
lea    0xebf(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2e6a(%rip),%rax
test   %ebx,(%rax)
je     1186 <print_event_mask+0x76>
lea    0xeb9(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2dbb(%rip),%rax
test   %ebx,(%rax)
je     119d <print_event_mask+0x8d>
lea    0xeb1(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2e44(%rip),%rax
test   %ebx,(%rax)
je     11b4 <print_event_mask+0xa4>
lea    0xea9(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2dfd(%rip),%rax
test   %ebx,(%rax)
je     11cb <print_event_mask+0xbb>
lea    0xea3(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2dde(%rip),%rax
test   %ebx,(%rax)
je     11e2 <print_event_mask+0xd2>
lea    0xea1(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d97(%rip),%rax
test   %ebx,(%rax)
je     11f9 <print_event_mask+0xe9>
lea    0xe9b(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d70(%rip),%rax
test   %ebx,(%rax)
je     1210 <print_event_mask+0x100>
lea    0xe95(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d01(%rip),%rax
test   %ebx,(%rax)
je     1227 <print_event_mask+0x117>
lea    0xe8f(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2dca(%rip),%rax
test   %ebx,(%rax)
je     123e <print_event_mask+0x12e>
lea    0xe89(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d7b(%rip),%rax
test   %ebx,(%rax)
je     1255 <print_event_mask+0x145>
lea    0xe83(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d44(%rip),%rax
test   %ebx,(%rax)
je     126c <print_event_mask+0x15c>
lea    0xe7c(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2ccd(%rip),%rax
test   %ebx,(%rax)
je     1283 <print_event_mask+0x173>
lea    0xe74(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2d3e(%rip),%rax
test   %ebx,(%rax)
je     129a <print_event_mask+0x18a>
lea    0xe69(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2cc7(%rip),%rax
test   %ebx,(%rax)
je     12b1 <print_event_mask+0x1a1>
lea    0xe66(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2ca8(%rip),%rax
test   %ebx,(%rax)
je     12c8 <print_event_mask+0x1b8>
lea    0xe62(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2c61(%rip),%rax
test   %ebx,(%rax)
je     12df <print_event_mask+0x1cf>
lea    0xe5d(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2c6a(%rip),%rax
test   %ebx,(%rax)
je     12f6 <print_event_mask+0x1e6>
lea    0xe5c(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2cd3(%rip),%rax
test   %ebx,(%rax)
je     130d <print_event_mask+0x1fd>
lea    0xe5d(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2c94(%rip),%rax
test   %ebx,(%rax)
je     1324 <print_event_mask+0x214>
lea    0xe55(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2c6d(%rip),%rax
test   %ebx,(%rax)
je     133b <print_event_mask+0x22b>
lea    0xe50(%rip),%rdi
call   1030 <npw_printf@plt>
mov    0x2bf6(%rip),%rax
test   %ebx,(%rax)
je     1353 <print_event_mask+0x243>
lea    0xe4b(%rip),%rdi
pop    %rbx
jmp    1030 <npw_printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@KeyPressMask = global i32 0
@.str = [12 x i8] c" KeyPress\0A\00"
@KeyReleaseMask = global i32 0
@.str.1 = [14 x i8] c" KeyRelease\0A\00"
@ButtonPressMask = global i32 0
@.str.2 = [15 x i8] c" ButtonPress\0A\00"
@ButtonReleaseMask = global i32 0
@.str.3 = [17 x i8] c" ButtonRelease\0A\00"
@EnterWindowMask = global i32 0
@.str.4 = [15 x i8] c" EnterWindow\0A\00"
@LeaveWindowMask = global i32 0
@.str.5 = [15 x i8] c" LeaveWindow\0A\00"
@PointerMotionMask = global i32 0
@.str.6 = [17 x i8] c" PointerMotion\0A\00"
@PointerMotionHintMask = global i32 0
@.str.7 = [21 x i8] c" PointerMotionHint\0A\00"
@Button1MotionMask = global i32 0
@.str.8 = [17 x i8] c" Button1Motion\0A\00"
@Button2MotionMask = global i32 0
@.str.9 = [17 x i8] c" Button2Motion\0A\00"
@Button3MotionMask = global i32 0
@.str.10 = [17 x i8] c" Button3Motion\0A\00"
@Button4MotionMask = global i32 0
@.str.11 = [17 x i8] c" Button4Motion\0A\00"
@Button5MotionMask = global i32 0
@.str.12 = [17 x i8] c" Button5Motion\0A\00"
@ButtonMotionMask = global i32 0
@.str.13 = [16 x i8] c" ButtonMotion\0A\00"
@KeymapStateMask = global i32 0
@.str.14 = [15 x i8] c" KeymapState\0A\00"
@ExposureMask = global i32 0
@.str.15 = [12 x i8] c" Exposure\0A\00"
@VisibilityChangeMask = global i32 0
@.str.16 = [20 x i8] c" VisibilityChange\0A\00"
@StructureNotifyMask = global i32 0
@.str.17 = [19 x i8] c" StructureNotify\0A\00"
@ResizeRedirectMask = global i32 0
@.str.18 = [18 x i8] c" ResizeRedirect\0A\00"
@SubstructureNotifyMask = global i32 0
@.str.19 = [22 x i8] c" SubstructureNotify\0A\00"
@SubstructureRedirectMask = global i32 0
@.str.20 = [24 x i8] c" SubstructureRedirect\0A\00"
@FocusChangeMask = global i32 0
@.str.21 = [15 x i8] c" FocusChange\0A\00"
@PropertyChangeMask = global i32 0
@.str.22 = [18 x i8] c" PropertyChange\0A\00"
@ColormapChangeMask = global i32 0
@.str.23 = [18 x i8] c" ColormapChange\0A\00"
@OwnerGrabButtonMask = global i32 0
@.str.24 = [19 x i8] c" OwnerGrabButton\0A\00"
define void @print_event_mask(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @KeyPressMask
%5 = and i32 %3, %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @npw_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %1
%10 = load i32, i32* %2
%11 = load i32, i32* @KeyReleaseMask
%12 = and i32 %10, %11
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = call i32 @npw_printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %9
%17 = load i32, i32* %2
%18 = load i32, i32* @ButtonPressMask
%19 = and i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %21, %16
%24 = load i32, i32* %2
%25 = load i32, i32* @ButtonReleaseMask
%26 = and i32 %24, %25
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %30
30: ; preds = %28, %23
%31 = load i32, i32* %2
%32 = load i32, i32* @EnterWindowMask
%33 = and i32 %31, %32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %37
37: ; preds = %35, %30
%38 = load i32, i32* %2
%39 = load i32, i32* @LeaveWindowMask
%40 = and i32 %38, %39
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %42, %37
%45 = load i32, i32* %2
%46 = load i32, i32* @PointerMotionMask
%47 = and i32 %45, %46
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %44
%50 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
br label %51
51: ; preds = %49, %44
%52 = load i32, i32* %2
%53 = load i32, i32* @PointerMotionHintMask
%54 = and i32 %52, %53
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 @npw_printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %58
58: ; preds = %56, %51
%59 = load i32, i32* %2
%60 = load i32, i32* @Button1MotionMask
%61 = and i32 %59, %60
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
br label %65
65: ; preds = %63, %58
%66 = load i32, i32* %2
%67 = load i32, i32* @Button2MotionMask
%68 = and i32 %66, %67
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %65
%71 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %72
72: ; preds = %70, %65
%73 = load i32, i32* %2
%74 = load i32, i32* @Button3MotionMask
%75 = and i32 %73, %74
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %72
%78 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
br label %79
79: ; preds = %77, %72
%80 = load i32, i32* %2
%81 = load i32, i32* @Button4MotionMask
%82 = and i32 %80, %81
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %79
%85 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
br label %86
86: ; preds = %84, %79
%87 = load i32, i32* %2
%88 = load i32, i32* @Button5MotionMask
%89 = and i32 %87, %88
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %86
%92 = call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
br label %93
93: ; preds = %91, %86
%94 = load i32, i32* %2
%95 = load i32, i32* @ButtonMotionMask
%96 = and i32 %94, %95
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %93
%99 = call i32 @npw_printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %100
100: ; preds = %98, %93
%101 = load i32, i32* %2
%102 = load i32, i32* @KeymapStateMask
%103 = and i32 %101, %102
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %107
105: ; preds = %100
%106 = call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
br label %107
107: ; preds = %105, %100
%108 = load i32, i32* %2
%109 = load i32, i32* @ExposureMask
%110 = and i32 %108, %109
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @npw_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
br label %114
114: ; preds = %112, %107
%115 = load i32, i32* %2
%116 = load i32, i32* @VisibilityChangeMask
%117 = and i32 %115, %116
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = call i32 @npw_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %121
121: ; preds = %119, %114
%122 = load i32, i32* %2
%123 = load i32, i32* @StructureNotifyMask
%124 = and i32 %122, %123
%125 = icmp ne i32 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %121
%127 = call i32 @npw_printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0))
br label %128
128: ; preds = %126, %121
%129 = load i32, i32* %2
%130 = load i32, i32* @ResizeRedirectMask
%131 = and i32 %129, %130
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %128
%134 = call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
br label %135
135: ; preds = %133, %128
%136 = load i32, i32* %2
%137 = load i32, i32* @SubstructureNotifyMask
%138 = and i32 %136, %137
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %142
140: ; preds = %135
%141 = call i32 @npw_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
br label %142
142: ; preds = %140, %135
%143 = load i32, i32* %2
%144 = load i32, i32* @SubstructureRedirectMask
%145 = and i32 %143, %144
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %142
%148 = call i32 @npw_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.20, i64 0, i64 0))
br label %149
149: ; preds = %147, %142
%150 = load i32, i32* %2
%151 = load i32, i32* @FocusChangeMask
%152 = and i32 %150, %151
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %156
154: ; preds = %149
%155 = call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
br label %156
156: ; preds = %154, %149
%157 = load i32, i32* %2
%158 = load i32, i32* @PropertyChangeMask
%159 = and i32 %157, %158
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %163
161: ; preds = %156
%162 = call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
br label %163
163: ; preds = %161, %156
%164 = load i32, i32* %2
%165 = load i32, i32* @ColormapChangeMask
%166 = and i32 %164, %165
%167 = icmp ne i32 %166, 0
br i1 %167, label %168, label %170
168: ; preds = %163
%169 = call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
br label %170
170: ; preds = %168, %163
%171 = load i32, i32* %2
%172 = load i32, i32* @OwnerGrabButtonMask
%173 = and i32 %171, %172
%174 = icmp ne i32 %173, 0
br i1 %174, label %175, label %177
175: ; preds = %170
%176 = call i32 @npw_printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.24, i64 0, i64 0))
br label %177
177: ; preds = %175, %170
ret void
}

LLVM IR (-O2):
@KeyPressMask = global i32 0
@.str = [12 x i8] c" KeyPress\0A\00"
@KeyReleaseMask = global i32 0
@.str.1 = [14 x i8] c" KeyRelease\0A\00"
@ButtonPressMask = global i32 0
@.str.2 = [15 x i8] c" ButtonPress\0A\00"
@ButtonReleaseMask = global i32 0
@.str.3 = [17 x i8] c" ButtonRelease\0A\00"
@EnterWindowMask = global i32 0
@.str.4 = [15 x i8] c" EnterWindow\0A\00"
@LeaveWindowMask = global i32 0
@.str.5 = [15 x i8] c" LeaveWindow\0A\00"
@PointerMotionMask = global i32 0
@.str.6 = [17 x i8] c" PointerMotion\0A\00"
@PointerMotionHintMask = global i32 0
@.str.7 = [21 x i8] c" PointerMotionHint\0A\00"
@Button1MotionMask = global i32 0
@.str.8 = [17 x i8] c" Button1Motion\0A\00"
@Button2MotionMask = global i32 0
@.str.9 = [17 x i8] c" Button2Motion\0A\00"
@Button3MotionMask = global i32 0
@.str.10 = [17 x i8] c" Button3Motion\0A\00"
@Button4MotionMask = global i32 0
@.str.11 = [17 x i8] c" Button4Motion\0A\00"
@Button5MotionMask = global i32 0
@.str.12 = [17 x i8] c" Button5Motion\0A\00"
@ButtonMotionMask = global i32 0
@.str.13 = [16 x i8] c" ButtonMotion\0A\00"
@KeymapStateMask = global i32 0
@.str.14 = [15 x i8] c" KeymapState\0A\00"
@ExposureMask = global i32 0
@.str.15 = [12 x i8] c" Exposure\0A\00"
@VisibilityChangeMask = global i32 0
@.str.16 = [20 x i8] c" VisibilityChange\0A\00"
@StructureNotifyMask = global i32 0
@.str.17 = [19 x i8] c" StructureNotify\0A\00"
@ResizeRedirectMask = global i32 0
@.str.18 = [18 x i8] c" ResizeRedirect\0A\00"
@SubstructureNotifyMask = global i32 0
@.str.19 = [22 x i8] c" SubstructureNotify\0A\00"
@SubstructureRedirectMask = global i32 0
@.str.20 = [24 x i8] c" SubstructureRedirect\0A\00"
@FocusChangeMask = global i32 0
@.str.21 = [15 x i8] c" FocusChange\0A\00"
@PropertyChangeMask = global i32 0
@.str.22 = [18 x i8] c" PropertyChange\0A\00"
@ColormapChangeMask = global i32 0
@.str.23 = [18 x i8] c" ColormapChange\0A\00"
@OwnerGrabButtonMask = global i32 0
@.str.24 = [19 x i8] c" OwnerGrabButton\0A\00"
define void @print_event_mask(i32 %0) {
%2 = load i32, i32* @KeyPressMask
%3 = and i32 %2, %0
%4 = icmp eq i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @npw_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %1
%8 = load i32, i32* @KeyReleaseMask
%9 = and i32 %8, %0
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = tail call i32 @npw_printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %7
%14 = load i32, i32* @ButtonPressMask
%15 = and i32 %14, %0
%16 = icmp eq i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = tail call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
%20 = load i32, i32* @ButtonReleaseMask
%21 = and i32 %20, %0
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %19
%26 = load i32, i32* @EnterWindowMask
%27 = and i32 %26, %0
%28 = icmp eq i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = tail call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %31
31: ; preds = %29, %25
%32 = load i32, i32* @LeaveWindowMask
%33 = and i32 %32, %0
%34 = icmp eq i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %31
%36 = tail call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %37
37: ; preds = %35, %31
%38 = load i32, i32* @PointerMotionMask
%39 = and i32 %38, %0
%40 = icmp eq i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
%44 = load i32, i32* @PointerMotionHintMask
%45 = and i32 %44, %0
%46 = icmp eq i32 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = tail call i32 @npw_printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %49
49: ; preds = %47, %43
%50 = load i32, i32* @Button1MotionMask
%51 = and i32 %50, %0
%52 = icmp eq i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %49
%54 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
br label %55
55: ; preds = %53, %49
%56 = load i32, i32* @Button2MotionMask
%57 = and i32 %56, %0
%58 = icmp eq i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %61
61: ; preds = %59, %55
%62 = load i32, i32* @Button3MotionMask
%63 = and i32 %62, %0
%64 = icmp eq i32 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %61
%66 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
br label %67
67: ; preds = %65, %61
%68 = load i32, i32* @Button4MotionMask
%69 = and i32 %68, %0
%70 = icmp eq i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %67
%72 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
br label %73
73: ; preds = %71, %67
%74 = load i32, i32* @Button5MotionMask
%75 = and i32 %74, %0
%76 = icmp eq i32 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %73
%78 = tail call i32 @npw_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
br label %79
79: ; preds = %77, %73
%80 = load i32, i32* @ButtonMotionMask
%81 = and i32 %80, %0
%82 = icmp eq i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %79
%84 = tail call i32 @npw_printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %85
85: ; preds = %83, %79
%86 = load i32, i32* @KeymapStateMask
%87 = and i32 %86, %0
%88 = icmp eq i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %85
%90 = tail call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
br label %91
91: ; preds = %89, %85
%92 = load i32, i32* @ExposureMask
%93 = and i32 %92, %0
%94 = icmp eq i32 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %91
%96 = tail call i32 @npw_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
br label %97
97: ; preds = %95, %91
%98 = load i32, i32* @VisibilityChangeMask
%99 = and i32 %98, %0
%100 = icmp eq i32 %99, 0
br i1 %100, label %103, label %101
101: ; preds = %97
%102 = tail call i32 @npw_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %103
103: ; preds = %101, %97
%104 = load i32, i32* @StructureNotifyMask
%105 = and i32 %104, %0
%106 = icmp eq i32 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %103
%108 = tail call i32 @npw_printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0))
br label %109
109: ; preds = %107, %103
%110 = load i32, i32* @ResizeRedirectMask
%111 = and i32 %110, %0
%112 = icmp eq i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %109
%114 = tail call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
br label %115
115: ; preds = %113, %109
%116 = load i32, i32* @SubstructureNotifyMask
%117 = and i32 %116, %0
%118 = icmp eq i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %115
%120 = tail call i32 @npw_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
br label %121
121: ; preds = %119, %115
%122 = load i32, i32* @SubstructureRedirectMask
%123 = and i32 %122, %0
%124 = icmp eq i32 %123, 0
br i1 %124, label %127, label %125
125: ; preds = %121
%126 = tail call i32 @npw_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.20, i64 0, i64 0))
br label %127
127: ; preds = %125, %121
%128 = load i32, i32* @FocusChangeMask
%129 = and i32 %128, %0
%130 = icmp eq i32 %129, 0
br i1 %130, label %133, label %131
131: ; preds = %127
%132 = tail call i32 @npw_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
br label %133
133: ; preds = %131, %127
%134 = load i32, i32* @PropertyChangeMask
%135 = and i32 %134, %0
%136 = icmp eq i32 %135, 0
br i1 %136, label %139, label %137
137: ; preds = %133
%138 = tail call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
br label %139
139: ; preds = %137, %133
%140 = load i32, i32* @ColormapChangeMask
%141 = and i32 %140, %0
%142 = icmp eq i32 %141, 0
br i1 %142, label %145, label %143
143: ; preds = %139
%144 = tail call i32 @npw_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
br label %145
145: ; preds = %143, %139
%146 = load i32, i32* @OwnerGrabButtonMask
%147 = and i32 %146, %0
%148 = icmp eq i32 %147, 0
br i1 %148, label %151, label %149
149: ; preds = %145
%150 = tail call i32 @npw_printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.24, i64 0, i64 0))
br label %151
151: ; preds = %149, %145
ret void
}