#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(double, double, double, double);
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glOrtho(int, int, int, int, int, int);
int /*<<< orphan*/ gluLookAt(int /*<<< orphan*/, int /*<<< orphan*/, int,
                             int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/, int /*<<< orphan*/, int,
                             int /*<<< orphan*/);
void init() {
  glClearColor(0.0, 0.0, 0.0, 0.0);
  glMatrixMode(GL_PROJECTION);
  glOrtho(-5, 5, -5, 5, 5, 15);
  glMatrixMode(GL_MODELVIEW);
  gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1060 <glClearColor@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0xfffffffb,%edx
mov    $0x5,%r8d
mov    $0xf,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r8d,%ecx
call   1050 <glOrtho@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %r9d,%r9d
mov    $0xa,%edx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x1,0x8(%rsp)
movl   $0x0,0x10(%rsp)
call   1030 <gluLookAt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rax
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1060 <glClearColor@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0xfffffffb,%edi
mov    $0x5,%esi
mov    $0xfffffffb,%edx
mov    $0x5,%ecx
mov    $0x5,%r8d
mov    $0xf,%r9d
call   1050 <glOrtho@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
sub    $0x8,%rsp
xor    %edi,%edi
xor    %esi,%esi
mov    $0xa,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x1
push   $0x0
call   1030 <gluLookAt@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @init() {
%1 = call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%2 = load i32, i32* @GL_PROJECTION
%3 = call i32 @glMatrixMode(i32 %2)
%4 = call i32 @glOrtho(i32 -5, i32 5, i32 -5, i32 5, i32 5, i32 15)
%5 = load i32, i32* @GL_MODELVIEW
%6 = call i32 @glMatrixMode(i32 %5)
%7 = call i32 @gluLookAt(i32 0, i32 0, i32 10, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0)
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @init() {
%1 = tail call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%2 = load i32, i32* @GL_PROJECTION
%3 = tail call i32 @glMatrixMode(i32 %2)
%4 = tail call i32 @glOrtho(i32 -5, i32 5, i32 -5, i32 5, i32 5, i32 15)
%5 = load i32, i32* @GL_MODELVIEW
%6 = tail call i32 @glMatrixMode(i32 %5)
%7 = tail call i32 @gluLookAt(i32 0, i32 0, i32 10, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0)
ret void
}