#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*/ GL_QUADS;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glTexCoord2f(double, double);
int /*<<< orphan*/ glVertex3f(double, double, double);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glBegin(GL_QUADS);
  glTexCoord2f(0.0, 0.0);
  glVertex3f(-2.0, -1.0, 0.0);
  glTexCoord2f(0.0, 8.0);
  glVertex3f(-2.0, 1.0, 0.0);
  glTexCoord2f(8.0, 8.0);
  glVertex3f(2000.0, 1.0, -6000.0);
  glTexCoord2f(8.0, 0.0);
  glVertex3f(2000.0, -1.0, -6000.0);
  glEnd();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
mov    0x2e74(%rip),%rax
or     (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1070 <glTexCoord2f@plt>
movsd  0xe8c(%rip),%xmm0
movsd  0xe64(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm0,%xmm0
movsd  0xe61(%rip),%xmm1
call   1070 <glTexCoord2f@plt>
movsd  0xe64(%rip),%xmm0
movsd  0xe54(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe3c(%rip),%xmm1
movaps %xmm1,%xmm0
call   1070 <glTexCoord2f@plt>
movsd  0xe14(%rip),%xmm0
movsd  0xe2c(%rip),%xmm1
movsd  0xe14(%rip),%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe0f(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1070 <glTexCoord2f@plt>
movsd  0xde7(%rip),%xmm0
movsd  0xde7(%rip),%xmm1
movsd  0xde7(%rip),%xmm2
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e68(%rip),%rax
mov    0x2e79(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1070 <glTexCoord2f@plt>
movsd  0xe67(%rip),%xmm0
movsd  0xe67(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe5f(%rip),%xmm1
xorps  %xmm0,%xmm0
call   1070 <glTexCoord2f@plt>
movsd  0xe57(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xe34(%rip),%xmm0
call   1040 <glVertex3f@plt>
movsd  0xe37(%rip),%xmm0
movaps %xmm0,%xmm1
call   1070 <glTexCoord2f@plt>
movsd  0xe37(%rip),%xmm0
movsd  0xe37(%rip),%xmm2
movsd  0xe1f(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xe07(%rip),%xmm0
call   1070 <glTexCoord2f@plt>
movsd  0xe0a(%rip),%xmm0
movsd  0xdea(%rip),%xmm1
movsd  0xe02(%rip),%xmm2
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@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
@GL_QUADS = 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 = load i32, i32* @GL_QUADS
%6 = call i32 @glBegin(i32 %5)
%7 = call i32 @glTexCoord2f(double 0.000000e+00, double 0.000000e+00)
%8 = call i32 @glVertex3f(double -2.000000e+00, double -1.000000e+00, double 0.000000e+00)
%9 = call i32 @glTexCoord2f(double 0.000000e+00, double 8.000000e+00)
%10 = call i32 @glVertex3f(double -2.000000e+00, double 1.000000e+00, double 0.000000e+00)
%11 = call i32 @glTexCoord2f(double 8.000000e+00, double 8.000000e+00)
%12 = call i32 @glVertex3f(double 2.000000e+03, double 1.000000e+00, double -6.000000e+03)
%13 = call i32 @glTexCoord2f(double 8.000000e+00, double 0.000000e+00)
%14 = call i32 @glVertex3f(double 2.000000e+03, double -1.000000e+00, double -6.000000e+03)
%15 = call i32 (...) @glEnd()
%16 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_QUADS = 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 = load i32, i32* @GL_QUADS
%6 = tail call i32 @glBegin(i32 %5)
%7 = tail call i32 @glTexCoord2f(double 0.000000e+00, double 0.000000e+00)
%8 = tail call i32 @glVertex3f(double -2.000000e+00, double -1.000000e+00, double 0.000000e+00)
%9 = tail call i32 @glTexCoord2f(double 0.000000e+00, double 8.000000e+00)
%10 = tail call i32 @glVertex3f(double -2.000000e+00, double 1.000000e+00, double 0.000000e+00)
%11 = tail call i32 @glTexCoord2f(double 8.000000e+00, double 8.000000e+00)
%12 = tail call i32 @glVertex3f(double 2.000000e+03, double 1.000000e+00, double -6.000000e+03)
%13 = tail call i32 @glTexCoord2f(double 8.000000e+00, double 0.000000e+00)
%14 = tail call i32 @glVertex3f(double 2.000000e+03, double -1.000000e+00, double -6.000000e+03)
%15 = tail call i32 (...) @glEnd()
%16 = tail call i32 (...) @glFlush()
ret void
}