#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 */
typedef double GLfloat;
typedef int /*<<< orphan*/ GLUquadricObj;

/* Variables and functions */
int /*<<< orphan*/ GLU_FILL;
int /*<<< orphan*/ GLU_SMOOTH;
int /*<<< orphan*/ GL_DIFFUSE;
int /*<<< orphan*/ GL_FRONT;
int /*<<< orphan*/ GL_SPECULAR;
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                double *);
int /*<<< orphan*/ glScaled(double, double, double);
int /*<<< orphan*/ *gluNewQuadric();
int /*<<< orphan*/ gluQuadricDrawStyle(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ gluQuadricNormals(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ glutSolidCube(double);
void myDrawCeiling(void) {
  GLUquadricObj *qobj;
  GLfloat spec[] = {0.0, 0.0, 0.0, 1.0};
  GLfloat diffl[] = {1.0, 1.0, 1.0, 1.0};
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffl);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  glScaled(32.6, 1.0, 33.5);
  glutSolidCube(3.0);
}


x86 assembly (clang, -O0):
<myDrawCeiling>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0xeb1(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeae(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
mov    0x2df0(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rdx
call   1080 <glMaterialfv@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1080 <glMaterialfv@plt>
mov    $0x0,%al
call   1030 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2dbc(%rip),%rax
mov    (%rax),%esi
call   1060 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2dba(%rip),%rax
mov    (%rax),%esi
call   1070 <gluQuadricNormals@plt>
movsd  0xddb(%rip),%xmm0
movsd  0xddb(%rip),%xmm1
movsd  0xddb(%rip),%xmm2
call   1050 <glScaled@plt>
movsd  0xdb6(%rip),%xmm0
call   1040 <glutSolidCube@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawCeiling>:
push   %rbx
sub    $0x40,%rsp
movaps 0xec4(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xecc(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e45(%rip),%rbx
mov    (%rbx),%edi
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   1080 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdx
call   1080 <glMaterialfv@plt>
xor    %eax,%eax
call   1030 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1060 <gluQuadricDrawStyle@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1070 <gluQuadricNormals@plt>
movsd  0xe09(%rip),%xmm0
movsd  0xe09(%rip),%xmm1
movsd  0xe09(%rip),%xmm2
call   1050 <glScaled@plt>
movsd  0xe04(%rip),%xmm0
call   1040 <glutSolidCube@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.myDrawCeiling.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawCeiling.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawCeiling() {
%1 = alloca i32*
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = bitcast [4 x double]* %2 to i8*
%5 = bitcast [4 x double]* %3 to i8*
%6 = load i32, i32* @GL_FRONT
%7 = load i32, i32* @GL_DIFFUSE
%8 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%9 = call i32 @glMaterialfv(i32 %6, i32 %7, double* %8)
%10 = load i32, i32* @GL_FRONT
%11 = load i32, i32* @GL_SPECULAR
%12 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%13 = call i32 @glMaterialfv(i32 %10, i32 %11, double* %12)
%14 = call i32* (...) @gluNewQuadric()
store i32* %14, i32** %1
%15 = load i32*, i32** %1
%16 = load i32, i32* @GLU_FILL
%17 = call i32 @gluQuadricDrawStyle(i32* %15, i32 %16)
%18 = load i32*, i32** %1
%19 = load i32, i32* @GLU_SMOOTH
%20 = call i32 @gluQuadricNormals(i32* %18, i32 %19)
%21 = call i32 @glScaled(double 3.260000e+01, double 1.000000e+00, double 3.350000e+01)
%22 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}

LLVM IR (-O2):
@__const.myDrawCeiling.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawCeiling.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawCeiling() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = bitcast [4 x double]* %1 to i8*
%4 = bitcast [4 x double]* %2 to i8*
%5 = load i32, i32* @GL_FRONT
%6 = load i32, i32* @GL_DIFFUSE
%7 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%8 = call i32 @glMaterialfv(i32 %5, i32 %6, double* %7)
%9 = load i32, i32* @GL_FRONT
%10 = load i32, i32* @GL_SPECULAR
%11 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%12 = call i32 @glMaterialfv(i32 %9, i32 %10, double* %11)
%13 = call i32* (...) @gluNewQuadric()
%14 = load i32, i32* @GLU_FILL
%15 = call i32 @gluQuadricDrawStyle(i32* %13, i32 %14)
%16 = load i32, i32* @GLU_SMOOTH
%17 = call i32 @gluQuadricNormals(i32* %13, i32 %16)
%18 = call i32 @glScaled(double 3.260000e+01, double 1.000000e+00, double 3.350000e+01)
%19 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}