#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 GL_COLOR_BUFFER_BIT;
int GL_DEPTH_BUFFER_BIT;
int /*<<< orphan*/ drawFunc();
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glScalef(int, int, int);
int /*<<< orphan*/ gluLookAt(double, int, int, double, double, double, double,
                             double, double);
void display() {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glColor3f(1.0, 1.0, 1.0);
  glLoadIdentity();
  gluLookAt(10.0, -3, 9, 10.0, 5.0, 0.0, 0.0, 0.0, 1.0);
  glScalef(1, 1, 1);
  drawFunc();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e5d(%rip),%rax
mov    (%rax),%edi
mov    0x2e64(%rip),%rax
or     (%rax),%edi
call   1040 <glClear@plt>
movsd  0xe7d(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
movsd  0xe53(%rip),%xmm1
mov    $0xfffffffd,%edi
mov    $0x9,%esi
movsd  0xe49(%rip),%xmm2
xorps  %xmm5,%xmm5
movsd  0xe46(%rip),%xmm6
movaps %xmm1,%xmm0
movaps %xmm5,%xmm3
movaps %xmm5,%xmm4
call   1030 <gluLookAt@plt>
mov    $0x1,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1070 <glScalef@plt>
mov    $0x0,%al
call   1090 <drawFunc@plt>
mov    $0x0,%al
call   1080 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e60(%rip),%rax
mov    0x2e69(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1040 <glClear@plt>
movsd  0xe70(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glColor3f@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movsd  0xe5e(%rip),%xmm0
movsd  0xe5e(%rip),%xmm2
xorps  %xmm3,%xmm3
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
mov    $0xfffffffd,%edi
mov    $0x9,%esi
movaps %xmm0,%xmm1
movsd  0xe30(%rip),%xmm6
call   1030 <gluLookAt@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1070 <glScalef@plt>
xor    %eax,%eax
call   1090 <drawFunc@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %1, %2
%4 = call i32 @glClear(i32 %3)
%5 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%6 = call i32 (...) @glLoadIdentity()
%7 = call i32 @gluLookAt(double 1.000000e+01, i32 -3, i32 9, double 1.000000e+01, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%8 = call i32 @glScalef(i32 1, i32 1, i32 1)
%9 = call i32 (...) @drawFunc()
%10 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %2, %1
%4 = tail call i32 @glClear(i32 %3)
%5 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%6 = tail call i32 (...) @glLoadIdentity()
%7 = tail call i32 @gluLookAt(double 1.000000e+01, i32 -3, i32 9, double 1.000000e+01, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%8 = tail call i32 @glScalef(i32 1, i32 1, i32 1)
%9 = tail call i32 (...) @drawFunc()
%10 = tail call i32 (...) @glFlush()
ret void
}