#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 */

/* Variables and functions */
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, int);
int /*<<< orphan*/ gluCylinder(int /*<<< orphan*/, double, double, double, int,
                               int);
int /*<<< orphan*/ gluNewQuadric();
int /*<<< orphan*/ glutSolidCone(double, double, int, int);
void rightWallTower() {
  int ztranslate = -5;
  glPushMatrix();
  glColor3f(1.0, 0.7, 0.0);
  glTranslatef(1.7, 0.0, ztranslate);
  glRotatef(-90., 1.0, 0.0, 0.0);
  gluCylinder(gluNewQuadric(), 0.45, 0.40, 1.35, 32, 32);
  glPopMatrix();
  glPushMatrix();
  glColor3f(0.65, 0.0, 0.0);
  glTranslatef(1.7, 1.35, ztranslate);
  glRotatef(-90., 1.0, 0.0, 0.0);
  glutSolidCone(0.60, 0.40, 20, 16);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<rightWallTower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xfffffffb,-0x4(%rbp)
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe72(%rip),%xmm0
movsd  0xe92(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
mov    -0x4(%rbp),%edi
movsd  0xe5f(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1090 <glTranslatef@plt>
mov    $0xffffffa6,%edi
movsd  0xe42(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glRotatef@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %eax,%edi
movsd  0xe46(%rip),%xmm0
movsd  0xe16(%rip),%xmm1
movsd  0xe26(%rip),%xmm2
mov    $0x20,%edx
mov    %edx,%esi
call   1080 <gluCylinder@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe0c(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    -0x4(%rbp),%edi
movsd  0xde6(%rip),%xmm0
movsd  0xde6(%rip),%xmm1
call   1090 <glTranslatef@plt>
mov    $0xffffffa6,%edi
movsd  0xdc4(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glRotatef@plt>
movsd  0xda1(%rip),%xmm0
movsd  0xda1(%rip),%xmm1
mov    $0x14,%edi
mov    $0x10,%esi
call   1030 <glutSolidCone@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rightWallTower>:
push   %rax
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe70(%rip),%xmm0
movsd  0xe70(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
movsd  0xe68(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0xfffffffb,%edi
call   1090 <glTranslatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0xffffffa6,%edi
movsd  0xe38(%rip),%xmm0
call   10a0 <glRotatef@plt>
xor    %eax,%eax
call   1040 <gluNewQuadric@plt>
movsd  0xe3c(%rip),%xmm0
movsd  0xe3c(%rip),%xmm1
movsd  0xe3c(%rip),%xmm2
mov    %eax,%edi
mov    $0x20,%esi
mov    $0x20,%edx
call   1080 <gluCylinder@plt>
xor    %eax,%eax
call   1050 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe1d(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
movsd  0xdea(%rip),%xmm0
movsd  0xdfa(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1090 <glTranslatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0xffffffa6,%edi
movsd  0xdb5(%rip),%xmm0
call   10a0 <glRotatef@plt>
movsd  0xde0(%rip),%xmm0
movsd  0xdc0(%rip),%xmm1
mov    $0x14,%edi
mov    $0x10,%esi
call   1030 <glutSolidCone@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glPopMatrix@plt>

LLVM IR (-O0):
define void @rightWallTower() {
%1 = alloca i32
store i32 -5, i32* %1
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%4 = load i32, i32* %1
%5 = call i32 @glTranslatef(double 1.700000e+00, double 0.000000e+00, i32 %4)
%6 = call i32 @glRotatef(i32 -90, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = call i32 (...) @gluNewQuadric()
%8 = call i32 @gluCylinder(i32 %7, double 4.500000e-01, double 4.000000e-01, double 1.350000e+00, i32 32, i32 32)
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glPushMatrix()
%11 = call i32 @glColor3f(double 6.500000e-01, double 0.000000e+00, double 0.000000e+00)
%12 = load i32, i32* %1
%13 = call i32 @glTranslatef(double 1.700000e+00, double 1.350000e+00, i32 %12)
%14 = call i32 @glRotatef(i32 -90, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%15 = call i32 @glutSolidCone(double 6.000000e-01, double 4.000000e-01, i32 20, i32 16)
%16 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @rightWallTower() {
%1 = tail call i32 (...) @glPushMatrix()
%2 = tail call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%3 = tail call i32 @glTranslatef(double 1.700000e+00, double 0.000000e+00, i32 -5)
%4 = tail call i32 @glRotatef(i32 -90, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = tail call i32 (...) @gluNewQuadric()
%6 = tail call i32 @gluCylinder(i32 %5, double 4.500000e-01, double 4.000000e-01, double 1.350000e+00, i32 32, i32 32)
%7 = tail call i32 (...) @glPopMatrix()
%8 = tail call i32 (...) @glPushMatrix()
%9 = tail call i32 @glColor3f(double 6.500000e-01, double 0.000000e+00, double 0.000000e+00)
%10 = tail call i32 @glTranslatef(double 1.700000e+00, double 1.350000e+00, i32 -5)
%11 = tail call i32 @glRotatef(i32 -90, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = tail call i32 @glutSolidCone(double 6.000000e-01, double 4.000000e-01, i32 20, i32 16)
%13 = tail call i32 (...) @glPopMatrix()
ret void
}