#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 */
typedef struct TYPE_10__ TYPE_3__;
typedef struct TYPE_9__ TYPE_2__;
typedef struct TYPE_8__ TYPE_1__;

/* Type definitions */
struct TYPE_9__ {
  int /*<<< orphan*/ win_gravity;
  int /*<<< orphan*/ flags;
};
typedef TYPE_2__ XSizeHints;
struct TYPE_8__ {
  int x;
  int y;
  int width;
  int height;
};
struct TYPE_10__ {
  int type;
  TYPE_1__ xconfigure;
};
typedef TYPE_3__ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
#define ConfigureNotify 129
int /*<<< orphan*/ CopyFromParent;
#define Expose 128
int ExposureMask;
int /*<<< orphan*/ PWinGravity;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ SouthEastGravity;
int StructureNotifyMask;
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
TYPE_2__ *XAllocSizeHints();
int /*<<< orphan*/ XCreateWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int, int, int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XFree(TYPE_2__ *);
int /*<<< orphan*/ XMapWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XMoveResizeWindow(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                     int, int, int, int);
int /*<<< orphan*/ XNextEvent(int /*<<< orphan*/ *, TYPE_3__ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XResizeWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int);
int /*<<< orphan*/ XSelectInput(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
int /*<<< orphan*/ XSetWMNormalHints(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                     TYPE_2__ *);
int /*<<< orphan*/ XSetWindowBackground(int /*<<< orphan*/ *,
                                        int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
int main() {
  Display *display;
  Window win;
  XEvent report;
  int x = 10, y = 10, h = 100, w = 400, b = 10;
  XSizeHints *hints;
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, b,
                      CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL);
  hints = XAllocSizeHints();
  hints->flags = PWinGravity;
  hints->win_gravity = SouthEastGravity;
  XSetWMNormalHints(display, win, hints);
  XFree(hints);
  XSetWindowBackground(display, win, WhitePixel(display, 0));
  XMapWindow(display, win);
  XFlush(display);
  w = 600;
  h = 160;
  XMoveResizeWindow(display, win, 1172 - w - b * 2, 668 - h - b * 2, w, h);
  XFlush(display);
  sleep(1);
  XResizeWindow(display, win, 900, 275);
  XSelectInput(display, win, ExposureMask | StructureNotifyMask);
  while (1) {
    XNextEvent(display, &report);
    switch (report.type) {
    case Expose:
      printf("exposed\n");
      break;
    case ConfigureNotify:
      x = report.xconfigure.x;
      y = report.xconfigure.y;
      w = report.xconfigure.width;
      h = report.xconfigure.height;
      printf("confignotify %i,%i-%ix%i\n", x, y, w, h);
      break;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
movl   $0x0,-0x14(%rbp)
movl   $0xa,-0x3c(%rbp)
movl   $0xa,-0x40(%rbp)
movl   $0x64,-0x44(%rbp)
movl   $0x190,-0x48(%rbp)
movl   $0xa,-0x4c(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <XOpenDisplay@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1283 <main+0x73>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
lea    0xd90(%rip),%rsi
call   10a0 <fprintf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%esi
mov    -0x3c(%rbp),%edx
mov    -0x40(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x44(%rbp),%r9d
mov    -0x4c(%rbp),%ebx
mov    0x2d04(%rip),%rax
mov    (%rax),%r11d
mov    0x2cfa(%rip),%rax
mov    (%rax),%r10d
mov    0x2cf0(%rip),%rax
mov    (%rax),%eax
xor    %r14d,%r14d
xor    %r14d,%r14d
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x28(%rsp)
call   10d0 <XCreateWindow@plt>
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   10b0 <XAllocSizeHints@plt>
mov    %rax,-0x58(%rbp)
mov    0x2cd4(%rip),%rax
mov    (%rax),%ecx
mov    -0x58(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    0x2ccc(%rip),%rax
mov    (%rax),%ecx
mov    -0x58(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x58(%rbp),%rdx
call   1080 <XSetWMNormalHints@plt>
mov    -0x58(%rbp),%rdi
call   1050 <XFree@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
call   1070 <WhitePixel@plt>
mov    -0x68(%rbp),%rdi
mov    -0x5c(%rbp),%esi
mov    %eax,%edx
call   1120 <XSetWindowBackground@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1110 <XMapWindow@plt>
mov    -0x20(%rbp),%rdi
call   1100 <XFlush@plt>
movl   $0x258,-0x48(%rbp)
movl   $0xa0,-0x44(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x494,%edx
sub    -0x48(%rbp),%edx
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
sub    %eax,%edx
mov    $0x29c,%ecx
sub    -0x44(%rbp),%ecx
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
sub    %eax,%ecx
mov    -0x48(%rbp),%r8d
mov    -0x44(%rbp),%r9d
call   1060 <XMoveResizeWindow@plt>
mov    -0x20(%rbp),%rdi
call   1100 <XFlush@plt>
mov    $0x1,%edi
call   1130 <sleep@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x384,%edx
mov    $0x113,%ecx
call   1030 <XResizeWindow@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    0x2bce(%rip),%rax
mov    (%rax),%edx
mov    0x2bd5(%rip),%rax
or     (%rax),%edx
call   10f0 <XSelectInput@plt>
mov    -0x20(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10c0 <XNextEvent@plt>
mov    -0x38(%rbp),%eax
mov    %eax,-0x74(%rbp)
sub    $0x80,%eax
je     1438 <main+0x228>
jmp    1425 <main+0x215>
mov    -0x74(%rbp),%eax
sub    $0x81,%eax
je     144b <main+0x23b>
jmp    147e <main+0x26e>
lea    0xbe2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    147e <main+0x26e>
mov    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x44(%rbp),%r8d
lea    0xbb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1402 <main+0x1f2>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
xor    %edi,%edi
call   10a0 <XOpenDisplay@plt>
test   %rax,%rax
je     13a1 <main+0x181>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   10f0 <RootWindow@plt>
mov    0x2d6a(%rip),%rcx
mov    (%rcx),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
mov    $0x190,%r8d
mov    $0x64,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10e0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r14d
xor    %eax,%eax
call   10c0 <XAllocSizeHints@plt>
mov    %rax,%rbp
mov    0x2d4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rbp)
mov    0x2d4b(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x0(%rbp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %rbp,%rdx
call   1090 <XSetWMNormalHints@plt>
mov    %rbp,%rdi
call   1060 <XFree@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %eax,%edx
call   1130 <XSetWindowBackground@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
call   1120 <XMapWindow@plt>
mov    %rbx,%rdi
call   1110 <XFlush@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x228,%edx
mov    $0x1e8,%ecx
mov    $0x258,%r8d
mov    $0xa0,%r9d
call   1070 <XMoveResizeWindow@plt>
mov    %rbx,%rdi
call   1110 <XFlush@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x384,%edx
mov    $0x113,%ecx
call   1030 <XResizeWindow@plt>
mov    0x2c8f(%rip),%rax
mov    0x2c98(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    %rbx,%rdi
mov    %r14d,%esi
call   1100 <XSelectInput@plt>
mov    %rsp,%rbp
lea    0xcd0(%rip),%r14
lea    0xce3(%rip),%r15
jmp    137b <main+0x15b>
nopw   0x0(%rax,%rax,1)
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    0x10(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10d0 <XNextEvent@plt>
mov    (%rsp),%eax
cmp    $0x81,%eax
je     1360 <main+0x140>
cmp    $0x80,%eax
jne    137b <main+0x15b>
mov    %r15,%rdi
call   1040 <puts@plt>
jmp    137b <main+0x15b>
mov    0x2c20(%rip),%rax
mov    (%rax),%edi
lea    0xc4f(%rip),%rsi
call   10b0 <fprintf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_10__ = type { i32, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@CopyFromParent = global i32 0
@PWinGravity = global i32 0
@SouthEastGravity = global i32 0
@ExposureMask = global i32 0
@StructureNotifyMask = global i32 0
@.str.1 = [9 x i8] c"exposed\0A\00"
@.str.2 = [26 x i8] c"confignotify %i,%i-%ix%i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca %struct.TYPE_10__
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.TYPE_9__*
store i32 0, i32* %1
store i32 10, i32* %5
store i32 10, i32* %6
store i32 100, i32* %7
store i32 400, i32* %8
store i32 10, i32* %9
%11 = call i32* @XOpenDisplay(i32* null)
store i32* %11, i32** %2
%12 = load i32*, i32** %2
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
17: ; preds = %0
%18 = load i32*, i32** %2
%19 = load i32*, i32** %2
%20 = call i32 @RootWindow(i32* %19, i32 0)
%21 = load i32, i32* %5
%22 = load i32, i32* %6
%23 = load i32, i32* %8
%24 = load i32, i32* %7
%25 = load i32, i32* %9
%26 = load i32, i32* @CopyFromParent
%27 = load i32, i32* @CopyFromParent
%28 = load i32, i32* @CopyFromParent
%29 = call i32 @XCreateWindow(i32* %18, i32 %20, i32 %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 0, i32* null)
store i32 %29, i32* %3
%30 = call %struct.TYPE_9__* (...) @XAllocSizeHints()
store %struct.TYPE_9__* %30, %struct.TYPE_9__** %10
%31 = load i32, i32* @PWinGravity
%32 = load %struct.TYPE_9__*, %struct.TYPE_9__** %10
%33 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %32, i32 0, i32 1
store i32 %31, i32* %33
%34 = load i32, i32* @SouthEastGravity
%35 = load %struct.TYPE_9__*, %struct.TYPE_9__** %10
%36 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %35, i32 0, i32 0
store i32 %34, i32* %36
%37 = load i32*, i32** %2
%38 = load i32, i32* %3
%39 = load %struct.TYPE_9__*, %struct.TYPE_9__** %10
%40 = call i32 @XSetWMNormalHints(i32* %37, i32 %38, %struct.TYPE_9__* %39)
%41 = load %struct.TYPE_9__*, %struct.TYPE_9__** %10
%42 = call i32 @XFree(%struct.TYPE_9__* %41)
%43 = load i32*, i32** %2
%44 = load i32, i32* %3
%45 = load i32*, i32** %2
%46 = call i32 @WhitePixel(i32* %45, i32 0)
%47 = call i32 @XSetWindowBackground(i32* %43, i32 %44, i32 %46)
%48 = load i32*, i32** %2
%49 = load i32, i32* %3
%50 = call i32 @XMapWindow(i32* %48, i32 %49)
%51 = load i32*, i32** %2
%52 = call i32 @XFlush(i32* %51)
store i32 600, i32* %8
store i32 160, i32* %7
%53 = load i32*, i32** %2
%54 = load i32, i32* %3
%55 = load i32, i32* %8
%56 = sub nsw i32 1172, %55
%57 = load i32, i32* %9
%58 = mul nsw i32 %57, 2
%59 = sub nsw i32 %56, %58
%60 = load i32, i32* %7
%61 = sub nsw i32 668, %60
%62 = load i32, i32* %9
%63 = mul nsw i32 %62, 2
%64 = sub nsw i32 %61, %63
%65 = load i32, i32* %8
%66 = load i32, i32* %7
%67 = call i32 @XMoveResizeWindow(i32* %53, i32 %54, i32 %59, i32 %64, i32 %65, i32 %66)
%68 = load i32*, i32** %2
%69 = call i32 @XFlush(i32* %68)
%70 = call i32 @sleep(i32 1)
%71 = load i32*, i32** %2
%72 = load i32, i32* %3
%73 = call i32 @XResizeWindow(i32* %71, i32 %72, i32 900, i32 275)
%74 = load i32*, i32** %2
%75 = load i32, i32* %3
%76 = load i32, i32* @ExposureMask
%77 = load i32, i32* @StructureNotifyMask
%78 = or i32 %76, %77
%79 = call i32 @XSelectInput(i32* %74, i32 %75, i32 %78)
br label %80
80: ; preds = %17, %105
%81 = load i32*, i32** %2
%82 = call i32 @XNextEvent(i32* %81, %struct.TYPE_10__* %4)
%83 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %4, i32 0, i32 0
%84 = load i32, i32* %83
switch i32 %84, label %105 [
i32 128, label %85
i32 129, label %87
]
85: ; preds = %80
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %105
87: ; preds = %80
%88 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %4, i32 0, i32 1
%89 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %88, i32 0, i32 0
%90 = load i32, i32* %89
store i32 %90, i32* %5
%91 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %4, i32 0, i32 1
%92 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %91, i32 0, i32 1
%93 = load i32, i32* %92
store i32 %93, i32* %6
%94 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %4, i32 0, i32 1
%95 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %94, i32 0, i32 2
%96 = load i32, i32* %95
store i32 %96, i32* %8
%97 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %4, i32 0, i32 1
%98 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %97, i32 0, i32 3
%99 = load i32, i32* %98
store i32 %99, i32* %7
%100 = load i32, i32* %5
%101 = load i32, i32* %6
%102 = load i32, i32* %8
%103 = load i32, i32* %7
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %100, i32 %101, i32 %102, i32 %103)
br label %105
105: ; preds = %80, %87, %85
br label %80
}

LLVM IR (-O2):
%struct.TYPE_10__ = type { i32, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@CopyFromParent = global i32 0
@PWinGravity = global i32 0
@SouthEastGravity = global i32 0
@ExposureMask = global i32 0
@StructureNotifyMask = global i32 0
@.str.2 = [26 x i8] c"confignotify %i,%i-%ix%i\0A\00"
@str = [8 x i8] c"exposed\00"
define i32 @main() {
%1 = alloca %struct.TYPE_10__
%2 = bitcast %struct.TYPE_10__* %1 to i8*
%3 = tail call i32* @XOpenDisplay(i32* null)
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
8: ; preds = %0
%9 = tail call i32 @RootWindow(i32* %3, i32 0)
%10 = load i32, i32* @CopyFromParent
%11 = tail call i32 @XCreateWindow(i32* %3, i32 %9, i32 10, i32 10, i32 400, i32 100, i32 10, i32 %10, i32 %10, i32 %10, i32 0, i32* null)
%12 = tail call %struct.TYPE_9__* (...) @XAllocSizeHints()
%13 = load i32, i32* @PWinGravity
%14 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %12, i64 0, i32 1
store i32 %13, i32* %14
%15 = load i32, i32* @SouthEastGravity
%16 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %12, i64 0, i32 0
store i32 %15, i32* %16
%17 = tail call i32 @XSetWMNormalHints(i32* %3, i32 %11, %struct.TYPE_9__* %12)
%18 = tail call i32 @XFree(%struct.TYPE_9__* %12)
%19 = tail call i32 @WhitePixel(i32* %3, i32 0)
%20 = tail call i32 @XSetWindowBackground(i32* %3, i32 %11, i32 %19)
%21 = tail call i32 @XMapWindow(i32* %3, i32 %11)
%22 = tail call i32 @XFlush(i32* %3)
%23 = tail call i32 @XMoveResizeWindow(i32* %3, i32 %11, i32 552, i32 488, i32 600, i32 160)
%24 = tail call i32 @XFlush(i32* %3)
%25 = tail call i32 @sleep(i32 1)
%26 = tail call i32 @XResizeWindow(i32* %3, i32 %11, i32 900, i32 275)
%27 = load i32, i32* @ExposureMask
%28 = load i32, i32* @StructureNotifyMask
%29 = or i32 %28, %27
%30 = tail call i32 @XSelectInput(i32* %3, i32 %11, i32 %29)
%31 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 0
%32 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 1, i32 0
%33 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 1, i32 1
%34 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 1, i32 2
%35 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 1, i32 3
br label %36
36: ; preds = %39, %8
%37 = call i32 @XNextEvent(i32* %3, %struct.TYPE_10__* %1)
%38 = load i32, i32* %31
switch i32 %38, label %39 [
i32 128, label %40
i32 129, label %42
]
39: ; preds = %36, %42, %40
br label %36
40: ; preds = %36
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
br label %39
42: ; preds = %36
%43 = load i32, i32* %32
%44 = load i32, i32* %33
%45 = load i32, i32* %34
%46 = load i32, i32* %35
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %43, i32 %44, i32 %45, i32 %46)
br label %39
}