#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*/ renderRedTeapot(double, double, double);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  renderRedTeapot(-4.0, -0.5, -1.0);
  renderRedTeapot(-2.0, -0.5, -2.0);
  renderRedTeapot(0.0, -0.5, -3.0);
  renderRedTeapot(2.0, -0.5, -4.0);
  renderRedTeapot(4.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  0xecd(%rip),%xmm0
movsd  0xead(%rip),%xmm1
movsd  0xed5(%rip),%xmm2
call   1050 <renderRedTeapot@plt>
movsd  0xec0(%rip),%xmm2
movsd  0xe90(%rip),%xmm1
movaps %xmm2,%xmm0
call   1050 <renderRedTeapot@plt>
xorps  %xmm0,%xmm0
movsd  0xe7d(%rip),%xmm1
movsd  0xe95(%rip),%xmm2
call   1050 <renderRedTeapot@plt>
movsd  0xe78(%rip),%xmm0
movsd  0xe60(%rip),%xmm1
movsd  0xe70(%rip),%xmm2
call   1050 <renderRedTeapot@plt>
movsd  0xe43(%rip),%xmm0
movsd  0xe43(%rip),%xmm1
movsd  0xe43(%rip),%xmm2
call   1050 <renderRedTeapot@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 <renderRedTeapot@plt>
movsd  0xeab(%rip),%xmm0
movsd  0xe93(%rip),%xmm1
movaps %xmm0,%xmm2
call   1050 <renderRedTeapot@plt>
movsd  0xe9b(%rip),%xmm2
xorps  %xmm0,%xmm0
movsd  0xe78(%rip),%xmm1
call   1050 <renderRedTeapot@plt>
movsd  0xe8b(%rip),%xmm0
movsd  0xe63(%rip),%xmm1
movsd  0xe53(%rip),%xmm2
call   1050 <renderRedTeapot@plt>
movsd  0xe76(%rip),%xmm0
movsd  0xe76(%rip),%xmm2
movsd  0xe3e(%rip),%xmm1
call   1050 <renderRedTeapot@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 @renderRedTeapot(double -4.000000e+00, double -5.000000e-01, double -1.000000e+00)
%6 = call i32 @renderRedTeapot(double -2.000000e+00, double -5.000000e-01, double -2.000000e+00)
%7 = call i32 @renderRedTeapot(double 0.000000e+00, double -5.000000e-01, double -3.000000e+00)
%8 = call i32 @renderRedTeapot(double 2.000000e+00, double -5.000000e-01, double -4.000000e+00)
%9 = call i32 @renderRedTeapot(double 4.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 @renderRedTeapot(double -4.000000e+00, double -5.000000e-01, double -1.000000e+00)
%6 = tail call i32 @renderRedTeapot(double -2.000000e+00, double -5.000000e-01, double -2.000000e+00)
%7 = tail call i32 @renderRedTeapot(double 0.000000e+00, double -5.000000e-01, double -3.000000e+00)
%8 = tail call i32 @renderRedTeapot(double 2.000000e+00, double -5.000000e-01, double -4.000000e+00)
%9 = tail call i32 @renderRedTeapot(double 4.000000e+00, double -5.000000e-01, double -5.000000e+00)
%10 = tail call i32 (...) @glFlush()
ret void
}