#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*/ drawTeapots();
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ gluLookAt(double, double, double, double, double, double,
                             double, double, double);
int /*<<< orphan*/ glutSwapBuffers();
void DrawGLScene(void) {
  glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
  glLoadIdentity();
  gluLookAt(5.0, 6.0, 9.0, 5.0, 0.0, 0.0, 0.0, 1.0, 0.0);
  drawTeapots();
  glutSwapBuffers();
}


x86 assembly (clang, -O0):
<DrawGLScene>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e89(%rip),%rax
mov    (%rax),%edi
mov    0x2e70(%rip),%rax
or     (%rax),%edi
call   1040 <glClear@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
movsd  0xe82(%rip),%xmm3
movsd  0xe82(%rip),%xmm1
movsd  0xe82(%rip),%xmm2
xorps  %xmm8,%xmm8
movsd  0xe7e(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm8,%xmm4
movaps %xmm8,%xmm5
movaps %xmm8,%xmm6
movsd  %xmm8,(%rsp)
call   1030 <gluLookAt@plt>
mov    $0x0,%al
call   1070 <drawTeapots@plt>
mov    $0x0,%al
call   1050 <glutSwapBuffers@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawGLScene>:
push   %rax
mov    0x2e90(%rip),%rax
mov    0x2e79(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1040 <glClear@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
movq   $0x0,(%rsp)
movsd  0xe81(%rip),%xmm1
movsd  0xe81(%rip),%xmm2
movsd  0xe81(%rip),%xmm0
movsd  0xe81(%rip),%xmm7
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
xorps  %xmm6,%xmm6
movaps %xmm0,%xmm3
call   1030 <gluLookAt@plt>
xor    %eax,%eax
call   1070 <drawTeapots@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glutSwapBuffers@plt>

LLVM IR (-O0):
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_COLOR_BUFFER_BIT = global i32 0
define void @DrawGLScene() {
%1 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = or i32 %1, %2
%4 = call i32 @glClear(i32 %3)
%5 = call i32 (...) @glLoadIdentity()
%6 = call i32 @gluLookAt(double 5.000000e+00, double 6.000000e+00, double 9.000000e+00, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = call i32 (...) @drawTeapots()
%8 = call i32 (...) @glutSwapBuffers()
ret void
}

LLVM IR (-O2):
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_COLOR_BUFFER_BIT = global i32 0
define void @DrawGLScene() {
%1 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = or i32 %2, %1
%4 = tail call i32 @glClear(i32 %3)
%5 = tail call i32 (...) @glLoadIdentity()
%6 = tail call i32 @gluLookAt(double 5.000000e+00, double 6.000000e+00, double 9.000000e+00, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = tail call i32 (...) @drawTeapots()
%8 = tail call i32 (...) @glutSwapBuffers()
ret void
}