#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_COLOR_BUFFER_BIT;
int /*<<< orphan*/ GL_MODELVIEW;
int /*<<< orphan*/ GL_PROJECTION;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glClearColor(double, double, double, double);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glOrtho(double, int, int, double, float, float);
void init(void) {
  glClearColor(1.0, 1.0, 1.0, 0.0);
  glClear(GL_COLOR_BUFFER_BIT);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(0.0, 1000, 400, 0.0, 0.0f, 1.0f);
  glMatrixMode(GL_MODELVIEW);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
movsd  0xeac(%rip),%xmm2
xorps  %xmm3,%xmm3
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glClearColor@plt>
mov    0x2e5f(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1070 <glLoadIdentity@plt>
xorps  %xmm1,%xmm1
mov    $0x3e8,%edi
mov    $0x190,%esi
xorps  %xmm2,%xmm2
movss  0xe5b(%rip),%xmm3
movaps %xmm1,%xmm0
call   1050 <glOrtho@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rax
movsd  0xea7(%rip),%xmm0
xorps  %xmm3,%xmm3
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glClearColor@plt>
mov    0x2e62(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1070 <glLoadIdentity@plt>
movss  0xe76(%rip),%xmm3
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x3e8,%edi
mov    $0x190,%esi
call   1050 <glOrtho@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <glMatrixMode@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @init() {
%1 = call i32 @glClearColor(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = call i32 @glClear(i32 %2)
%4 = load i32, i32* @GL_PROJECTION
%5 = call i32 @glMatrixMode(i32 %4)
%6 = call i32 (...) @glLoadIdentity()
%7 = call i32 @glOrtho(double 0.000000e+00, i32 1000, i32 400, double 0.000000e+00, float 0.000000e+00, float 1.000000e+00)
%8 = load i32, i32* @GL_MODELVIEW
%9 = call i32 @glMatrixMode(i32 %8)
ret void
}

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