#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*/ GL_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glClearColor(int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glRotatef(int, double, double, double);
int /*<<< orphan*/ glutWireSphere(double, int, int);
void display(void) {
  glClearColor(0, 0, 0, 0);
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(1.0, 1.0, 1.0);
  glRotatef(30, 1.0, 0.0, 0.0);
  glRotatef(30, 0.0, 1.0, 0.0);
  glutWireSphere(0.5, 25, 24);
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <glClearColor@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe81(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    $0x1e,%edi
movsd  0xe69(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1080 <glRotatef@plt>
mov    $0x1e,%edi
xorps  %xmm2,%xmm2
movsd  0xe4e(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glRotatef@plt>
movsd  0xe36(%rip),%xmm0
mov    $0x19,%edi
mov    $0x18,%esi
call   1070 <glutWireSphere@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <glClearColor@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe7c(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x1e,%edi
movsd  0xe5e(%rip),%xmm0
call   1080 <glRotatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
mov    $0x1e,%edi
movsd  0xe46(%rip),%xmm1
call   1080 <glRotatef@plt>
movsd  0xe41(%rip),%xmm0
mov    $0x19,%edi
mov    $0x18,%esi
call   1070 <glutWireSphere@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = call i32 @glClearColor(i32 0, i32 0, i32 0, i32 0)
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = call i32 @glClear(i32 %2)
%4 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%5 = call i32 @glRotatef(i32 30, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%6 = call i32 @glRotatef(i32 30, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = call i32 @glutWireSphere(double 5.000000e-01, i32 25, i32 24)
%8 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = tail call i32 @glClearColor(i32 0, i32 0, i32 0, i32 0)
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = tail call i32 @glClear(i32 %2)
%4 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%5 = tail call i32 @glRotatef(i32 30, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%6 = tail call i32 @glRotatef(i32 30, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = tail call i32 @glutWireSphere(double 5.000000e-01, i32 25, i32 24)
%8 = tail call i32 (...) @glFlush()
ret void
}