#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_LIGHTING;
int /*<<< orphan*/ GL_QUADS;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor4f(double, double, double, double);
int /*<<< orphan*/ glDisable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glVertex3f(double, double, double);
void do_vlakje(void) {
  glColor4f(1.0, 1.0, 1.0, 1.0);
  glDisable(GL_LIGHTING);
  glPushMatrix();
  glTranslatef(-0.5, 0.0, -0.5);
  glBegin(GL_QUADS);
  glVertex3f(0.0, 0.0, 0.0);
  glVertex3f(8.0, 0.0, 0.0);
  glVertex3f(8.0, 0.0, 8.0);
  glVertex3f(0.0, 0.0, 8.0);
  glEnd();
  glPopMatrix();
  glEnable(GL_LIGHTING);
}


x86 assembly (clang, -O0):
<do_vlakje>:
push   %rbp
mov    %rsp,%rbp
movsd  0xe74(%rip),%xmm3
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1030 <glColor4f@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
call   10a0 <glDisable@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movsd  0xe41(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1090 <glTranslatef@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
call   10b0 <glBegin@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glVertex3f@plt>
movsd  0xe0a(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1040 <glVertex3f@plt>
movsd  0xdf7(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xde1(%rip),%xmm2
movaps %xmm1,%xmm0
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1060 <glEnd@plt>
mov    $0x0,%al
call   1070 <glPopMatrix@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
call   1050 <glEnable@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_vlakje>:
push   %rbx
movsd  0xe67(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
movaps %xmm0,%xmm3
call   1030 <glColor4f@plt>
mov    0x2e2a(%rip),%rbx
mov    (%rbx),%edi
call   10a0 <glDisable@plt>
xor    %eax,%eax
call   1080 <glPushMatrix@plt>
movsd  0xe44(%rip),%xmm0
xorps  %xmm1,%xmm1
movaps %xmm0,%xmm2
call   1090 <glTranslatef@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
call   10b0 <glBegin@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe1d(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xe07(%rip),%xmm0
movaps %xmm0,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xdf1(%rip),%xmm2
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1060 <glEnd@plt>
xor    %eax,%eax
call   1070 <glPopMatrix@plt>
mov    (%rbx),%edi
pop    %rbx
jmp    1050 <glEnable@plt>

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

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