#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 centerWallTower() {
  int ztranslate = 1.0;
  glPushMatrix();
  glColor3f(1.0, 0.7, 0.0);
  glTranslatef(0.0, 0.0, ztranslate);
  glRotatef(-90., 1.0, 0.0, 0.0);
  gluCylinder(gluNewQuadric(), 0.5, 0.45, 1.5, 32, 32);
  glPopMatrix();
  glPushMatrix();
  glColor3f(0.65, 0.0, 0.0);
  glTranslatef(0, 1.5, ztranslate);
  glRotatef(-90., 1.0, 0.0, 0.0);
  glutSolidCone(0.7, 0.5, 20, 16);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<centerWallTower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe72(%rip),%xmm0
movsd  0xe5a(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
mov    -0x4(%rbp),%edi
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1090 <glTranslatef@plt>
mov    $0xffffffa6,%edi
movsd  0xe47(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glRotatef@plt>
mov    $0x0,%al
call   1040 <gluNewQuadric@plt>
mov    %eax,%edi
movsd  0xe23(%rip),%xmm0
movsd  0xe3b(%rip),%xmm1
movsd  0xe23(%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  0xe09(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    -0x4(%rbp),%edi
xorps  %xmm0,%xmm0
movsd  0xde8(%rip),%xmm1
call   1090 <glTranslatef@plt>
mov    $0xffffffa6,%edi
movsd  0xdce(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glRotatef@plt>
movsd  0xdab(%rip),%xmm0
movsd  0xdab(%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):
<centerWallTower>:
push   %rax
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe70(%rip),%xmm0
movsd  0xe70(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x1,%edi
call   1090 <glTranslatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0xffffffa6,%edi
movsd  0xe3d(%rip),%xmm0
call   10a0 <glRotatef@plt>
xor    %eax,%eax
call   1040 <gluNewQuadric@plt>
movsd  0xe39(%rip),%xmm0
movsd  0xe39(%rip),%xmm1
movsd  0xe39(%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  0xe1a(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
xorps  %xmm0,%xmm0
movsd  0xdfc(%rip),%xmm1
mov    $0x1,%edi
call   1090 <glTranslatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0xffffffa6,%edi
movsd  0xdbf(%rip),%xmm0
call   10a0 <glRotatef@plt>
movsd  0xdba(%rip),%xmm0
movsd  0xdba(%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 @centerWallTower() {
%1 = alloca i32
store i32 1, 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 0.000000e+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 5.000000e-01, double 4.500000e-01, double 1.500000e+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 0.000000e+00, double 1.500000e+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 0x3FE6666666666666, double 5.000000e-01, i32 20, i32 16)
%16 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @centerWallTower() {
%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 0.000000e+00, double 0.000000e+00, i32 1)
%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 5.000000e-01, double 4.500000e-01, double 1.500000e+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 0.000000e+00, double 1.500000e+00, i32 1)
%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 0x3FE6666666666666, double 5.000000e-01, i32 20, i32 16)
%13 = tail call i32 (...) @glPopMatrix()
ret void
}