#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_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int x;
  int y;
  int width;
  int height;
};
struct TYPE_5__ {
  int type;
  TYPE_1__ xconfigure;
};
typedef TYPE_2__ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Atom;

/* Variables and functions */
#define ConfigureNotify 129
int /*<<< orphan*/ CopyFromParent;
#define Expose 128
int ExposureMask;
int /*<<< orphan*/ False;
int /*<<< orphan*/ PropModeReplace;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int StructureNotifyMask;
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XA_CARDINAL;
int /*<<< orphan*/ XChangeProperty(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                   int /*<<< orphan*/, int /*<<< orphan*/, int,
                                   int /*<<< orphan*/, unsigned char *, int);
int /*<<< orphan*/ XCreateWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int, int, int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ XDeleteProperty(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                   int /*<<< orphan*/);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XInternAtom(int /*<<< orphan*/ *, char *,
                               int /*<<< orphan*/);
int /*<<< orphan*/ XMapWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XNextEvent(int /*<<< orphan*/ *, TYPE_2__ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XSelectInput(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
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;
  Atom _net_strut;
  XEvent msg;
  int x = 10, y = 10, h = 100, w = 400;
  int s[4];
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  _net_strut = XInternAtom(display, "_NET_WM_STRUT", False);
  win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10,
                      CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL);
  XSetWindowBackground(display, win, WhitePixel(display, 0));
  XMapWindow(display, win);
  XFlush(display);
  sleep(2);
  printf("top\n");
  s[0] = 0;
  s[1] = 0;
  s[2] = 20;
  s[3] = 0;
  XChangeProperty(display, win, _net_strut, XA_CARDINAL, 32, PropModeReplace,
                  (unsigned char *)s, 4);
  XFlush(display);
  sleep(2);
  printf("none\n");
  XDeleteProperty(display, win, _net_strut);
  XFlush(display);
  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   %rbx
sub    $0xb8,%rsp
movl   $0x0,-0xc(%rbp)
movl   $0xa,-0x4c(%rbp)
movl   $0xa,-0x50(%rbp)
movl   $0x64,-0x54(%rbp)
movl   $0x190,-0x58(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <XOpenDisplay@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1258 <main+0x68>
mov    0x2d92(%rip),%rax
mov    (%rax),%edi
lea    0xdb9(%rip),%rsi
call   1070 <fprintf@plt>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %rbp
ret
mov    -0x18(%rbp),%rdi
mov    0x2d85(%rip),%rax
mov    (%rax),%edx
lea    0xdb5(%rip),%rsi
call   1090 <XInternAtom@plt>
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%esi
mov    -0x4c(%rbp),%edx
mov    -0x50(%rbp),%ecx
mov    -0x58(%rbp),%r8d
mov    -0x54(%rbp),%r9d
mov    0x2d08(%rip),%rax
mov    (%rax),%r11d
mov    0x2cfe(%rip),%rax
mov    (%rax),%r10d
mov    0x2cf4(%rip),%rax
mov    (%rax),%eax
xor    %ebx,%ebx
xor    %ebx,%ebx
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x28(%rsp)
call   10b0 <XCreateWindow@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1050 <WhitePixel@plt>
mov    -0x80(%rbp),%rdi
mov    -0x74(%rbp),%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   10f0 <XMapWindow@plt>
mov    -0x18(%rbp),%rdi
call   10e0 <XFlush@plt>
mov    $0x2,%edi
call   1110 <sleep@plt>
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x70(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x14,-0x68(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    0x2c57(%rip),%rax
mov    (%rax),%ecx
mov    0x2c3e(%rip),%rax
mov    (%rax),%r9d
lea    -0x70(%rbp),%rax
mov    $0x20,%r8d
mov    %rax,(%rsp)
movl   $0x4,0x8(%rsp)
call   10a0 <XChangeProperty@plt>
mov    -0x18(%rbp),%rdi
call   10e0 <XFlush@plt>
mov    $0x2,%edi
call   1110 <sleep@plt>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x34(%rbp),%edx
call   1040 <XDeleteProperty@plt>
mov    -0x18(%rbp),%rdi
call   10e0 <XFlush@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    0x2be1(%rip),%rax
mov    (%rax),%edx
mov    0x2bf0(%rip),%rax
or     (%rax),%edx
call   10d0 <XSelectInput@plt>
mov    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1080 <XNextEvent@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x80,%eax
je     142b <main+0x23b>
jmp    1415 <main+0x225>
mov    -0x8c(%rbp),%eax
sub    $0x81,%eax
je     143e <main+0x24e>
jmp    1471 <main+0x281>
lea    0xc08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1471 <main+0x281>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x50(%rbp),%edx
mov    -0x58(%rbp),%ecx
mov    -0x54(%rbp),%r8d
lea    0xbd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ef <main+0x1ff>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
xor    %edi,%edi
call   1070 <XOpenDisplay@plt>
test   %rax,%rax
je     13a2 <main+0x1a2>
mov    %rax,%rbx
mov    0x2dc4(%rip),%rax
mov    (%rax),%edx
lea    0xe04(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <XInternAtom@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <RootWindow@plt>
mov    0x2d67(%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   10c0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%ebp
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1110 <XSetWindowBackground@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1100 <XMapWindow@plt>
mov    %rbx,%rdi
call   10f0 <XFlush@plt>
mov    $0x2,%edi
call   1120 <sleep@plt>
lea    0xda6(%rip),%rdi
call   1030 <puts@plt>
movaps 0xd41(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0x2cfd(%rip),%rax
mov    (%rax),%ecx
mov    0x2ce4(%rip),%rax
mov    (%rax),%r9d
lea    0x20(%rsp),%rax
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
mov    $0x20,%r8d
push   $0x4
push   %rax
call   10b0 <XChangeProperty@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
call   10f0 <XFlush@plt>
mov    $0x2,%edi
call   1120 <sleep@plt>
lea    0xd4e(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
call   1050 <XDeleteProperty@plt>
mov    %rbx,%rdi
call   10f0 <XFlush@plt>
mov    0x2c90(%rip),%rax
mov    0x2ca1(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   10e0 <XSelectInput@plt>
lea    0x8(%rsp),%rbp
lea    0xcee(%rip),%r14
lea    0xd0a(%rip),%r15
jmp    137b <main+0x17b>
nopw   0x0(%rax,%rax,1)
mov    0xc(%rsp),%esi
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <XNextEvent@plt>
mov    0x8(%rsp),%eax
cmp    $0x81,%eax
je     1360 <main+0x160>
cmp    $0x80,%eax
jne    137b <main+0x17b>
mov    %r15,%rdi
call   1030 <puts@plt>
jmp    137b <main+0x17b>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
lea    0xc5e(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_5__ = type { i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@.str.1 = [14 x i8] c"_NET_WM_STRUT\00"
@False = global i32 0
@CopyFromParent = global i32 0
@.str.2 = [5 x i8] c"top\0A\00"
@XA_CARDINAL = global i32 0
@PropModeReplace = global i32 0
@.str.3 = [6 x i8] c"none\0A\00"
@ExposureMask = global i32 0
@StructureNotifyMask = global i32 0
@.str.4 = [9 x i8] c"exposed\0A\00"
@.str.5 = [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_5__
%5 = alloca i32
%6 = alloca %struct.TYPE_5__
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [4 x i32]
store i32 0, i32* %1
store i32 10, i32* %7
store i32 10, i32* %8
store i32 100, i32* %9
store i32 400, i32* %10
%12 = call i32* @XOpenDisplay(i32* null)
store i32* %12, i32** %2
%13 = load i32*, i32** %2
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
18: ; preds = %0
%19 = load i32*, i32** %2
%20 = load i32, i32* @False
%21 = call i32 @XInternAtom(i32* %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %20)
store i32 %21, i32* %5
%22 = load i32*, i32** %2
%23 = load i32*, i32** %2
%24 = call i32 @RootWindow(i32* %23, i32 0)
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = load i32, i32* %10
%28 = load i32, i32* %9
%29 = load i32, i32* @CopyFromParent
%30 = load i32, i32* @CopyFromParent
%31 = load i32, i32* @CopyFromParent
%32 = call i32 @XCreateWindow(i32* %22, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 10, i32 %29, i32 %30, i32 %31, i32 0, i32* null)
store i32 %32, i32* %3
%33 = load i32*, i32** %2
%34 = load i32, i32* %3
%35 = load i32*, i32** %2
%36 = call i32 @WhitePixel(i32* %35, i32 0)
%37 = call i32 @XSetWindowBackground(i32* %33, i32 %34, i32 %36)
%38 = load i32*, i32** %2
%39 = load i32, i32* %3
%40 = call i32 @XMapWindow(i32* %38, i32 %39)
%41 = load i32*, i32** %2
%42 = call i32 @XFlush(i32* %41)
%43 = call i32 @sleep(i32 2)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%45 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 0
store i32 0, i32* %45
%46 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 1
store i32 0, i32* %46
%47 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 2
store i32 20, i32* %47
%48 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 3
store i32 0, i32* %48
%49 = load i32*, i32** %2
%50 = load i32, i32* %3
%51 = load i32, i32* %5
%52 = load i32, i32* @XA_CARDINAL
%53 = load i32, i32* @PropModeReplace
%54 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 0
%55 = bitcast i32* %54 to i8*
%56 = call i32 @XChangeProperty(i32* %49, i32 %50, i32 %51, i32 %52, i32 32, i32 %53, i8* %55, i32 4)
%57 = load i32*, i32** %2
%58 = call i32 @XFlush(i32* %57)
%59 = call i32 @sleep(i32 2)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%61 = load i32*, i32** %2
%62 = load i32, i32* %3
%63 = load i32, i32* %5
%64 = call i32 @XDeleteProperty(i32* %61, i32 %62, i32 %63)
%65 = load i32*, i32** %2
%66 = call i32 @XFlush(i32* %65)
%67 = load i32*, i32** %2
%68 = load i32, i32* %3
%69 = load i32, i32* @ExposureMask
%70 = load i32, i32* @StructureNotifyMask
%71 = or i32 %69, %70
%72 = call i32 @XSelectInput(i32* %67, i32 %68, i32 %71)
br label %73
73: ; preds = %18, %98
%74 = load i32*, i32** %2
%75 = call i32 @XNextEvent(i32* %74, %struct.TYPE_5__* %4)
%76 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %4, i32 0, i32 0
%77 = load i32, i32* %76
switch i32 %77, label %98 [
i32 128, label %78
i32 129, label %80
]
78: ; preds = %73
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %98
80: ; preds = %73
%81 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %4, i32 0, i32 1
%82 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %81, i32 0, i32 0
%83 = load i32, i32* %82
store i32 %83, i32* %7
%84 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %4, i32 0, i32 1
%85 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %84, i32 0, i32 1
%86 = load i32, i32* %85
store i32 %86, i32* %8
%87 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %4, i32 0, i32 1
%88 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %87, i32 0, i32 2
%89 = load i32, i32* %88
store i32 %89, i32* %10
%90 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %4, i32 0, i32 1
%91 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %90, i32 0, i32 3
%92 = load i32, i32* %91
store i32 %92, i32* %9
%93 = load i32, i32* %7
%94 = load i32, i32* %8
%95 = load i32, i32* %10
%96 = load i32, i32* %9
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %93, i32 %94, i32 %95, i32 %96)
br label %98
98: ; preds = %73, %80, %78
br label %73
}

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