#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*/ glRotated(double, double, double, double);
int /*<<< orphan*/ glScaled(double, int, double);
int /*<<< orphan*/ glTranslated(double, double, double);
int /*<<< orphan*/ gluCylinder(int /*<<< orphan*/ *, double, double, double,
                               int, int);
int /*<<< orphan*/ *gluNewQuadric();
int /*<<< orphan*/ gluQuadricDrawStyle(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ gluQuadricNormals(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ gluSphere(int /*<<< orphan*/ *, double, int, int);
void myDrawLwrLeftLeg(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};
  glMaterialf(GL_FRONT, GL_SHININESS, 0);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffl);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffBL);
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  gluSphere(qobj, 1.30, 30, 30);
  glTranslated(0.0, 0.0, -3.2);
  gluCylinder(qobj, 1.00, 1.30, 3.2, 30, 30);
  gluSphere(qobj, 1.0, 30, 30);
  glTranslated(0.0, -0.5, -0.5);
  glRotated(90.0, 1.0, 0.0, 0.0);
  glScaled(2.6, 1, 4.5);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffb);
  gluSphere(qobj, 0.45, 30, 30);
}


x86 assembly (clang, -O0):
<myDrawLwrLeftLeg>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%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    0x2d38(%rip),%rax
mov    (%rax),%edi
mov    0x2d47(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edi
mov    0x2d26(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
mov    0x2cdb(%rip),%rax
mov    (%rax),%esi
lea    -0x90(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
mov    0x2cbd(%rip),%rax
mov    (%rax),%esi
lea    -0xb0(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ca1(%rip),%rax
mov    (%rax),%esi
call   1070 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2c9f(%rip),%rax
mov    (%rax),%esi
call   1090 <gluQuadricNormals@plt>
mov    -0x8(%rbp),%rdi
movsd  0xcec(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1050 <gluSphere@plt>
xorps  %xmm1,%xmm1
movsd  0xce5(%rip),%xmm2
movaps %xmm1,%xmm0
call   10a0 <glTranslated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xcb1(%rip),%xmm0
movsd  0xcb9(%rip),%xmm1
movsd  0xcb9(%rip),%xmm2
mov    $0x1e,%edx
mov    %edx,%esi
call   1080 <gluCylinder@plt>
mov    -0x8(%rbp),%rdi
movsd  0xc89(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1050 <gluSphere@plt>
xorps  %xmm0,%xmm0
movsd  0xc7a(%rip),%xmm2
movaps %xmm2,%xmm1
call   10a0 <glTranslated@plt>
movsd  0xc5a(%rip),%xmm0
movsd  0xc5a(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10c0 <glRotated@plt>
movsd  0xc2f(%rip),%xmm0
mov    $0x1,%edi
movsd  0xc2a(%rip),%xmm1
call   1060 <glScaled@plt>
mov    0x2be6(%rip),%rax
mov    (%rax),%edi
mov    0x2bbd(%rip),%rax
mov    (%rax),%esi
lea    -0x70(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    -0x8(%rbp),%rdi
movsd  0xbee(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1050 <gluSphere@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawLwrLeftLeg>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
movaps 0xead(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe91(%rip),%xmm1
movaps %xmm1,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm1,0x40(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe8f(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe97(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2dd4(%rip),%r14
mov    (%r14),%edi
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    (%r14),%edi
mov    0x2dc7(%rip),%rax
mov    (%rax),%esi
lea    0x60(%rsp),%rdx
call   10b0 <glMaterialfv@plt>
mov    (%r14),%edi
mov    0x2d81(%rip),%r15
mov    (%r15),%esi
lea    0x20(%rsp),%rdx
call   10b0 <glMaterialfv@plt>
mov    (%r14),%edi
mov    (%r15),%esi
mov    %rsp,%rdx
call   10b0 <glMaterialfv@plt>
xor    %eax,%eax
call   1040 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2d5d(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1070 <gluQuadricDrawStyle@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1090 <gluQuadricNormals@plt>
movsd  0xd7a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1050 <gluSphere@plt>
movsd  0xd68(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   10a0 <glTranslated@plt>
movsd  0xd5d(%rip),%xmm0
movsd  0xd5d(%rip),%xmm2
mov    %rbx,%rdi
movsd  0xd3a(%rip),%xmm1
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1080 <gluCylinder@plt>
mov    %rbx,%rdi
movsd  0xd30(%rip),%xmm0
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1050 <gluSphere@plt>
movsd  0xd29(%rip),%xmm1
xorps  %xmm0,%xmm0
movaps %xmm1,%xmm2
call   10a0 <glTranslated@plt>
movsd  0xd1e(%rip),%xmm0
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xcf8(%rip),%xmm1
call   10c0 <glRotated@plt>
movsd  0xd0b(%rip),%xmm0
movsd  0xd0b(%rip),%xmm1
mov    $0x1,%edi
call   1060 <glScaled@plt>
mov    (%r14),%edi
mov    (%r15),%esi
lea    0x40(%rsp),%rdx
call   10b0 <glMaterialfv@plt>
movsd  0xcf1(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1050 <gluSphere@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.myDrawLwrLeftLeg.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diff = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diffb = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diffBL = [4 x double] [double 1.000000e-01, double 2.000000e-01, double 1.000000e+00, 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 @myDrawLwrLeftLeg() {
%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 = bitcast [4 x double]* %2 to i8*
%8 = bitcast [4 x double]* %3 to i8*
%9 = bitcast [4 x double]* %4 to i8*
%10 = bitcast [4 x double]* %5 to i8*
%11 = bitcast [4 x double]* %6 to i8*
%12 = load i32, i32* @GL_FRONT
%13 = load i32, i32* @GL_SHININESS
%14 = call i32 @glMaterialf(i32 %12, i32 %13, i32 0)
%15 = load i32, i32* @GL_FRONT
%16 = load i32, i32* @GL_SPECULAR
%17 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%18 = call i32 @glMaterialfv(i32 %15, i32 %16, double* %17)
%19 = load i32, i32* @GL_FRONT
%20 = load i32, i32* @GL_DIFFUSE
%21 = getelementptr inbounds [4 x double], [4 x double]* %5, 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]* %6, i64 0, i64 0
%26 = call i32 @glMaterialfv(i32 %23, i32 %24, double* %25)
%27 = call i32* (...) @gluNewQuadric()
store i32* %27, i32** %1
%28 = load i32*, i32** %1
%29 = load i32, i32* @GLU_FILL
%30 = call i32 @gluQuadricDrawStyle(i32* %28, i32 %29)
%31 = load i32*, i32** %1
%32 = load i32, i32* @GLU_SMOOTH
%33 = call i32 @gluQuadricNormals(i32* %31, i32 %32)
%34 = load i32*, i32** %1
%35 = call i32 @gluSphere(i32* %34, double 1.300000e+00, i32 30, i32 30)
%36 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double -3.200000e+00)
%37 = load i32*, i32** %1
%38 = call i32 @gluCylinder(i32* %37, double 1.000000e+00, double 1.300000e+00, double 3.200000e+00, i32 30, i32 30)
%39 = load i32*, i32** %1
%40 = call i32 @gluSphere(i32* %39, double 1.000000e+00, i32 30, i32 30)
%41 = call i32 @glTranslated(double 0.000000e+00, double -5.000000e-01, double -5.000000e-01)
%42 = call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%43 = call i32 @glScaled(double 2.600000e+00, i32 1, double 4.500000e+00)
%44 = load i32, i32* @GL_FRONT
%45 = load i32, i32* @GL_DIFFUSE
%46 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%47 = call i32 @glMaterialfv(i32 %44, i32 %45, double* %46)
%48 = load i32*, i32** %1
%49 = call i32 @gluSphere(i32* %48, double 4.500000e-01, i32 30, i32 30)
ret void
}

LLVM IR (-O2):
@__const.myDrawLwrLeftLeg.diffb = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diffl = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawLwrLeftLeg.diffBL = [4 x double] [double 1.000000e-01, double 2.000000e-01, double 1.000000e+00, 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 @myDrawLwrLeftLeg() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = alloca [4 x double]
%5 = bitcast [4 x double]* %1 to i8*
%6 = bitcast [4 x double]* %2 to i8*
%7 = bitcast [4 x double]* %3 to i8*
%8 = bitcast [4 x double]* %4 to i8*
%9 = load i32, i32* @GL_FRONT
%10 = load i32, i32* @GL_SHININESS
%11 = tail call i32 @glMaterialf(i32 %9, i32 %10, i32 0)
%12 = load i32, i32* @GL_FRONT
%13 = load i32, i32* @GL_SPECULAR
%14 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%15 = call i32 @glMaterialfv(i32 %12, i32 %13, double* %14)
%16 = load i32, i32* @GL_FRONT
%17 = load i32, i32* @GL_DIFFUSE
%18 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%19 = call i32 @glMaterialfv(i32 %16, i32 %17, double* %18)
%20 = load i32, i32* @GL_FRONT
%21 = load i32, i32* @GL_DIFFUSE
%22 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%23 = call i32 @glMaterialfv(i32 %20, i32 %21, double* %22)
%24 = call i32* (...) @gluNewQuadric()
%25 = load i32, i32* @GLU_FILL
%26 = call i32 @gluQuadricDrawStyle(i32* %24, i32 %25)
%27 = load i32, i32* @GLU_SMOOTH
%28 = call i32 @gluQuadricNormals(i32* %24, i32 %27)
%29 = call i32 @gluSphere(i32* %24, double 1.300000e+00, i32 30, i32 30)
%30 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double -3.200000e+00)
%31 = call i32 @gluCylinder(i32* %24, double 1.000000e+00, double 1.300000e+00, double 3.200000e+00, i32 30, i32 30)
%32 = call i32 @gluSphere(i32* %24, double 1.000000e+00, i32 30, i32 30)
%33 = call i32 @glTranslated(double 0.000000e+00, double -5.000000e-01, double -5.000000e-01)
%34 = call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%35 = call i32 @glScaled(double 2.600000e+00, i32 1, double 4.500000e+00)
%36 = load i32, i32* @GL_FRONT
%37 = load i32, i32* @GL_DIFFUSE
%38 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%39 = call i32 @glMaterialfv(i32 %36, i32 %37, double* %38)
%40 = call i32 @gluSphere(i32* %24, double 4.500000e-01, i32 30, i32 30)
ret void
}