#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_QUADS;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor4f(double, double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glScalef(float, float, float);
int /*<<< orphan*/ glTexCoord2f(int, int);
int /*<<< orphan*/ glVertex3f(float, float, float);
void draw_runway(void) {
  glColor4f(.1, .1, .1, 1.0);
  glPushMatrix();
  glScalef(.1f, 1.f, 1.f);
  glBegin(GL_QUADS);
  glTexCoord2f(0, 0);
  glVertex3f(-1.f, 0.f, -1.f);
  glTexCoord2f(0, 1);
  glVertex3f(-1.f, 0.f, 1.f);
  glTexCoord2f(1, 1);
  glVertex3f(1.f, 0.f, 1.f);
  glTexCoord2f(1, 0);
  glVertex3f(1.f, 0.f, -1.f);
  glEnd();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<draw_runway>:
push   %rbp
mov    %rsp,%rbp
movsd  0xe84(%rip),%xmm2
movsd  0xe84(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1030 <glColor4f@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movss  0xe5a(%rip),%xmm0
movss  0xe4a(%rip),%xmm2
movaps %xmm2,%xmm1
call   1070 <glScalef@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
call   10a0 <glBegin@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1090 <glTexCoord2f@plt>
movss  0xe27(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1090 <glTexCoord2f@plt>
movss  0xe08(%rip),%xmm0
xorps  %xmm1,%xmm1
movss  0xdf9(%rip),%xmm2
call   1040 <glVertex3f@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1090 <glTexCoord2f@plt>
movss  0xde0(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1090 <glTexCoord2f@plt>
movss  0xdc1(%rip),%xmm0
xorps  %xmm1,%xmm1
movss  0xdba(%rip),%xmm2
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    $0x0,%al
call   1060 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_runway>:
push   %rax
movsd  0xe77(%rip),%xmm0
movsd  0xe77(%rip),%xmm3
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1030 <glColor4f@plt>
xor    %eax,%eax
call   1080 <glPushMatrix@plt>
movss  0xe65(%rip),%xmm0
movss  0xe61(%rip),%xmm1
movaps %xmm1,%xmm2
call   1070 <glScalef@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
call   10a0 <glBegin@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1090 <glTexCoord2f@plt>
movss  0xe3e(%rip),%xmm0
xorps  %xmm1,%xmm1
movaps %xmm0,%xmm2
call   1040 <glVertex3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1090 <glTexCoord2f@plt>
xorps  %xmm1,%xmm1
movss  0xe1c(%rip),%xmm0
movss  0xe10(%rip),%xmm2
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <glTexCoord2f@plt>
xorps  %xmm1,%xmm1
movss  0xdf1(%rip),%xmm0
movaps %xmm0,%xmm2
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1090 <glTexCoord2f@plt>
xorps  %xmm1,%xmm1
movss  0xdd2(%rip),%xmm0
movss  0xdce(%rip),%xmm2
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glPopMatrix@plt>

LLVM IR (-O0):
@GL_QUADS = global i32 0
define void @draw_runway() {
%1 = call i32 @glColor4f(double 1.000000e-01, double 1.000000e-01, double 1.000000e-01, double 1.000000e+00)
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glScalef(float 0x3FB99999A0000000, float 1.000000e+00, float 1.000000e+00)
%4 = load i32, i32* @GL_QUADS
%5 = call i32 @glBegin(i32 %4)
%6 = call i32 @glTexCoord2f(i32 0, i32 0)
%7 = call i32 @glVertex3f(float -1.000000e+00, float 0.000000e+00, float -1.000000e+00)
%8 = call i32 @glTexCoord2f(i32 0, i32 1)
%9 = call i32 @glVertex3f(float -1.000000e+00, float 0.000000e+00, float 1.000000e+00)
%10 = call i32 @glTexCoord2f(i32 1, i32 1)
%11 = call i32 @glVertex3f(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
%12 = call i32 @glTexCoord2f(i32 1, i32 0)
%13 = call i32 @glVertex3f(float 1.000000e+00, float 0.000000e+00, float -1.000000e+00)
%14 = call i32 (...) @glEnd()
%15 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
@GL_QUADS = global i32 0
define void @draw_runway() {
%1 = tail call i32 @glColor4f(double 1.000000e-01, double 1.000000e-01, double 1.000000e-01, double 1.000000e+00)
%2 = tail call i32 (...) @glPushMatrix()
%3 = tail call i32 @glScalef(float 0x3FB99999A0000000, float 1.000000e+00, float 1.000000e+00)
%4 = load i32, i32* @GL_QUADS
%5 = tail call i32 @glBegin(i32 %4)
%6 = tail call i32 @glTexCoord2f(i32 0, i32 0)
%7 = tail call i32 @glVertex3f(float -1.000000e+00, float 0.000000e+00, float -1.000000e+00)
%8 = tail call i32 @glTexCoord2f(i32 0, i32 1)
%9 = tail call i32 @glVertex3f(float -1.000000e+00, float 0.000000e+00, float 1.000000e+00)
%10 = tail call i32 @glTexCoord2f(i32 1, i32 1)
%11 = tail call i32 @glVertex3f(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
%12 = tail call i32 @glTexCoord2f(i32 1, i32 0)
%13 = tail call i32 @glVertex3f(float 1.000000e+00, float 0.000000e+00, float -1.000000e+00)
%14 = tail call i32 (...) @glEnd()
%15 = tail call i32 (...) @glPopMatrix()
ret void
}