#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*/ glFrustum(double, double, double, double, double, double);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glViewport(int /*<<< orphan*/, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ gluLookAt(double, double, double, double, double, double,
                             double, double, double);
void myReshape(int w, int h) {
  glViewport(0, 0, w, h);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glFrustum(-1.0, 1.0, -1.5, 0.5, 0.8, 10.0);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(7.0, 4.5, 4.0, 4.5, 4.5, 2.0, 6.0, -3.0, 2.0);
}


x86 assembly (clang, -O0):
<myReshape>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1070 <glViewport@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
movsd  0xea6(%rip),%xmm0
movsd  0xea6(%rip),%xmm1
movsd  0xea6(%rip),%xmm2
movsd  0xea6(%rip),%xmm3
movsd  0xea6(%rip),%xmm4
movsd  0xea6(%rip),%xmm5
call   1060 <glFrustum@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
movsd  0xe2c(%rip),%xmm0
movsd  0xe2c(%rip),%xmm4
movsd  0xe2c(%rip),%xmm2
movsd  0xe2b(%rip),%xmm8
movsd  0xe2b(%rip),%xmm6
movsd  0xe2b(%rip),%xmm7
movaps %xmm4,%xmm1
movaps %xmm4,%xmm3
movaps %xmm8,%xmm5
movsd  %xmm8,(%rsp)
call   1030 <gluLookAt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myReshape>:
push   %rax
mov    %esi,%ecx
mov    %edi,%edx
xor    %edi,%edi
xor    %esi,%esi
call   1070 <glViewport@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movsd  0xe85(%rip),%xmm0
movsd  0xe85(%rip),%xmm1
movsd  0xe85(%rip),%xmm2
movsd  0xe85(%rip),%xmm3
movsd  0xe85(%rip),%xmm4
movsd  0xe85(%rip),%xmm5
call   1060 <glFrustum@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movabs $0x4000000000000000,%rax
mov    %rax,(%rsp)
movsd  0xe5d(%rip),%xmm0
movsd  0xe5d(%rip),%xmm2
movsd  0xe5d(%rip),%xmm1
movsd  0xe5d(%rip),%xmm5
movsd  0xe5d(%rip),%xmm6
movsd  0xe5d(%rip),%xmm7
movaps %xmm1,%xmm3
movaps %xmm1,%xmm4
call   1030 <gluLookAt@plt>
pop    %rax
ret

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @myReshape(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @glViewport(i32 0, i32 0, i32 %5, i32 %6)
%8 = load i32, i32* @GL_PROJECTION
%9 = call i32 @glMatrixMode(i32 %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = call i32 @glFrustum(double -1.000000e+00, double 1.000000e+00, double -1.500000e+00, double 5.000000e-01, double 8.000000e-01, double 1.000000e+01)
%12 = load i32, i32* @GL_MODELVIEW
%13 = call i32 @glMatrixMode(i32 %12)
%14 = call i32 (...) @glLoadIdentity()
%15 = call i32 @gluLookAt(double 7.000000e+00, double 4.500000e+00, double 4.000000e+00, double 4.500000e+00, double 4.500000e+00, double 2.000000e+00, double 6.000000e+00, double -3.000000e+00, double 2.000000e+00)
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @myReshape(i32 %0, i32 %1) {
%3 = tail call i32 @glViewport(i32 0, i32 0, i32 %0, i32 %1)
%4 = load i32, i32* @GL_PROJECTION
%5 = tail call i32 @glMatrixMode(i32 %4)
%6 = tail call i32 (...) @glLoadIdentity()
%7 = tail call i32 @glFrustum(double -1.000000e+00, double 1.000000e+00, double -1.500000e+00, double 5.000000e-01, double 8.000000e-01, double 1.000000e+01)
%8 = load i32, i32* @GL_MODELVIEW
%9 = tail call i32 @glMatrixMode(i32 %8)
%10 = tail call i32 (...) @glLoadIdentity()
%11 = tail call i32 @gluLookAt(double 7.000000e+00, double 4.500000e+00, double 4.000000e+00, double 4.500000e+00, double 4.500000e+00, double 2.000000e+00, double 6.000000e+00, double -3.000000e+00, double 2.000000e+00)
ret void
}