#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 GL_COLOR_BUFFER_BIT;
int GL_DEPTH_BUFFER_BIT;
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glIndexi(int);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(double, double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glutSolidCone(double, double, int, int);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glPushMatrix();
  glTranslatef(-1.0, -1.0, -1.0);
  glRotatef(-90.0, 1.0, 0.0, 0.0);
  glIndexi(16);
  glutSolidCone(1.0, 2.0, 10, 10);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0.0, -1.0, -2.25);
  glRotatef(-90.0, 1.0, 0.0, 0.0);
  glIndexi(16);
  glutSolidCone(1.0, 2.0, 10, 10);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(1.0, -1.0, -3.5);
  glRotatef(-90.0, 1.0, 0.0, 0.0);
  glIndexi(16);
  glutSolidCone(1.0, 2.0, 10, 10);
  glPopMatrix();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
mov    0x2e54(%rip),%rax
or     (%rax),%edi
call   1040 <glClear@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe6e(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1090 <glTranslatef@plt>
movsd  0xe53(%rip),%xmm0
movsd  0xe3b(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xe1e(%rip),%xmm0
movsd  0xe1e(%rip),%xmm1
mov    $0xa,%esi
mov    %esi,%edi
call   1030 <glutSolidCone@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
movsd  0xe09(%rip),%xmm1
movsd  0xe11(%rip),%xmm2
call   1090 <glTranslatef@plt>
movsd  0xdec(%rip),%xmm0
movsd  0xdd4(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xdb7(%rip),%xmm0
movsd  0xdb7(%rip),%xmm1
mov    $0xa,%esi
mov    %esi,%edi
call   1030 <glutSolidCone@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xd8d(%rip),%xmm0
movsd  0xd9d(%rip),%xmm1
movsd  0xd9d(%rip),%xmm2
call   1090 <glTranslatef@plt>
movsd  0xd80(%rip),%xmm0
movsd  0xd68(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xd4b(%rip),%xmm0
movsd  0xd4b(%rip),%xmm1
mov    $0xa,%esi
mov    %esi,%edi
call   1030 <glutSolidCone@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e50(%rip),%rax
mov    0x2e59(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1040 <glClear@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe59(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1090 <glTranslatef@plt>
movsd  0xe4e(%rip),%xmm0
movsd  0xe4e(%rip),%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xe39(%rip),%xmm1
movsd  0xe29(%rip),%xmm0
mov    $0xa,%edi
mov    $0xa,%esi
call   1030 <glutSolidCone@plt>
xor    %eax,%eax
call   1050 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe14(%rip),%xmm2
xorps  %xmm0,%xmm0
movsd  0xde9(%rip),%xmm1
call   1090 <glTranslatef@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xdde(%rip),%xmm0
movsd  0xdde(%rip),%xmm1
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xdc7(%rip),%xmm0
movsd  0xdc7(%rip),%xmm1
mov    $0xa,%edi
mov    $0xa,%esi
call   1030 <glutSolidCone@plt>
xor    %eax,%eax
call   1050 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xdb2(%rip),%xmm2
movsd  0xd92(%rip),%xmm0
movsd  0xd7a(%rip),%xmm1
call   1090 <glTranslatef@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xd6f(%rip),%xmm0
movsd  0xd6f(%rip),%xmm1
call   10a0 <glRotatef@plt>
mov    $0x10,%edi
call   1080 <glIndexi@plt>
movsd  0xd58(%rip),%xmm0
movsd  0xd58(%rip),%xmm1
mov    $0xa,%edi
mov    $0xa,%esi
call   1030 <glutSolidCone@plt>
xor    %eax,%eax
call   1050 <glPopMatrix@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %1, %2
%4 = call i32 @glClear(i32 %3)
%5 = call i32 (...) @glPushMatrix()
%6 = call i32 @glTranslatef(double -1.000000e+00, double -1.000000e+00, double -1.000000e+00)
%7 = call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%8 = call i32 @glIndexi(i32 16)
%9 = call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%10 = call i32 (...) @glPopMatrix()
%11 = call i32 (...) @glPushMatrix()
%12 = call i32 @glTranslatef(double 0.000000e+00, double -1.000000e+00, double -2.250000e+00)
%13 = call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%14 = call i32 @glIndexi(i32 16)
%15 = call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%16 = call i32 (...) @glPopMatrix()
%17 = call i32 (...) @glPushMatrix()
%18 = call i32 @glTranslatef(double 1.000000e+00, double -1.000000e+00, double -3.500000e+00)
%19 = call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%20 = call i32 @glIndexi(i32 16)
%21 = call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%22 = call i32 (...) @glPopMatrix()
%23 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %2, %1
%4 = tail call i32 @glClear(i32 %3)
%5 = tail call i32 (...) @glPushMatrix()
%6 = tail call i32 @glTranslatef(double -1.000000e+00, double -1.000000e+00, double -1.000000e+00)
%7 = tail call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%8 = tail call i32 @glIndexi(i32 16)
%9 = tail call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%10 = tail call i32 (...) @glPopMatrix()
%11 = tail call i32 (...) @glPushMatrix()
%12 = tail call i32 @glTranslatef(double 0.000000e+00, double -1.000000e+00, double -2.250000e+00)
%13 = tail call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%14 = tail call i32 @glIndexi(i32 16)
%15 = tail call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%16 = tail call i32 (...) @glPopMatrix()
%17 = tail call i32 (...) @glPushMatrix()
%18 = tail call i32 @glTranslatef(double 1.000000e+00, double -1.000000e+00, double -3.500000e+00)
%19 = tail call i32 @glRotatef(double -9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%20 = tail call i32 @glIndexi(i32 16)
%21 = tail call i32 @glutSolidCone(double 1.000000e+00, double 2.000000e+00, i32 10, i32 10)
%22 = tail call i32 (...) @glPopMatrix()
%23 = tail call i32 (...) @glFlush()
ret void
}