#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_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glScalef(double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glutWireCube(double);
void cube_display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(1.0, 1.0, 1.0);
  glLoadIdentity();
  glTranslatef(0.0, 0.0, -5.0);
  glScalef(1.0, 2.0, 1.0);
  glutWireCube(1.0);
  glFlush();
}


x86 assembly (clang, -O0):
<cube_display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe76(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    $0x0,%al
call   1040 <glLoadIdentity@plt>
xorps  %xmm1,%xmm1
movsd  0xe69(%rip),%xmm2
movaps %xmm1,%xmm0
call   1080 <glTranslatef@plt>
movsd  0xe49(%rip),%xmm2
movsd  0xe49(%rip),%xmm1
movaps %xmm2,%xmm0
call   1060 <glScalef@plt>
movsd  0xe31(%rip),%xmm0
call   1090 <glutWireCube@plt>
mov    $0x0,%al
call   1070 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cube_display>:
push   %rax
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe79(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
xor    %eax,%eax
call   1040 <glLoadIdentity@plt>
movsd  0xe67(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1080 <glTranslatef@plt>
movsd  0xe5c(%rip),%xmm1
movsd  0xe44(%rip),%xmm0
movaps %xmm0,%xmm2
call   1060 <glScalef@plt>
movsd  0xe34(%rip),%xmm0
call   1090 <glutWireCube@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @cube_display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%4 = call i32 (...) @glLoadIdentity()
%5 = call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double -5.000000e+00)
%6 = call i32 @glScalef(double 1.000000e+00, double 2.000000e+00, double 1.000000e+00)
%7 = call i32 @glutWireCube(double 1.000000e+00)
%8 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @cube_display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%4 = tail call i32 (...) @glLoadIdentity()
%5 = tail call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double -5.000000e+00)
%6 = tail call i32 @glScalef(double 1.000000e+00, double 2.000000e+00, double 1.000000e+00)
%7 = tail call i32 @glutWireCube(double 1.000000e+00)
%8 = tail call i32 (...) @glFlush()
ret void
}