#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 */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ GL_BLEND;
int /*<<< orphan*/ GL_ONE_MINUS_SRC_ALPHA;
int /*<<< orphan*/ GL_PROJECTION;
int /*<<< orphan*/ GL_SRC_ALPHA;
int /*<<< orphan*/ glBlendFunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glClearColor(double, double, double, double);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ gluOrtho2D(double, int, int, double);
void init_window() {
  glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  glClearColor(1.0, 1.0, 1.0, 0.0);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluOrtho2D(0.0, 500, 600, 0.0);
}


x86 assembly (clang, -O0):
<init_window>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
call   1050 <glEnable@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
mov    0x2e66(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
movsd  0xe6f(%rip),%xmm2
xorps  %xmm3,%xmm3
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glClearColor@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1070 <glLoadIdentity@plt>
xorps  %xmm1,%xmm1
mov    $0x1f4,%edi
mov    $0x258,%esi
movaps %xmm1,%xmm0
call   1080 <gluOrtho2D@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_window>:
push   %rax
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
call   1050 <glEnable@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
mov    0x2e69(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
movsd  0xe72(%rip),%xmm0
xorps  %xmm3,%xmm3
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glClearColor@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1070 <glLoadIdentity@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x1f4,%edi
mov    $0x258,%esi
pop    %rax
jmp    1080 <gluOrtho2D@plt>

LLVM IR (-O0):
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_PROJECTION = global i32 0
define void @init_window() {
%1 = load i32, i32* @GL_BLEND
%2 = call i32 @glEnable(i32 %1)
%3 = load i32, i32* @GL_SRC_ALPHA
%4 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%5 = call i32 @glBlendFunc(i32 %3, i32 %4)
%6 = call i32 @glClearColor(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = load i32, i32* @GL_PROJECTION
%8 = call i32 @glMatrixMode(i32 %7)
%9 = call i32 (...) @glLoadIdentity()
%10 = call i32 @gluOrtho2D(double 0.000000e+00, i32 500, i32 600, double 0.000000e+00)
ret void
}

LLVM IR (-O2):
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_PROJECTION = global i32 0
define void @init_window() {
%1 = load i32, i32* @GL_BLEND
%2 = tail call i32 @glEnable(i32 %1)
%3 = load i32, i32* @GL_SRC_ALPHA
%4 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%5 = tail call i32 @glBlendFunc(i32 %3, i32 %4)
%6 = tail call i32 @glClearColor(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = load i32, i32* @GL_PROJECTION
%8 = tail call i32 @glMatrixMode(i32 %7)
%9 = tail call i32 (...) @glLoadIdentity()
%10 = tail call i32 @gluOrtho2D(double 0.000000e+00, i32 500, i32 600, double 0.000000e+00)
ret void
}