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

/* Type definitions */
struct TYPE_9__ {
  int flags;
  int min_width;
  int min_height;
  scalar_t__ max_height;
  scalar_t__ max_width;
};
typedef TYPE_2__ XSizeHints;
struct TYPE_10__ {
  int /*<<< orphan*/ win_gravity;
};
typedef TYPE_3__ XSetWindowAttributes;
struct TYPE_8__ {
  int x;
  int y;
  int width;
  int height;
};
struct TYPE_11__ {
  int type;
  TYPE_1__ xconfigure;
};
typedef TYPE_4__ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
unsigned long CWWinGravity;
#define ConfigureNotify 129
int /*<<< orphan*/ CopyFromParent;
#define Expose 128
int ExposureMask;
int PMaxSize;
int PMinSize;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ StaticGravity;
int StructureNotifyMask;
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XCreateWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int, int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, unsigned long, TYPE_3__ *);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XMapWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XMoveWindow(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                               int);
int /*<<< orphan*/ XNextEvent(int /*<<< orphan*/ *, TYPE_4__ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
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*/ stderr;
int main() {
  XSetWindowAttributes xswa;
  unsigned long xswamask;
  Display *display;
  Window win;
  XEvent report;
  int x = 10, y = 10, h = 100, w = 400;
  XSizeHints size;
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  xswa.win_gravity = StaticGravity;
  xswamask = CWWinGravity;
  win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 0,
                      CopyFromParent, CopyFromParent, CopyFromParent, xswamask,
                      &xswa);
  XSetWindowBackground(display, win, WhitePixel(display, 0));
  size.flags = PMinSize | PMaxSize;
  size.max_width = 0;
  size.min_width = w;
  size.max_height = 0;
  size.min_height = h;
  XSetWMNormalHints(display, win, &size);
  XSelectInput(display, win, ExposureMask | StructureNotifyMask);
  XMapWindow(display, win);
  XFlush(display);
  XMoveWindow(display, win, 10, 10);
  XMoveWindow(display, win, 10, 10);
  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    $0xb0,%rsp
movl   $0x0,-0x14(%rbp)
movl   $0xa,-0x44(%rbp)
movl   $0xa,-0x48(%rbp)
movl   $0x64,-0x4c(%rbp)
movl   $0x190,-0x50(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <XOpenDisplay@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    123c <main+0x6c>
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
lea    0xdd7(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2d91(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x28(%rbp),%rdi
xor    %esi,%esi
call   10b0 <RootWindow@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%esi
mov    -0x44(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x50(%rbp),%r8d
mov    -0x4c(%rbp),%r9d
mov    0x2d2e(%rip),%rax
mov    (%rax),%r14d
mov    0x2d24(%rip),%rax
mov    (%rax),%ebx
mov    0x2d1b(%rip),%rax
mov    (%rax),%r11d
mov    -0x20(%rbp),%r10
xor    %eax,%eax
lea    -0x18(%rbp),%rax
movl   $0x0,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   10a0 <XCreateWindow@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x28(%rbp),%rdi
xor    %esi,%esi
call   1050 <WhitePixel@plt>
mov    -0x80(%rbp),%rdi
mov    -0x74(%rbp),%esi
mov    %eax,%edx
call   10f0 <XSetWindowBackground@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%eax
mov    0x2cf0(%rip),%rcx
or     (%rcx),%eax
mov    %eax,-0x70(%rbp)
movq   $0x0,-0x58(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x6c(%rbp)
movq   $0x0,-0x60(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
lea    -0x70(%rbp),%rdx
call   1060 <XSetWMNormalHints@plt>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    0x2c79(%rip),%rax
mov    (%rax),%edx
mov    0x2c80(%rip),%rax
or     (%rax),%edx
call   10c0 <XSelectInput@plt>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   10e0 <XMapWindow@plt>
mov    -0x28(%rbp),%rdi
call   10d0 <XFlush@plt>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    $0xa,%ecx
mov    %ecx,%edx
call   1040 <XMoveWindow@plt>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    $0xa,%ecx
mov    %ecx,%edx
call   1040 <XMoveWindow@plt>
mov    -0x28(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1090 <XNextEvent@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x80,%eax
je     13ce <main+0x1fe>
jmp    13b8 <main+0x1e8>
mov    -0x8c(%rbp),%eax
sub    $0x81,%eax
je     13e1 <main+0x211>
jmp    1414 <main+0x244>
lea    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1414 <main+0x244>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x44(%rbp),%esi
mov    -0x48(%rbp),%edx
mov    -0x50(%rbp),%ecx
mov    -0x4c(%rbp),%r8d
lea    0xc1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1392 <main+0x1c2>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x48,%rsp
xor    %edi,%edi
call   1080 <XOpenDisplay@plt>
test   %rax,%rax
je     1362 <main+0x182>
mov    %rax,%rbx
mov    0x2dac(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2dcf(%rip),%rax
mov    (%rax),%r14
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    0x2d93(%rip),%rcx
mov    (%rcx),%ebp
lea    0x8(%rsp),%r10
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
mov    $0x190,%r8d
mov    $0x64,%r9d
push   %r10
push   %r14
push   %rbp
push   %rbp
push   %rbp
push   $0x0
call   10b0 <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   1100 <XSetWindowBackground@plt>
mov    0x2d30(%rip),%rax
mov    0x2d79(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    %ecx,0x28(%rsp)
movabs $0x6400000190,%rax
mov    %rax,0x2c(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x38(%rsp)
lea    0x28(%rsp),%rdx
mov    %rbx,%rdi
mov    %ebp,%esi
call   1070 <XSetWMNormalHints@plt>
mov    0x2d0c(%rip),%rax
mov    0x2d15(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   10d0 <XSelectInput@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   10f0 <XMapWindow@plt>
mov    %rbx,%rdi
call   10e0 <XFlush@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
call   1050 <XMoveWindow@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
call   1050 <XMoveWindow@plt>
lea    0x10(%rsp),%rbp
lea    0xd12(%rip),%r14
lea    0xd25(%rip),%r15
jmp    133b <main+0x15b>
nopl   0x0(%rax,%rax,1)
mov    0x14(%rsp),%esi
mov    0x18(%rsp),%edx
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <XNextEvent@plt>
mov    0x10(%rsp),%eax
cmp    $0x81,%eax
je     1320 <main+0x140>
cmp    $0x80,%eax
jne    133b <main+0x15b>
mov    %r15,%rdi
call   1030 <puts@plt>
jmp    133b <main+0x15b>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
lea    0xc8e(%rip),%rsi
call   1090 <fprintf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_10__ = type { i32 }
%struct.TYPE_11__ = type { i32, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32, i32, i64, i64 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@StaticGravity = global i32 0
@CWWinGravity = global i64 0
@CopyFromParent = global i32 0
@PMinSize = global i32 0
@PMaxSize = 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 %struct.TYPE_10__
%3 = alloca i64
%4 = alloca i32*
%5 = alloca i32
%6 = alloca %struct.TYPE_11__
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.TYPE_9__
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** %4
%13 = load i32*, i32** %4
%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* @StaticGravity
%20 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %2, i32 0, i32 0
store i32 %19, i32* %20
%21 = load i64, i64* @CWWinGravity
store i64 %21, i64* %3
%22 = load i32*, i32** %4
%23 = load i32*, i32** %4
%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 = load i64, i64* %3
%33 = call i32 @XCreateWindow(i32* %22, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 0, i32 %29, i32 %30, i32 %31, i64 %32, %struct.TYPE_10__* %2)
store i32 %33, i32* %5
%34 = load i32*, i32** %4
%35 = load i32, i32* %5
%36 = load i32*, i32** %4
%37 = call i32 @WhitePixel(i32* %36, i32 0)
%38 = call i32 @XSetWindowBackground(i32* %34, i32 %35, i32 %37)
%39 = load i32, i32* @PMinSize
%40 = load i32, i32* @PMaxSize
%41 = or i32 %39, %40
%42 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %11, i32 0, i32 0
store i32 %41, i32* %42
%43 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %11, i32 0, i32 4
store i64 0, i64* %43
%44 = load i32, i32* %10
%45 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %11, i32 0, i32 1
store i32 %44, i32* %45
%46 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %11, i32 0, i32 3
store i64 0, i64* %46
%47 = load i32, i32* %9
%48 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %11, i32 0, i32 2
store i32 %47, i32* %48
%49 = load i32*, i32** %4
%50 = load i32, i32* %5
%51 = call i32 @XSetWMNormalHints(i32* %49, i32 %50, %struct.TYPE_9__* %11)
%52 = load i32*, i32** %4
%53 = load i32, i32* %5
%54 = load i32, i32* @ExposureMask
%55 = load i32, i32* @StructureNotifyMask
%56 = or i32 %54, %55
%57 = call i32 @XSelectInput(i32* %52, i32 %53, i32 %56)
%58 = load i32*, i32** %4
%59 = load i32, i32* %5
%60 = call i32 @XMapWindow(i32* %58, i32 %59)
%61 = load i32*, i32** %4
%62 = call i32 @XFlush(i32* %61)
%63 = load i32*, i32** %4
%64 = load i32, i32* %5
%65 = call i32 @XMoveWindow(i32* %63, i32 %64, i32 10, i32 10)
%66 = load i32*, i32** %4
%67 = load i32, i32* %5
%68 = call i32 @XMoveWindow(i32* %66, i32 %67, i32 10, i32 10)
br label %69
69: ; preds = %18, %94
%70 = load i32*, i32** %4
%71 = call i32 @XNextEvent(i32* %70, %struct.TYPE_11__* %6)
%72 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %6, i32 0, i32 0
%73 = load i32, i32* %72
switch i32 %73, label %94 [
i32 128, label %74
i32 129, label %76
]
74: ; preds = %69
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %94
76: ; preds = %69
%77 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %6, i32 0, i32 1
%78 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %77, i32 0, i32 0
%79 = load i32, i32* %78
store i32 %79, i32* %7
%80 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %6, i32 0, i32 1
%81 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %80, i32 0, i32 1
%82 = load i32, i32* %81
store i32 %82, i32* %8
%83 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %6, i32 0, i32 1
%84 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %83, i32 0, i32 2
%85 = load i32, i32* %84
store i32 %85, i32* %10
%86 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %6, i32 0, i32 1
%87 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %86, i32 0, i32 3
%88 = load i32, i32* %87
store i32 %88, i32* %9
%89 = load i32, i32* %7
%90 = load i32, i32* %8
%91 = load i32, i32* %10
%92 = load i32, i32* %9
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %89, i32 %90, i32 %91, i32 %92)
br label %94
94: ; preds = %69, %76, %74
br label %69
}

LLVM IR (-O2):
%struct.TYPE_10__ = type { i32 }
%struct.TYPE_11__ = type { i32, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32, i32, i32, i32 }
%struct.TYPE_9__ = type { i32, i32, i32, i64, i64 }
@stderr = global i32 0
@.str = [33 x i8] c"couldn't connect to X server :0\0A\00"
@StaticGravity = global i32 0
@CWWinGravity = global i64 0
@CopyFromParent = global i32 0
@PMinSize = global i32 0
@PMaxSize = 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 = alloca %struct.TYPE_11__
%3 = alloca %struct.TYPE_9__
%4 = bitcast %struct.TYPE_10__* %1 to i8*
%5 = bitcast %struct.TYPE_11__* %2 to i8*
%6 = bitcast %struct.TYPE_9__* %3 to i8*
%7 = tail call i32* @XOpenDisplay(i32* null)
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
12: ; preds = %0
%13 = load i32, i32* @StaticGravity
%14 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 0
store i32 %13, i32* %14
%15 = load i64, i64* @CWWinGravity
%16 = tail call i32 @RootWindow(i32* %7, i32 0)
%17 = load i32, i32* @CopyFromParent
%18 = call i32 @XCreateWindow(i32* %7, i32 %16, i32 10, i32 10, i32 400, i32 100, i32 0, i32 %17, i32 %17, i32 %17, i64 %15, %struct.TYPE_10__* %1)
%19 = call i32 @WhitePixel(i32* %7, i32 0)
%20 = call i32 @XSetWindowBackground(i32* %7, i32 %18, i32 %19)
%21 = load i32, i32* @PMinSize
%22 = load i32, i32* @PMaxSize
%23 = or i32 %22, %21
%24 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %3, i64 0, i32 0
store i32 %23, i32* %24
%25 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %3, i64 0, i32 1
store i32 400, i32* %25
%26 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %3, i64 0, i32 3
%27 = bitcast i64* %26 to <2 x i64>*
store <2 x i64> zeroinitializer, <2 x i64>* %27
%28 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %3, i64 0, i32 2
store i32 100, i32* %28
%29 = call i32 @XSetWMNormalHints(i32* %7, i32 %18, %struct.TYPE_9__* %3)
%30 = load i32, i32* @ExposureMask
%31 = load i32, i32* @StructureNotifyMask
%32 = or i32 %31, %30
%33 = call i32 @XSelectInput(i32* %7, i32 %18, i32 %32)
%34 = call i32 @XMapWindow(i32* %7, i32 %18)
%35 = call i32 @XFlush(i32* %7)
%36 = call i32 @XMoveWindow(i32* %7, i32 %18, i32 10, i32 10)
%37 = call i32 @XMoveWindow(i32* %7, i32 %18, i32 10, i32 10)
%38 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %2, i64 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %2, i64 0, i32 1, i32 0
%40 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %2, i64 0, i32 1, i32 1
%41 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %2, i64 0, i32 1, i32 2
%42 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %2, i64 0, i32 1, i32 3
br label %43
43: ; preds = %46, %12
%44 = call i32 @XNextEvent(i32* %7, %struct.TYPE_11__* %2)
%45 = load i32, i32* %38
switch i32 %45, label %46 [
i32 128, label %47
i32 129, label %49
]
46: ; preds = %43, %49, %47
br label %43
47: ; preds = %43
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
br label %46
49: ; preds = %43
%50 = load i32, i32* %39
%51 = load i32, i32* %40
%52 = load i32, i32* %41
%53 = load i32, i32* %42
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %50, i32 %51, i32 %52, i32 %53)
br label %46
}