#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*/ renderSphere(double, double, double);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  renderSphere(-2.0, -0.5, -1.0);
  renderSphere(-1.0, -0.5, -2.0);
  renderSphere(0.0, -0.5, -3.0);
  renderSphere(1.0, -0.5, -4.0);
  renderSphere(2.0, -0.5, -5.0);
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    0x2ea4(%rip),%rax
or     (%rax),%edi
call   1030 <glClear@plt>
movsd  0xee5(%rip),%xmm0
movsd  0xead(%rip),%xmm1
movsd  0xecd(%rip),%xmm2
call   1050 <renderSphere@plt>
movsd  0xec0(%rip),%xmm0
movsd  0xe90(%rip),%xmm1
movsd  0xeb8(%rip),%xmm2
call   1050 <renderSphere@plt>
xorps  %xmm0,%xmm0
movsd  0xe78(%rip),%xmm1
movsd  0xe90(%rip),%xmm2
call   1050 <renderSphere@plt>
movsd  0xe73(%rip),%xmm0
movsd  0xe5b(%rip),%xmm1
movsd  0xe6b(%rip),%xmm2
call   1050 <renderSphere@plt>
movsd  0xe3e(%rip),%xmm0
movsd  0xe3e(%rip),%xmm1
movsd  0xe3e(%rip),%xmm2
call   1050 <renderSphere@plt>
mov    $0x0,%al
call   1040 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2ea0(%rip),%rax
mov    0x2ea9(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1030 <glClear@plt>
movsd  0xeb0(%rip),%xmm0
movsd  0xeb0(%rip),%xmm1
movsd  0xeb0(%rip),%xmm2
call   1050 <renderSphere@plt>
movsd  0xea3(%rip),%xmm0
movsd  0xe93(%rip),%xmm1
movsd  0xe83(%rip),%xmm2
call   1050 <renderSphere@plt>
movsd  0xe8e(%rip),%xmm2
xorps  %xmm0,%xmm0
movsd  0xe73(%rip),%xmm1
call   1050 <renderSphere@plt>
movsd  0xe7e(%rip),%xmm0
movsd  0xe7e(%rip),%xmm2
movsd  0xe56(%rip),%xmm1
call   1050 <renderSphere@plt>
movsd  0xe71(%rip),%xmm0
movsd  0xe71(%rip),%xmm2
movsd  0xe39(%rip),%xmm1
call   1050 <renderSphere@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <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 @renderSphere(double -2.000000e+00, double -5.000000e-01, double -1.000000e+00)
%6 = call i32 @renderSphere(double -1.000000e+00, double -5.000000e-01, double -2.000000e+00)
%7 = call i32 @renderSphere(double 0.000000e+00, double -5.000000e-01, double -3.000000e+00)
%8 = call i32 @renderSphere(double 1.000000e+00, double -5.000000e-01, double -4.000000e+00)
%9 = call i32 @renderSphere(double 2.000000e+00, double -5.000000e-01, double -5.000000e+00)
%10 = 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 @renderSphere(double -2.000000e+00, double -5.000000e-01, double -1.000000e+00)
%6 = tail call i32 @renderSphere(double -1.000000e+00, double -5.000000e-01, double -2.000000e+00)
%7 = tail call i32 @renderSphere(double 0.000000e+00, double -5.000000e-01, double -3.000000e+00)
%8 = tail call i32 @renderSphere(double 1.000000e+00, double -5.000000e-01, double -4.000000e+00)
%9 = tail call i32 @renderSphere(double 2.000000e+00, double -5.000000e-01, double -5.000000e+00)
%10 = tail call i32 (...) @glFlush()
ret void
}