#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_1__;

/* Type definitions */
struct TYPE_5__ {
  int /*<<< orphan*/ window_group;
  int /*<<< orphan*/ flags;
};
typedef TYPE_1__ XWMHints;
typedef int /*<<< orphan*/ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Atom;

/* Variables and functions */
int /*<<< orphan*/ BlackPixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ CopyFromParent;
int /*<<< orphan*/ PropModeReplace;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ True;
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ WindowGroupHint;
int /*<<< orphan*/ XA_ATOM;
TYPE_1__ *XAllocWMHints();
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 /*<<< orphan*/, int /*<<< orphan*/, int,
                                 int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XFree(TYPE_1__ *);
int /*<<< orphan*/ XInternAtom(int /*<<< orphan*/ *, char *,
                               int /*<<< orphan*/);
int /*<<< orphan*/ XMapWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XNextEvent(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XSetTransientForHint(int /*<<< orphan*/ *,
                                        int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ XSetWMHints(int /*<<< orphan*/ *, int /*<<< orphan*/,
                               TYPE_1__ *);
int /*<<< orphan*/ XSetWindowBackground(int /*<<< orphan*/ *,
                                        int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
int main() {
  Display *display;
  Window one, two, group;
  XEvent report;
  XWMHints *wmhints;
  Atom state, modal;
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  state = XInternAtom(display, "_NET_WM_STATE", True);
  modal = XInternAtom(display, "_NET_WM_STATE_MODAL", True);
  group = XCreateWindow(display, RootWindow(display, 0), 0, 0, 1, 1, 10,
                        CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  one = XCreateWindow(display, RootWindow(display, 0), 0, 0, 300, 300, 10,
                      CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  two = XCreateWindow(display, RootWindow(display, 0), 0, 0, 100, 100, 10,
                      CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  XSetWindowBackground(display, one, WhitePixel(display, 0));
  XSetWindowBackground(display, two, BlackPixel(display, 0));
  XSetTransientForHint(display, two, RootWindow(display, 0));
  XChangeProperty(display, two, state, XA_ATOM, 32, PropModeReplace,
                  (unsigned char *)&modal, 1);
  wmhints = XAllocWMHints();
  wmhints->flags = WindowGroupHint;
  wmhints->window_group = group;
  XSetWMHints(display, one, wmhints);
  XSetWMHints(display, two, wmhints);
  XFree(wmhints);
  XMapWindow(display, one);
  XFlush(display);
  sleep(1);
  XMapWindow(display, two);
  XFlush(display);
  while (1) {
    XNextEvent(display, &report);
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <XOpenDisplay@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    125a <main+0x4a>
mov    0x2d87(%rip),%rax
mov    (%rax),%edi
lea    0xdb6(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret
mov    -0x10(%rbp),%rdi
mov    0x2d73(%rip),%rax
mov    (%rax),%edx
lea    0xdb3(%rip),%rsi
call   10b0 <XInternAtom@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2d57(%rip),%rax
mov    (%rax),%edx
lea    0xda5(%rip),%rsi
call   10b0 <XInternAtom@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%esi
mov    0x2d06(%rip),%rax
mov    (%rax),%r11d
mov    0x2cfc(%rip),%rax
mov    (%rax),%r10d
mov    0x2cf2(%rip),%rax
mov    (%rax),%eax
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   10d0 <XCreateWindow@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%esi
mov    0x2c96(%rip),%rax
mov    (%rax),%r11d
mov    0x2c8c(%rip),%rax
mov    (%rax),%r10d
mov    0x2c82(%rip),%rax
mov    (%rax),%eax
xor    %ecx,%ecx
mov    $0x12c,%r9d
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   10d0 <XCreateWindow@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
mov    0x2c26(%rip),%rax
mov    (%rax),%r11d
mov    0x2c1c(%rip),%rax
mov    (%rax),%r10d
mov    0x2c12(%rip),%rax
mov    (%rax),%eax
xor    %ecx,%ecx
mov    $0x64,%r9d
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   10d0 <XCreateWindow@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    -0x60(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    %eax,%edx
call   1120 <XSetWindowBackground@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10f0 <BlackPixel@plt>
mov    -0x50(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    %eax,%edx
call   1120 <XSetWindowBackground@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    -0x40(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    %eax,%edx
call   1030 <XSetTransientForHint@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    0x2b78(%rip),%rax
mov    (%rax),%ecx
mov    0x2b4f(%rip),%rax
mov    (%rax),%r9d
lea    -0x30(%rbp),%rax
mov    $0x20,%r8d
mov    %rax,(%rsp)
movl   $0x1,0x8(%rsp)
call   10c0 <XChangeProperty@plt>
mov    $0x0,%al
call   1090 <XAllocWMHints@plt>
mov    %rax,-0x28(%rbp)
mov    0x2b4f(%rip),%rax
mov    (%rax),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x28(%rbp),%rdx
call   1050 <XSetWMHints@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x28(%rbp),%rdx
call   1050 <XSetWMHints@plt>
mov    -0x28(%rbp),%rdi
call   1040 <XFree@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1110 <XMapWindow@plt>
mov    -0x10(%rbp),%rdi
call   1100 <XFlush@plt>
mov    $0x1,%edi
call   1130 <sleep@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1110 <XMapWindow@plt>
mov    -0x10(%rbp),%rdi
call   1100 <XFlush@plt>
mov    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   10a0 <XNextEvent@plt>
jmp    1510 <main+0x300>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %edi,%edi
call   1070 <XOpenDisplay@plt>
test   %rax,%rax
je     140d <main+0x1fd>
mov    %rax,%rbx
mov    0x2da3(%rip),%rbp
mov    0x0(%rbp),%edx
lea    0xde2(%rip),%rsi
mov    %rax,%rdi
call   10b0 <XInternAtom@plt>
mov    %eax,%r14d
mov    0x0(%rbp),%edx
lea    0xddb(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <XInternAtom@plt>
mov    %eax,(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    0x2d48(%rip),%r13
mov    0x0(%r13),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10d0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r15d
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    0x0(%r13),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x12c,%r8d
mov    $0x12c,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10d0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r12d
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    0x0(%r13),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x64,%r8d
mov    $0x64,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10d0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r13d
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %eax,%edx
call   1120 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10f0 <BlackPixel@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %eax,%edx
call   1120 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <RootWindow@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %eax,%edx
call   1030 <XSetTransientForHint@plt>
mov    0x2c86(%rip),%rax
mov    (%rax),%ecx
mov    0x2c5d(%rip),%rax
mov    (%rax),%r9d
mov    %rsp,%rax
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
mov    $0x20,%r8d
push   $0x1
push   %rax
call   10c0 <XChangeProperty@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   1090 <XAllocWMHints@plt>
mov    %rax,%rbp
mov    0x2c5b(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rbp)
mov    %r15d,0x0(%rbp)
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %rbp,%rdx
call   1050 <XSetWMHints@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %rbp,%rdx
call   1050 <XSetWMHints@plt>
mov    %rbp,%rdi
call   1040 <XFree@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
call   1110 <XMapWindow@plt>
mov    %rbx,%rdi
call   1100 <XFlush@plt>
mov    $0x1,%edi
call   1130 <sleep@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
call   1110 <XMapWindow@plt>
mov    %rbx,%rdi
call   1100 <XFlush@plt>
lea    0x4(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <XNextEvent@plt>
jmp    1400 <main+0x1f0>
mov    0x2bb4(%rip),%rax
mov    (%rax),%edi
lea    0xbe3(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.TYPE_5__ = type { 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_STATE\00"
@True = global i32 0
@.str.2 = [20 x i8] c"_NET_WM_STATE_MODAL\00"
@CopyFromParent = global i32 0
@XA_ATOM = global i32 0
@PropModeReplace = global i32 0
@WindowGroupHint = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast 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* @True
%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 = load i32, i32* @True
%14 = tail call i32 @XInternAtom(i32* %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %13)
store i32 %14, i32* %2
%15 = tail call i32 @RootWindow(i32* %5, i32 0)
%16 = load i32, i32* @CopyFromParent
%17 = tail call i32 @XCreateWindow(i32* %5, i32 %15, i32 0, i32 0, i32 1, i32 1, i32 10, i32 %16, i32 %16, i32 %16, i32 0, i32 0)
%18 = tail call i32 @RootWindow(i32* %5, i32 0)
%19 = load i32, i32* @CopyFromParent
%20 = tail call i32 @XCreateWindow(i32* %5, i32 %18, i32 0, i32 0, i32 300, i32 300, i32 10, i32 %19, i32 %19, i32 %19, i32 0, i32 0)
%21 = tail call i32 @RootWindow(i32* %5, i32 0)
%22 = load i32, i32* @CopyFromParent
%23 = tail call i32 @XCreateWindow(i32* %5, i32 %21, i32 0, i32 0, i32 100, i32 100, i32 10, i32 %22, i32 %22, i32 %22, i32 0, i32 0)
%24 = tail call i32 @WhitePixel(i32* %5, i32 0)
%25 = tail call i32 @XSetWindowBackground(i32* %5, i32 %20, i32 %24)
%26 = tail call i32 @BlackPixel(i32* %5, i32 0)
%27 = tail call i32 @XSetWindowBackground(i32* %5, i32 %23, i32 %26)
%28 = tail call i32 @RootWindow(i32* %5, i32 0)
%29 = tail call i32 @XSetTransientForHint(i32* %5, i32 %23, i32 %28)
%30 = load i32, i32* @XA_ATOM
%31 = load i32, i32* @PropModeReplace
%32 = call i32 @XChangeProperty(i32* %5, i32 %23, i32 %12, i32 %30, i32 32, i32 %31, i8* %4, i32 1)
%33 = call %struct.TYPE_5__* (...) @XAllocWMHints()
%34 = load i32, i32* @WindowGroupHint
%35 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %33, i64 0, i32 1
store i32 %34, i32* %35
%36 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %33, i64 0, i32 0
store i32 %17, i32* %36
%37 = call i32 @XSetWMHints(i32* %5, i32 %20, %struct.TYPE_5__* %33)
%38 = call i32 @XSetWMHints(i32* %5, i32 %23, %struct.TYPE_5__* %33)
%39 = call i32 @XFree(%struct.TYPE_5__* %33)
%40 = call i32 @XMapWindow(i32* %5, i32 %20)
%41 = call i32 @XFlush(i32* %5)
%42 = call i32 @sleep(i32 1)
%43 = call i32 @XMapWindow(i32* %5, i32 %23)
%44 = call i32 @XFlush(i32* %5)
br label %45
45: ; preds = %45, %10
%46 = call i32 @XNextEvent(i32* %5, i32* %1)
br label %45
}