#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_MODELVIEW;
int /*<<< orphan*/ GL_PROJECTION;
int /*<<< orphan*/ glClearColor(float, float, float, float);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glOrtho(int, int, int, int, int, int);
void initGL(int window_width, int window_height) {
  glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
  glColor3f(0.0, 1.0, 0.0);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(-1., 1., -1., 1., 1., -1.);
  glMatrixMode(GL_MODELVIEW);
}


x86 assembly (clang, -O0):
<initGL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1050 <glClearColor@plt>
xorps  %xmm2,%xmm2
movsd  0xe86(%rip),%xmm1
movaps %xmm2,%xmm0
call   1070 <glColor3f@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
mov    $0xffffffff,%r9d
mov    $0x1,%r8d
mov    %r9d,%edi
mov    %r8d,%esi
mov    %r9d,%edx
mov    %r8d,%ecx
call   1040 <glOrtho@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initGL>:
push   %rax
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1050 <glClearColor@plt>
movsd  0xe96(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   1070 <glColor3f@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1040 <glOrtho@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1030 <glMatrixMode@plt>

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @initGL(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @glClearColor(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%6 = call i32 @glColor3f(double 0.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 @glOrtho(i32 -1, i32 1, i32 -1, i32 1, i32 1, i32 -1)
%11 = load i32, i32* @GL_MODELVIEW
%12 = call i32 @glMatrixMode(i32 %11)
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @initGL(i32 %0, i32 %1) {
%3 = tail call i32 @glClearColor(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%4 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%5 = load i32, i32* @GL_PROJECTION
%6 = tail call i32 @glMatrixMode(i32 %5)
%7 = tail call i32 (...) @glLoadIdentity()
%8 = tail call i32 @glOrtho(i32 -1, i32 1, i32 -1, i32 1, i32 1, i32 -1)
%9 = load i32, i32* @GL_MODELVIEW
%10 = tail call i32 @glMatrixMode(i32 %9)
ret void
}