#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_SHININESS;
int /*<<< orphan*/ GL_SPECULAR;
int /*<<< orphan*/ glMaterialf(int /*<<< orphan*/, int /*<<< orphan*/,
                               int /*<<< orphan*/);
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 myDrawBackWall2(void) {
  GLUquadricObj *qobj;
  GLfloat spec[] = {0.0, 0.0, 0.0, 1.0};
  GLfloat diff[] = {1.0, 0.8, 0.0, 1.0};
  GLfloat diffb[] = {0.0, 0.0, 0.0, 1.0};
  GLfloat diffl[] = {1.0, 1.0, 1.0, 1.0};
  GLfloat diffBL[] = {0.1, 0.2, 1.0, 1.0};
  GLfloat diffGR[] = {0.1, 0.6, 0.5, 1.0};
  GLfloat diffPink[] = {0.98, 0.66, 0.94, 1.0};
  glMaterialf(GL_FRONT, GL_SHININESS, 0);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diff);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffPink);
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  glScaled(5.6, 24.0, 1.5);
  glutSolidCube(3.0);
}


x86 assembly (clang, -O0):
<myDrawBackWall2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0xe9e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe9b(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe98(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe95(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe92(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe8f(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe8c(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe89(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe46(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe43(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe40(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe3d(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe5a(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xe54(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xe4e(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe4b(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe48(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe42(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xe3c(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe36(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xe30(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe2a(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0xe24(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xe1e(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xe18(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0xe12(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0xe0c(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xe06(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
mov    0x2d07(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    0x2cdf(%rip),%rax
mov    (%rax),%edi
mov    0x2ce6(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
mov    0x2c9b(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
mov    0x2c80(%rip),%rax
mov    (%rax),%esi
lea    -0xf0(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2c64(%rip),%rax
mov    (%rax),%esi
call   1070 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2c62(%rip),%rax
mov    (%rax),%esi
call   1080 <gluQuadricNormals@plt>
movsd  0xc8b(%rip),%xmm0
movsd  0xc8b(%rip),%xmm1
movsd  0xc8b(%rip),%xmm2
call   1060 <glScaled@plt>
movsd  0xc66(%rip),%xmm0
call   1050 <glutSolidCube@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawBackWall2>:
push   %r14
push   %rbx
sub    $0x68,%rsp
movaps 0xeb2(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe96(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e13(%rip),%rbx
mov    (%rbx),%edi
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    (%rbx),%edi
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0x40(%rsp),%rdx
call   1090 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2dc3(%rip),%r14
mov    (%r14),%esi
lea    0x20(%rsp),%rdx
call   1090 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r14),%esi
mov    %rsp,%rdx
call   1090 <glMaterialfv@plt>
xor    %eax,%eax
call   1040 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2da0(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1070 <gluQuadricDrawStyle@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1080 <gluQuadricNormals@plt>
movsd  0xdbd(%rip),%xmm0
movsd  0xdbd(%rip),%xmm1
movsd  0xdbd(%rip),%xmm2
call   1060 <glScaled@plt>
movsd  0xdb8(%rip),%xmm0
call   1050 <glutSolidCube@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.myDrawBackWall2.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diff = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diffb = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diffBL = [4 x double] [double 1.000000e-01, double 2.000000e-01, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diffGR = [4 x double] [double 1.000000e-01, double 6.000000e-01, double 5.000000e-01, double 1.000000e+00]
@__const.myDrawBackWall2.diffPink = [4 x double] [double 0x3FEF5C28F5C28F5C, double 6.600000e-01, double 0x3FEE147AE147AE14, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_SHININESS = global i32 0
@GL_SPECULAR = global i32 0
@GL_DIFFUSE = global i32 0
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawBackWall2() {
%1 = alloca i32*
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = alloca [4 x double]
%5 = alloca [4 x double]
%6 = alloca [4 x double]
%7 = alloca [4 x double]
%8 = alloca [4 x double]
%9 = bitcast [4 x double]* %2 to i8*
%10 = bitcast [4 x double]* %3 to i8*
%11 = bitcast [4 x double]* %4 to i8*
%12 = bitcast [4 x double]* %5 to i8*
%13 = bitcast [4 x double]* %6 to i8*
%14 = bitcast [4 x double]* %7 to i8*
%15 = bitcast [4 x double]* %8 to i8*
%16 = load i32, i32* @GL_FRONT
%17 = load i32, i32* @GL_SHININESS
%18 = call i32 @glMaterialf(i32 %16, i32 %17, i32 0)
%19 = load i32, i32* @GL_FRONT
%20 = load i32, i32* @GL_SPECULAR
%21 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%22 = call i32 @glMaterialfv(i32 %19, i32 %20, double* %21)
%23 = load i32, i32* @GL_FRONT
%24 = load i32, i32* @GL_DIFFUSE
%25 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%26 = call i32 @glMaterialfv(i32 %23, i32 %24, double* %25)
%27 = load i32, i32* @GL_FRONT
%28 = load i32, i32* @GL_DIFFUSE
%29 = getelementptr inbounds [4 x double], [4 x double]* %8, i64 0, i64 0
%30 = call i32 @glMaterialfv(i32 %27, i32 %28, double* %29)
%31 = call i32* (...) @gluNewQuadric()
store i32* %31, i32** %1
%32 = load i32*, i32** %1
%33 = load i32, i32* @GLU_FILL
%34 = call i32 @gluQuadricDrawStyle(i32* %32, i32 %33)
%35 = load i32*, i32** %1
%36 = load i32, i32* @GLU_SMOOTH
%37 = call i32 @gluQuadricNormals(i32* %35, i32 %36)
%38 = call i32 @glScaled(double 5.600000e+00, double 2.400000e+01, double 1.500000e+00)
%39 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}

LLVM IR (-O2):
@__const.myDrawBackWall2.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diff = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawBackWall2.diffPink = [4 x double] [double 0x3FEF5C28F5C28F5C, double 6.600000e-01, double 0x3FEE147AE147AE14, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_SHININESS = global i32 0
@GL_SPECULAR = global i32 0
@GL_DIFFUSE = global i32 0
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawBackWall2() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = bitcast [4 x double]* %1 to i8*
%5 = bitcast [4 x double]* %2 to i8*
%6 = bitcast [4 x double]* %3 to i8*
%7 = load i32, i32* @GL_FRONT
%8 = load i32, i32* @GL_SHININESS
%9 = tail call i32 @glMaterialf(i32 %7, i32 %8, i32 0)
%10 = load i32, i32* @GL_FRONT
%11 = load i32, i32* @GL_SPECULAR
%12 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%13 = call i32 @glMaterialfv(i32 %10, i32 %11, double* %12)
%14 = load i32, i32* @GL_FRONT
%15 = load i32, i32* @GL_DIFFUSE
%16 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%17 = call i32 @glMaterialfv(i32 %14, i32 %15, double* %16)
%18 = load i32, i32* @GL_FRONT
%19 = load i32, i32* @GL_DIFFUSE
%20 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%21 = call i32 @glMaterialfv(i32 %18, i32 %19, double* %20)
%22 = call i32* (...) @gluNewQuadric()
%23 = load i32, i32* @GLU_FILL
%24 = call i32 @gluQuadricDrawStyle(i32* %22, i32 %23)
%25 = load i32, i32* @GLU_SMOOTH
%26 = call i32 @gluQuadricNormals(i32* %22, i32 %25)
%27 = call i32 @glScaled(double 5.600000e+00, double 2.400000e+01, double 1.500000e+00)
%28 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}