#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*/ 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 myDrawUppRightArm(void) {
  GLUquadricObj *qobj;
  GLfloat spec[] = {0.0, 0.0, 0.0, 1.0};
  GLfloat diffY[] = {1.0, 0.8, 0.0, 1.0};
  GLfloat diffB[] = {0.0, 0.0, 0.0, 0.0};
  GLfloat diffW[] = {1.0, 1.0, 1.0, 1.0};
  GLfloat diffBR[] = {0.4, 0.2, 0.1, 1.0};
  glMaterialf(GL_FRONT, GL_SHININESS, 0);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffW);
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  glRotated(90.0, 1.0, 0.0, 0.0);
  gluSphere(qobj, 0.8, 30, 30);
  glRotated(-30.0, 0.0, 1.0, 0.0);
  gluCylinder(qobj, 0.8, 0.8, 2.0, 22, 22);
  glTranslated(0.0, 0.0, 1.55);
  gluCylinder(qobj, 0.8, 1.0, 1.4, 22, 22);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffY);
  glTranslated(0.0, 0.0, 1.4);
  gluCylinder(qobj, 0.7, 0.7, 1.4, 22, 22);
  glTranslated(0.0, 0.0, 1.3);
  gluSphere(qobj, 0.7, 30, 30);
}


