#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 myDrawFloorPlane(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};
  glMaterialf(GL_FRONT, GL_SHININESS, 0);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diff);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffGR);
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  glScaled(32.6, 1.0, 33.5);
  glutSolidCube(3.0);
}


x86 assembly (clang, -O0):
<myDrawFloorPlane>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%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    0x2d30(%rip),%rax
mov    (%rax),%edi
mov    0x2d3f(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    0x2d17(%rip),%rax
mov    (%rax),%edi
mov    0x2d1e(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
mov    0x2cd3(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
mov    0x2cb8(%rip),%rax
mov    (%rax),%esi
lea    -0xd0(%rbp),%rdx
call   1090 <glMaterialfv@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2c9c(%rip),%rax
mov    (%rax),%esi
call   1070 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2c9a(%rip),%rax
mov    (%rax),%esi
call   1080 <gluQuadricNormals@plt>
movsd  0xcc3(%rip),%xmm0
movsd  0xcc3(%rip),%xmm1
movsd  0xcc3(%rip),%xmm2
call   1060 <glScaled@plt>
movsd  0xc9e(%rip),%xmm0
call   1050 <glutSolidCube@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawFloorPlane>:
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.myDrawFloorPlane.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diff = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diffb = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diffBL = [4 x double] [double 1.000000e-01, double 2.000000e-01, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diffGR = [4 x double] [double 1.000000e-01, double 6.000000e-01, double 5.000000e-01, 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 @myDrawFloorPlane() {
%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 = bitcast [4 x double]* %2 to i8*
%9 = bitcast [4 x double]* %3 to i8*
%10 = bitcast [4 x double]* %4 to i8*
%11 = bitcast [4 x double]* %5 to i8*
%12 = bitcast [4 x double]* %6 to i8*
%13 = bitcast [4 x double]* %7 to i8*
%14 = load i32, i32* @GL_FRONT
%15 = load i32, i32* @GL_SHININESS
%16 = call i32 @glMaterialf(i32 %14, i32 %15, i32 0)
%17 = load i32, i32* @GL_FRONT
%18 = load i32, i32* @GL_SPECULAR
%19 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%20 = call i32 @glMaterialfv(i32 %17, i32 %18, double* %19)
%21 = load i32, i32* @GL_FRONT
%22 = load i32, i32* @GL_DIFFUSE
%23 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%24 = call i32 @glMaterialfv(i32 %21, i32 %22, double* %23)
%25 = load i32, i32* @GL_FRONT
%26 = load i32, i32* @GL_DIFFUSE
%27 = getelementptr inbounds [4 x double], [4 x double]* %7, i64 0, i64 0
%28 = call i32 @glMaterialfv(i32 %25, i32 %26, double* %27)
%29 = call i32* (...) @gluNewQuadric()
store i32* %29, i32** %1
%30 = load i32*, i32** %1
%31 = load i32, i32* @GLU_FILL
%32 = call i32 @gluQuadricDrawStyle(i32* %30, i32 %31)
%33 = load i32*, i32** %1
%34 = load i32, i32* @GLU_SMOOTH
%35 = call i32 @gluQuadricNormals(i32* %33, i32 %34)
%36 = call i32 @glScaled(double 3.260000e+01, double 1.000000e+00, double 3.350000e+01)
%37 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}

LLVM IR (-O2):
@__const.myDrawFloorPlane.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diff = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawFloorPlane.diffGR = [4 x double] [double 1.000000e-01, double 6.000000e-01, double 5.000000e-01, 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 @myDrawFloorPlane() {
%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 3.260000e+01, double 1.000000e+00, double 3.350000e+01)
%28 = call i32 @glutSolidCube(double 3.000000e+00)
ret void
}