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

/* Variables and functions */
int /*<<< orphan*/ BlackPixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ CopyFromParent;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ WhitePixel(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ WindowGroupHint;
TYPE_1__ *XAllocWMHints();
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_1__ *);
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*/ stderr;
int main() {
  Display *display;
  Window main, grouptran, child, group;
  XEvent report;
  XWMHints *wmhints;
  display = XOpenDisplay(NULL);
  if (display == NULL) {
    fprintf(stderr, "couldn't connect to X server :0\n");
    return 0;
  }
  group = XCreateWindow(display, RootWindow(display, 0), 0, 0, 1, 1, 10,
                        CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  main = XCreateWindow(display, RootWindow(display, 0), 0, 0, 100, 100, 10,
                       CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  grouptran =
      XCreateWindow(display, RootWindow(display, 0), 10, 10, 80, 180, 10,
                    CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  child = XCreateWindow(display, RootWindow(display, 0), 20, 20, 60, 60, 10,
                        CopyFromParent, CopyFromParent, CopyFromParent, 0, 0);
  XSetWindowBackground(display, main, WhitePixel(display, 0));
  XSetWindowBackground(display, grouptran, BlackPixel(display, 0));
  XSetWindowBackground(display, child, WhitePixel(display, 0));
  XSetTransientForHint(display, grouptran, RootWindow(display, 0));
  XSetTransientForHint(display, child, grouptran);
  wmhints = XAllocWMHints();
  wmhints->flags = WindowGroupHint;
  wmhints->window_group = group;
  XSetWMHints(display, main, wmhints);
  XSetWMHints(display, grouptran, wmhints);
  XSetWMHints(display, child, wmhints);
  XFree(wmhints);
  XMapWindow(display, main);
  XMapWindow(display, grouptran);
  XMapWindow(display, child);
  XFlush(display);
  while (1) {
    XNextEvent(display, &report);
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <XOpenDisplay@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    122a <main+0x4a>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xde6(%rip),%rsi
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret
mov    -0x10(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    -0x90(%rbp),%rdi
mov    %eax,%esi
mov    0x2d80(%rip),%rax
mov    (%rax),%r11d
mov    0x2d76(%rip),%rax
mov    (%rax),%r10d
mov    0x2d6c(%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   10b0 <XCreateWindow@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%esi
mov    0x2d0a(%rip),%rax
mov    (%rax),%r11d
mov    0x2d00(%rip),%rax
mov    (%rax),%r10d
mov    0x2cf6(%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   10b0 <XCreateWindow@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%esi
mov    0x2c9a(%rip),%rax
mov    (%rax),%r11d
mov    0x2c90(%rip),%rax
mov    (%rax),%r10d
mov    0x2c86(%rip),%rax
mov    (%rax),%eax
mov    $0xa,%ecx
mov    $0x50,%r8d
mov    $0xb4,%r9d
xor    %edx,%edx
mov    %ecx,%edx
movl   $0xa,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   10b0 <XCreateWindow@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%esi
mov    0x2c22(%rip),%rax
mov    (%rax),%r11d
mov    0x2c18(%rip),%rax
mov    (%rax),%r10d
mov    0x2c0e(%rip),%rax
mov    (%rax),%eax
mov    $0x14,%ecx
mov    $0x3c,%r9d
xor    %edx,%edx
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   10b0 <XCreateWindow@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    -0x70(%rbp),%rdi
mov    -0x64(%rbp),%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   10d0 <BlackPixel@plt>
mov    -0x60(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    -0x50(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    %eax,%edx
call   1100 <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   10c0 <RootWindow@plt>
mov    -0x40(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    %eax,%edx
call   1030 <XSetTransientForHint@plt>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1030 <XSetTransientForHint@plt>
mov    $0x0,%al
call   1090 <XAllocWMHints@plt>
mov    %rax,-0x30(%rbp)
mov    0x2b30(%rip),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x20(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x30(%rbp),%rdx
call   1050 <XSetWMHints@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x30(%rbp),%rdx
call   1050 <XSetWMHints@plt>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x30(%rbp),%rdx
call   1050 <XSetWMHints@plt>
mov    -0x30(%rbp),%rdi
call   1040 <XFree@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   10f0 <XMapWindow@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   10f0 <XMapWindow@plt>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   10f0 <XMapWindow@plt>
mov    -0x10(%rbp),%rdi
call   10e0 <XFlush@plt>
mov    -0x10(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   10a0 <XNextEvent@plt>
jmp    1538 <main+0x358>

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     13ed <main+0x20d>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    0x2dc1(%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   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r14d
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <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   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r15d
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    0x0(%r13),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
mov    $0x50,%r8d
mov    $0xb4,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r12d
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    0x0(%r13),%ebp
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x14,%edx
mov    $0x14,%ecx
mov    $0x3c,%r8d
mov    $0x3c,%r9d
push   $0x0
push   $0x0
push   %rbp
push   %rbp
push   %rbp
push   $0xa
call   10b0 <XCreateWindow@plt>
add    $0x30,%rsp
mov    %eax,%r13d
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <BlackPixel@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <WhitePixel@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %eax,%edx
call   1100 <XSetWindowBackground@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10c0 <RootWindow@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %eax,%edx
call   1030 <XSetTransientForHint@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r12d,%edx
call   1030 <XSetTransientForHint@plt>
xor    %eax,%eax
call   1090 <XAllocWMHints@plt>
mov    %rax,%rbp
mov    0x2c84(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rbp)
mov    %r14d,0x0(%rbp)
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %rbp,%rdx
call   1050 <XSetWMHints@plt>
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    %r15d,%esi
call   10f0 <XMapWindow@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
call   10f0 <XMapWindow@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
call   10f0 <XMapWindow@plt>
mov    %rbx,%rdi
call   10e0 <XFlush@plt>
lea    0x4(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <XNextEvent@plt>
jmp    13e0 <main+0x200>
mov    0x2be4(%rip),%rax
mov    (%rax),%edi
lea    0xc03(%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"
@CopyFromParent = 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 i32
%8 = alloca %struct.TYPE_5__*
store i32 0, i32* %1
%9 = call i32* @XOpenDisplay(i32* null)
store i32* %9, i32** %2
%10 = load i32*, i32** %2
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret i32 0
15: ; preds = %0
%16 = load i32*, i32** %2
%17 = load i32*, i32** %2
%18 = call i32 @RootWindow(i32* %17, i32 0)
%19 = load i32, i32* @CopyFromParent
%20 = load i32, i32* @CopyFromParent
%21 = load i32, i32* @CopyFromParent
%22 = call i32 @XCreateWindow(i32* %16, i32 %18, i32 0, i32 0, i32 1, i32 1, i32 10, i32 %19, i32 %20, i32 %21, i32 0, i32 0)
store i32 %22, i32* %6
%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 100, i32 100, i32 10, i32 %26, i32 %27, i32 %28, i32 0, i32 0)
store i32 %29, i32* %3
%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 10, i32 10, i32 80, i32 180, i32 10, i32 %33, i32 %34, i32 %35, i32 0, i32 0)
store i32 %36, i32* %4
%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 20, i32 20, i32 60, i32 60, i32 10, i32 %40, i32 %41, i32 %42, i32 0, i32 0)
store i32 %43, i32* %5
%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* %5
%56 = load i32*, i32** %2
%57 = call i32 @WhitePixel(i32* %56, i32 0)
%58 = call i32 @XSetWindowBackground(i32* %54, i32 %55, i32 %57)
%59 = load i32*, i32** %2
%60 = load i32, i32* %4
%61 = load i32*, i32** %2
%62 = call i32 @RootWindow(i32* %61, i32 0)
%63 = call i32 @XSetTransientForHint(i32* %59, i32 %60, i32 %62)
%64 = load i32*, i32** %2
%65 = load i32, i32* %5
%66 = load i32, i32* %4
%67 = call i32 @XSetTransientForHint(i32* %64, i32 %65, i32 %66)
%68 = call %struct.TYPE_5__* (...) @XAllocWMHints()
store %struct.TYPE_5__* %68, %struct.TYPE_5__** %8
%69 = load i32, i32* @WindowGroupHint
%70 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%71 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %70, i32 0, i32 1
store i32 %69, i32* %71
%72 = load i32, i32* %6
%73 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%74 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %73, i32 0, i32 0
store i32 %72, i32* %74
%75 = load i32*, i32** %2
%76 = load i32, i32* %3
%77 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%78 = call i32 @XSetWMHints(i32* %75, i32 %76, %struct.TYPE_5__* %77)
%79 = load i32*, i32** %2
%80 = load i32, i32* %4
%81 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%82 = call i32 @XSetWMHints(i32* %79, i32 %80, %struct.TYPE_5__* %81)
%83 = load i32*, i32** %2
%84 = load i32, i32* %5
%85 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%86 = call i32 @XSetWMHints(i32* %83, i32 %84, %struct.TYPE_5__* %85)
%87 = load %struct.TYPE_5__*, %struct.TYPE_5__** %8
%88 = call i32 @XFree(%struct.TYPE_5__* %87)
%89 = load i32*, i32** %2
%90 = load i32, i32* %3
%91 = call i32 @XMapWindow(i32* %89, i32 %90)
%92 = load i32*, i32** %2
%93 = load i32, i32* %4
%94 = call i32 @XMapWindow(i32* %92, i32 %93)
%95 = load i32*, i32** %2
%96 = load i32, i32* %5
%97 = call i32 @XMapWindow(i32* %95, i32 %96)
%98 = load i32*, i32** %2
%99 = call i32 @XFlush(i32* %98)
br label %100
100: ; preds = %15, %100
%101 = load i32*, i32** %2
%102 = call i32 @XNextEvent(i32* %101, i32* %7)
br label %100
}

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"
@CopyFromParent = global i32 0
@WindowGroupHint = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %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 0, i32 0, i32 1, i32 1, i32 10, i32 %10, i32 %10, i32 %10, i32 0, i32 0)
%12 = tail call i32 @RootWindow(i32* %3, i32 0)
%13 = load i32, i32* @CopyFromParent
%14 = tail call i32 @XCreateWindow(i32* %3, i32 %12, i32 0, i32 0, i32 100, i32 100, i32 10, i32 %13, i32 %13, i32 %13, i32 0, i32 0)
%15 = tail call i32 @RootWindow(i32* %3, i32 0)
%16 = load i32, i32* @CopyFromParent
%17 = tail call i32 @XCreateWindow(i32* %3, i32 %15, i32 10, i32 10, i32 80, i32 180, i32 10, i32 %16, i32 %16, i32 %16, i32 0, i32 0)
%18 = tail call i32 @RootWindow(i32* %3, i32 0)
%19 = load i32, i32* @CopyFromParent
%20 = tail call i32 @XCreateWindow(i32* %3, i32 %18, i32 20, i32 20, i32 60, i32 60, i32 10, i32 %19, i32 %19, i32 %19, i32 0, i32 0)
%21 = tail call i32 @WhitePixel(i32* %3, i32 0)
%22 = tail call i32 @XSetWindowBackground(i32* %3, i32 %14, i32 %21)
%23 = tail call i32 @BlackPixel(i32* %3, i32 0)
%24 = tail call i32 @XSetWindowBackground(i32* %3, i32 %17, i32 %23)
%25 = tail call i32 @WhitePixel(i32* %3, i32 0)
%26 = tail call i32 @XSetWindowBackground(i32* %3, i32 %20, i32 %25)
%27 = tail call i32 @RootWindow(i32* %3, i32 0)
%28 = tail call i32 @XSetTransientForHint(i32* %3, i32 %17, i32 %27)
%29 = tail call i32 @XSetTransientForHint(i32* %3, i32 %20, i32 %17)
%30 = tail call %struct.TYPE_5__* (...) @XAllocWMHints()
%31 = load i32, i32* @WindowGroupHint
%32 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %30, i64 0, i32 1
store i32 %31, i32* %32
%33 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %30, i64 0, i32 0
store i32 %11, i32* %33
%34 = tail call i32 @XSetWMHints(i32* %3, i32 %14, %struct.TYPE_5__* %30)
%35 = tail call i32 @XSetWMHints(i32* %3, i32 %17, %struct.TYPE_5__* %30)
%36 = tail call i32 @XSetWMHints(i32* %3, i32 %20, %struct.TYPE_5__* %30)
%37 = tail call i32 @XFree(%struct.TYPE_5__* %30)
%38 = tail call i32 @XMapWindow(i32* %3, i32 %14)
%39 = tail call i32 @XMapWindow(i32* %3, i32 %17)
%40 = tail call i32 @XMapWindow(i32* %3, i32 %20)
%41 = tail call i32 @XFlush(i32* %3)
br label %42
42: ; preds = %42, %8
%43 = call i32 @XNextEvent(i32* %3, i32* %1)
br label %42
}