x86 assembly (clang, -O0):
<myDrawUppRightArm>:
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)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    0xe76(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xe70(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xe6a(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe67(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe64(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe5e(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xe58(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe52(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
mov    0x2d63(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
mov    0x2d42(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2d20(%rip),%rax
mov    (%rax),%edi
mov    0x2cf7(%rip),%rax
mov    (%rax),%esi
lea    -0x90(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2cdb(%rip),%rax
mov    (%rax),%esi
call   1070 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2cd9(%rip),%rax
mov    (%rax),%esi
call   1090 <gluQuadricNormals@plt>
movsd  0xd3a(%rip),%xmm0
movsd  0xd12(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10c0 <glRotated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xcf3(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1060 <gluSphere@plt>
movsd  0xcff(%rip),%xmm0
xorps  %xmm3,%xmm3
movsd  0xcdc(%rip),%xmm2
movaps %xmm3,%xmm1
call   10c0 <glRotated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xcc0(%rip),%xmm1
movsd  0xcd0(%rip),%xmm2
mov    $0x16,%edx
movaps %xmm1,%xmm0
mov    %edx,%esi
call   1080 <gluCylinder@plt>
xorps  %xmm1,%xmm1
movsd  0xcae(%rip),%xmm2
movaps %xmm1,%xmm0
call   10a0 <glTranslated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xc8a(%rip),%xmm0
movsd  0xc8a(%rip),%xmm1
movsd  0xc72(%rip),%xmm2
mov    $0x16,%edx
mov    %edx,%esi
call   1080 <gluCylinder@plt>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
mov    0x2bfe(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
xorps  %xmm1,%xmm1
movsd  0xc40(%rip),%xmm2
movaps %xmm1,%xmm0
call   10a0 <glTranslated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xc1c(%rip),%xmm1
movsd  0xc24(%rip),%xmm2
mov    $0x16,%edx
movaps %xmm1,%xmm0
mov    %edx,%esi
call   1080 <gluCylinder@plt>
xorps  %xmm1,%xmm1
movsd  0xc02(%rip),%xmm2
movaps %xmm1,%xmm0
call   10a0 <glTranslated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xbe6(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1060 <gluSphere@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawUppRightArm>:
push   %r15
push   %r14
push   %rbx
sub    $0x60,%rsp
movaps 0xec0(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2df1(%rip),%r14
mov    (%r14),%edi
mov    0x2dff(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <glMaterialf@plt>
mov    (%r14),%edi
mov    0x2de4(%rip),%rax
mov    (%rax),%esi
lea    0x40(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%r14),%edi
mov    0x2d9e(%rip),%r15
mov    (%r15),%esi
mov    %rsp,%rdx
call   10a0 <glMaterialfv@plt>
xor    %eax,%eax
call   1040 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2d8a(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1060 <gluQuadricDrawStyle@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1080 <gluQuadricNormals@plt>
movsd  0xda7(%rip),%xmm0
movsd  0xda7(%rip),%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   10b0 <glRotated@plt>
movsd  0xd9c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1050 <gluSphere@plt>
movsd  0xd8a(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
movsd  0xd6c(%rip),%xmm2
call   10b0 <glRotated@plt>
movsd  0xd77(%rip),%xmm2
mov    %rbx,%rdi
movsd  0xd5c(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x16,%esi
mov    $0x16,%edx
call   1070 <gluCylinder@plt>
movsd  0xd5a(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1090 <glTranslated@plt>
movsd  0xd4f(%rip),%xmm2
mov    %rbx,%rdi
movsd  0xd24(%rip),%xmm0
movsd  0xd14(%rip),%xmm1
mov    $0x16,%esi
mov    $0x16,%edx
call   1070 <gluCylinder@plt>
mov    (%r14),%edi
mov    (%r15),%esi
lea    0x20(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd0f(%rip),%xmm2
call   1090 <glTranslated@plt>
movsd  0xd0a(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movsd  0xcf4(%rip),%xmm2
mov    $0x16,%esi
mov    $0x16,%edx
call   1070 <gluCylinder@plt>
movsd  0xced(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1090 <glTranslated@plt>
mov    %rbx,%rdi
movsd  0xccf(%rip),%xmm0
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1050 <gluSphere@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.myDrawUppRightArm.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawUppRightArm.diffY = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawUppRightArm.diffW = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.myDrawUppRightArm.diffBR = [4 x double] [double 4.000000e-01, double 2.000000e-01, double 1.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 @myDrawUppRightArm() {
%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 = call i32* (...) @gluNewQuadric()
store i32* %23, i32** %1
%24 = load i32*, i32** %1
%25 = load i32, i32* @GLU_FILL
%26 = call i32 @gluQuadricDrawStyle(i32* %24, i32 %25)
%27 = load i32*, i32** %1
%28 = load i32, i32* @GLU_SMOOTH
%29 = call i32 @gluQuadricNormals(i32* %27, i32 %28)
%30 = call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%31 = load i32*, i32** %1
%32 = call i32 @gluSphere(i32* %31, double 8.000000e-01, i32 30, i32 30)
%33 = call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%34 = load i32*, i32** %1
%35 = call i32 @gluCylinder(i32* %34, double 8.000000e-01, double 8.000000e-01, double 2.000000e+00, i32 22, i32 22)
%36 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.550000e+00)
%37 = load i32*, i32** %1
%38 = call i32 @gluCylinder(i32* %37, double 8.000000e-01, double 1.000000e+00, double 1.400000e+00, i32 22, i32 22)
%39 = load i32, i32* @GL_FRONT
%40 = load i32, i32* @GL_DIFFUSE
%41 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%42 = call i32 @glMaterialfv(i32 %39, i32 %40, double* %41)
%43 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.400000e+00)
%44 = load i32*, i32** %1
%45 = call i32 @gluCylinder(i32* %44, double 0x3FE6666666666666, double 0x3FE6666666666666, double 1.400000e+00, i32 22, i32 22)
%46 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.300000e+00)
%47 = load i32*, i32** %1
%48 = call i32 @gluSphere(i32* %47, double 0x3FE6666666666666, i32 30, i32 30)
ret void
}

LLVM IR (-O2):
@__const.myDrawUppRightArm.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawUppRightArm.diffY = [4 x double] [double 1.000000e+00, double 8.000000e-01, double 0.000000e+00, double 1.000000e+00]
@__const.myDrawUppRightArm.diffW = [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_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 @myDrawUppRightArm() {
%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]* %3, i64 0, i64 0
%17 = call i32 @glMaterialfv(i32 %14, i32 %15, double* %16)
%18 = call i32* (...) @gluNewQuadric()
%19 = load i32, i32* @GLU_FILL
%20 = call i32 @gluQuadricDrawStyle(i32* %18, i32 %19)
%21 = load i32, i32* @GLU_SMOOTH
%22 = call i32 @gluQuadricNormals(i32* %18, i32 %21)
%23 = call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%24 = call i32 @gluSphere(i32* %18, double 8.000000e-01, i32 30, i32 30)
%25 = call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%26 = call i32 @gluCylinder(i32* %18, double 8.000000e-01, double 8.000000e-01, double 2.000000e+00, i32 22, i32 22)
%27 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.550000e+00)
%28 = call i32 @gluCylinder(i32* %18, double 8.000000e-01, double 1.000000e+00, double 1.400000e+00, i32 22, i32 22)
%29 = load i32, i32* @GL_FRONT
%30 = load i32, i32* @GL_DIFFUSE
%31 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%32 = call i32 @glMaterialfv(i32 %29, i32 %30, double* %31)
%33 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.400000e+00)
%34 = call i32 @gluCylinder(i32* %18, double 0x3FE6666666666666, double 0x3FE6666666666666, double 1.400000e+00, i32 22, i32 22)
%35 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double 1.300000e+00)
%36 = call i32 @gluSphere(i32* %18, double 0x3FE6666666666666, i32 30, i32 30)
ret void
}