#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(float, float, float);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glScalef(float, float, float);
int /*<<< orphan*/ gluLookAt(float, float, float, float, float, float, float,
                             float, float);
int /*<<< orphan*/ glutWireCube(float);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(1.0f, 1.0f, 1.0f);
  glLoadIdentity();
  gluLookAt(0.0f, 0.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
  glScalef(1.0f, 2.0f, 1.0f);
  glutWireCube(1.0f);
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
call   1040 <glClear@plt>
movss  0xe72(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
xorps  %xmm8,%xmm8
movss  0xe5c(%rip),%xmm2
movss  0xe4c(%rip),%xmm7
movaps %xmm8,%xmm0
movaps %xmm8,%xmm1
movaps %xmm8,%xmm3
movaps %xmm8,%xmm4
movaps %xmm8,%xmm5
movaps %xmm8,%xmm6
movss  %xmm8,(%rsp)
call   1030 <gluLookAt@plt>
movss  0xe21(%rip),%xmm2
movss  0xe1d(%rip),%xmm1
movaps %xmm2,%xmm0
call   1070 <glScalef@plt>
movss  0xe09(%rip),%xmm0
call   1090 <glutWireCube@plt>
mov    $0x0,%al
call   1080 <glFlush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1040 <glClear@plt>
movss  0xe79(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glColor3f@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movl   $0x0,(%rsp)
movss  0xe5c(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
xorps  %xmm6,%xmm6
movss  0xe3e(%rip),%xmm7
call   1030 <gluLookAt@plt>
movss  0xe39(%rip),%xmm1
movss  0xe29(%rip),%xmm0
movaps %xmm0,%xmm2
call   1070 <glScalef@plt>
movss  0xe19(%rip),%xmm0
call   1090 <glutWireCube@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <glFlush@plt>

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

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