#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 */
typedef double GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_AMBIENT;
int GL_COLOR_BUFFER_BIT;
int GL_DEPTH_BUFFER_BIT;
int /*<<< orphan*/ GL_DIFFUSE;
int /*<<< orphan*/ GL_EMISSION;
int /*<<< orphan*/ GL_FRONT;
int /*<<< orphan*/ GL_SHININESS;
int /*<<< orphan*/ GL_SPECULAR;
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                double *);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glutSolidSphere(double, int, int);
void display() {
  GLfloat no_mat[] = {0.0, 0.0, 0.0, 1.0};
  GLfloat mat_ambient[] = {0.7, 0.7, 0.7, 1.0};
  GLfloat mat_ambient_color[] = {0.8, 0.8, 0.2, 1.0};
  GLfloat mat_diffuse[] = {0.1, 0.5, 0.8, 1.0};
  GLfloat mat_specular[] = {1.0, 1.0, 1.0, 1.0};
  GLfloat no_shininess[] = {0.0};
  GLfloat low_shininess[] = {5.0};
  GLfloat high_shininess[] = {100.0};
  GLfloat mat_emission[] = {0.3, 0.2, 0.2, 0.0};
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glColor3f(0.5, 0.5, 0.5);
  glPushMatrix();
  glTranslatef(-3.75, 3.0, 0.0);
  glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
  glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
  glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
  glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
  glutSolidSphere(1.0, 16, 16);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(-1.25, 3.0, 0.0);
  glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
  glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
  glMaterialfv(GL_FRONT, GL_SHININESS, low_shininess);
  glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
  glutSolidSphere(1.0, 16, 16);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(1.25, 3.0, 0.0);
  glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
  glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
  glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess);
  glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
  glutSolidSphere(1.0, 16, 16);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(3.75, 3.0, 0.0);
  glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
  glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
  glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
  glMaterialfv(GL_FRONT, GL_EMISSION, mat_emission);
  glutSolidSphere(1.0, 16, 16);
  glPopMatrix();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    0xeae(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe99(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe96(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe90(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe8d(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe8a(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe84(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe81(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe7e(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe78(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xe72(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xe6c(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    -0xa8(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1040 <memset@plt>
mov    0xd9b(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xd95(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xe37(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xe31(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0xe2b(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe25(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
mov    0x2cce(%rip),%rax
or     (%rax),%edi
call   1030 <glClear@plt>
movsd  0xd27(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movsd  0xd05(%rip),%xmm0
movsd  0xce5(%rip),%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
mov    0x2c96(%rip),%rax
mov    (%rax),%edi
mov    0x2cad(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2c7b(%rip),%rax
mov    (%rax),%edi
mov    0x2c52(%rip),%rax
mov    (%rax),%esi
lea    -0x80(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2c60(%rip),%rax
mov    (%rax),%edi
mov    0x2c67(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
mov    0x2c54(%rip),%rax
mov    (%rax),%esi
lea    -0xa8(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
mov    0x2c0e(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
movsd  0xc3b(%rip),%xmm0
mov    $0x10,%esi
mov    %esi,%edi
call   1090 <glutSolidSphere@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movsd  0xc39(%rip),%xmm0
movsd  0xc21(%rip),%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
mov    0x2be9(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2bb7(%rip),%rax
mov    (%rax),%edi
mov    0x2b8e(%rip),%rax
mov    (%rax),%esi
lea    -0x80(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2b9c(%rip),%rax
mov    (%rax),%edi
mov    0x2ba3(%rip),%rax
mov    (%rax),%esi
lea    -0xa0(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2b7e(%rip),%rax
mov    (%rax),%edi
mov    0x2b8d(%rip),%rax
mov    (%rax),%esi
lea    -0xb0(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2b60(%rip),%rax
mov    (%rax),%edi
mov    0x2b47(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
movsd  0xb74(%rip),%xmm0
mov    $0x10,%esi
mov    %esi,%edi
call   1090 <glutSolidSphere@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movsd  0xb6a(%rip),%xmm0
movsd  0xb5a(%rip),%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
mov    0x2b0b(%rip),%rax
mov    (%rax),%edi
mov    0x2b22(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2af0(%rip),%rax
mov    (%rax),%edi
mov    0x2ac7(%rip),%rax
mov    (%rax),%esi
lea    -0x80(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
mov    0x2adc(%rip),%rax
mov    (%rax),%esi
lea    -0xa0(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2ab7(%rip),%rax
mov    (%rax),%edi
mov    0x2ac6(%rip),%rax
mov    (%rax),%esi
lea    -0xb8(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2a99(%rip),%rax
mov    (%rax),%edi
mov    0x2a80(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
movsd  0xaad(%rip),%xmm0
mov    $0x10,%esi
mov    %esi,%edi
call   1090 <glutSolidSphere@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
movsd  0xa93(%rip),%xmm0
movsd  0xa93(%rip),%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
mov    0x2a44(%rip),%rax
mov    (%rax),%edi
mov    0x2a5b(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2a29(%rip),%rax
mov    (%rax),%edi
mov    0x2a00(%rip),%rax
mov    (%rax),%esi
lea    -0x80(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2a0e(%rip),%rax
mov    (%rax),%edi
mov    0x2a15(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x29f3(%rip),%rax
mov    (%rax),%edi
mov    0x2a02(%rip),%rax
mov    (%rax),%esi
lea    -0xa8(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x29d5(%rip),%rax
mov    (%rax),%edi
mov    0x29bc(%rip),%rax
mov    (%rax),%esi
lea    -0xe0(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
movsd  0x9e6(%rip),%xmm0
mov    $0x10,%esi
mov    %esi,%edi
call   1090 <glutSolidSphere@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glFlush@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
movaps 0xeb8(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe99(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x8(%rsp)
movabs $0x4014000000000000,%rax
mov    %rax,0x18(%rsp)
movabs $0x4059000000000000,%rax
mov    %rax,0x10(%rsp)
movaps 0xea3(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe87(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
mov    0x2d83(%rip),%rax
mov    0x2d9c(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1030 <glClear@plt>
movsd  0xdc3(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xdb1(%rip),%xmm0
movsd  0xdb1(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1090 <glTranslatef@plt>
mov    0x2d62(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d79(%rip),%r12
mov    (%r12),%esi
lea    0x80(%rsp),%r13
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2d1c(%rip),%r15
mov    (%r15),%esi
lea    0x20(%rsp),%rbp
mov    %rbp,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2d33(%rip),%rax
mov    (%rax),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2d28(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2ceb(%rip),%rax
mov    (%rax),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
movsd  0xd31(%rip),%xmm0
mov    $0x10,%edi
mov    $0x10,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xd14(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xcf9(%rip),%xmm1
call   1090 <glTranslatef@plt>
mov    (%rbx),%edi
mov    (%r12),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r15),%esi
mov    %rbp,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2ca0(%rip),%rbp
mov    0x0(%rbp),%esi
lea    0x40(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2c92(%rip),%r15
mov    (%r15),%esi
lea    0x18(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2c54(%rip),%r14
mov    (%r14),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
movsd  0xc99(%rip),%xmm0
mov    $0x10,%edi
mov    $0x10,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xc84(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xc61(%rip),%xmm1
call   1090 <glTranslatef@plt>
mov    (%rbx),%edi
mov    (%r12),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2be5(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x0(%rbp),%esi
lea    0x40(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r15),%esi
lea    0x10(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r14),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
movsd  0xc0e(%rip),%xmm0
mov    $0x10,%edi
mov    $0x10,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xc01(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xbd6(%rip),%xmm1
call   1090 <glTranslatef@plt>
mov    (%rbx),%edi
mov    (%r12),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2b5a(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x0(%rbp),%esi
mov    %r13,%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r15),%esi
lea    0x8(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    (%r14),%esi
lea    0x60(%rsp),%rdx
call   10a0 <glMaterialfv@plt>
movsd  0xb83(%rip),%xmm0
mov    $0x10,%edi
mov    $0x10,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1060 <glFlush@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.display.no_mat = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.display.mat_ambient = [4 x double] [double 0x3FE6666666666666, double 0x3FE6666666666666, double 0x3FE6666666666666, double 1.000000e+00]
@__const.display.mat_ambient_color = [4 x double] [double 8.000000e-01, double 8.000000e-01, double 2.000000e-01, double 1.000000e+00]
@__const.display.mat_diffuse = [4 x double] [double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e+00]
@__const.display.mat_specular = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.display.low_shininess = [1 x double] [double 5.000000e+00]
@__const.display.high_shininess = [1 x double] [double 1.000000e+02]
@__const.display.mat_emission = [4 x double] [double 3.000000e-01, double 2.000000e-01, double 2.000000e-01, double 0.000000e+00]
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_FRONT = global i32 0
@GL_AMBIENT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GL_SHININESS = global i32 0
@GL_EMISSION = global i32 0
define void @display() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = alloca [4 x double]
%5 = alloca [4 x double]
%6 = alloca [1 x double]
%7 = alloca [1 x double]
%8 = alloca [1 x double]
%9 = alloca [4 x double]
%10 = bitcast [4 x double]* %1 to i8*
%11 = bitcast [4 x double]* %2 to i8*
%12 = bitcast [4 x double]* %3 to i8*
%13 = bitcast [4 x double]* %4 to i8*
%14 = bitcast [4 x double]* %5 to i8*
%15 = bitcast [1 x double]* %6 to i8*
%16 = bitcast [1 x double]* %7 to i8*
%17 = bitcast [1 x double]* %8 to i8*
%18 = bitcast [4 x double]* %9 to i8*
%19 = load i32, i32* @GL_COLOR_BUFFER_BIT
%20 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%21 = or i32 %19, %20
%22 = call i32 @glClear(i32 %21)
%23 = call i32 @glColor3f(double 5.000000e-01, double 5.000000e-01, double 5.000000e-01)
%24 = call i32 (...) @glPushMatrix()
%25 = call i32 @glTranslatef(double -3.750000e+00, double 3.000000e+00, double 0.000000e+00)
%26 = load i32, i32* @GL_FRONT
%27 = load i32, i32* @GL_AMBIENT
%28 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%29 = call i32 @glMaterialfv(i32 %26, i32 %27, double* %28)
%30 = load i32, i32* @GL_FRONT
%31 = load i32, i32* @GL_DIFFUSE
%32 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%33 = call i32 @glMaterialfv(i32 %30, i32 %31, double* %32)
%34 = load i32, i32* @GL_FRONT
%35 = load i32, i32* @GL_SPECULAR
%36 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%37 = call i32 @glMaterialfv(i32 %34, i32 %35, double* %36)
%38 = load i32, i32* @GL_FRONT
%39 = load i32, i32* @GL_SHININESS
%40 = getelementptr inbounds [1 x double], [1 x double]* %6, i64 0, i64 0
%41 = call i32 @glMaterialfv(i32 %38, i32 %39, double* %40)
%42 = load i32, i32* @GL_FRONT
%43 = load i32, i32* @GL_EMISSION
%44 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%45 = call i32 @glMaterialfv(i32 %42, i32 %43, double* %44)
%46 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%47 = call i32 (...) @glPopMatrix()
%48 = call i32 (...) @glPushMatrix()
%49 = call i32 @glTranslatef(double -1.250000e+00, double 3.000000e+00, double 0.000000e+00)
%50 = load i32, i32* @GL_FRONT
%51 = load i32, i32* @GL_AMBIENT
%52 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%53 = call i32 @glMaterialfv(i32 %50, i32 %51, double* %52)
%54 = load i32, i32* @GL_FRONT
%55 = load i32, i32* @GL_DIFFUSE
%56 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%57 = call i32 @glMaterialfv(i32 %54, i32 %55, double* %56)
%58 = load i32, i32* @GL_FRONT
%59 = load i32, i32* @GL_SPECULAR
%60 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 0
%61 = call i32 @glMaterialfv(i32 %58, i32 %59, double* %60)
%62 = load i32, i32* @GL_FRONT
%63 = load i32, i32* @GL_SHININESS
%64 = getelementptr inbounds [1 x double], [1 x double]* %7, i64 0, i64 0
%65 = call i32 @glMaterialfv(i32 %62, i32 %63, double* %64)
%66 = load i32, i32* @GL_FRONT
%67 = load i32, i32* @GL_EMISSION
%68 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%69 = call i32 @glMaterialfv(i32 %66, i32 %67, double* %68)
%70 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%71 = call i32 (...) @glPopMatrix()
%72 = call i32 (...) @glPushMatrix()
%73 = call i32 @glTranslatef(double 1.250000e+00, double 3.000000e+00, double 0.000000e+00)
%74 = load i32, i32* @GL_FRONT
%75 = load i32, i32* @GL_AMBIENT
%76 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%77 = call i32 @glMaterialfv(i32 %74, i32 %75, double* %76)
%78 = load i32, i32* @GL_FRONT
%79 = load i32, i32* @GL_DIFFUSE
%80 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%81 = call i32 @glMaterialfv(i32 %78, i32 %79, double* %80)
%82 = load i32, i32* @GL_FRONT
%83 = load i32, i32* @GL_SPECULAR
%84 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 0
%85 = call i32 @glMaterialfv(i32 %82, i32 %83, double* %84)
%86 = load i32, i32* @GL_FRONT
%87 = load i32, i32* @GL_SHININESS
%88 = getelementptr inbounds [1 x double], [1 x double]* %8, i64 0, i64 0
%89 = call i32 @glMaterialfv(i32 %86, i32 %87, double* %88)
%90 = load i32, i32* @GL_FRONT
%91 = load i32, i32* @GL_EMISSION
%92 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%93 = call i32 @glMaterialfv(i32 %90, i32 %91, double* %92)
%94 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%95 = call i32 (...) @glPopMatrix()
%96 = call i32 (...) @glPushMatrix()
%97 = call i32 @glTranslatef(double 3.750000e+00, double 3.000000e+00, double 0.000000e+00)
%98 = load i32, i32* @GL_FRONT
%99 = load i32, i32* @GL_AMBIENT
%100 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%101 = call i32 @glMaterialfv(i32 %98, i32 %99, double* %100)
%102 = load i32, i32* @GL_FRONT
%103 = load i32, i32* @GL_DIFFUSE
%104 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%105 = call i32 @glMaterialfv(i32 %102, i32 %103, double* %104)
%106 = load i32, i32* @GL_FRONT
%107 = load i32, i32* @GL_SPECULAR
%108 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%109 = call i32 @glMaterialfv(i32 %106, i32 %107, double* %108)
%110 = load i32, i32* @GL_FRONT
%111 = load i32, i32* @GL_SHININESS
%112 = getelementptr inbounds [1 x double], [1 x double]* %6, i64 0, i64 0
%113 = call i32 @glMaterialfv(i32 %110, i32 %111, double* %112)
%114 = load i32, i32* @GL_FRONT
%115 = load i32, i32* @GL_EMISSION
%116 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%117 = call i32 @glMaterialfv(i32 %114, i32 %115, double* %116)
%118 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%119 = call i32 (...) @glPopMatrix()
%120 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@__const.display.no_mat = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@__const.display.mat_diffuse = [4 x double] [double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e+00]
@__const.display.mat_specular = [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@__const.display.mat_emission = [4 x double] [double 3.000000e-01, double 2.000000e-01, double 2.000000e-01, double 0.000000e+00]
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_FRONT = global i32 0
@GL_AMBIENT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GL_SHININESS = global i32 0
@GL_EMISSION = global i32 0
define void @display() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = alloca [1 x double]
%5 = alloca [1 x double]
%6 = alloca [1 x double]
%7 = alloca [4 x double]
%8 = bitcast [4 x double]* %1 to i8*
%9 = bitcast [4 x double]* %2 to i8*
%10 = bitcast [4 x double]* %3 to i8*
%11 = bitcast [1 x double]* %4 to i8*
%12 = bitcast [1 x double]* %4 to i64*
store i64 0, i64* %12
%13 = bitcast [1 x double]* %5 to i8*
%14 = bitcast [1 x double]* %5 to i64*
store i64 4617315517961601024, i64* %14
%15 = bitcast [1 x double]* %6 to i8*
%16 = bitcast [1 x double]* %6 to i64*
store i64 4636737291354636288, i64* %16
%17 = bitcast [4 x double]* %7 to i8*
%18 = load i32, i32* @GL_COLOR_BUFFER_BIT
%19 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%20 = or i32 %19, %18
%21 = tail call i32 @glClear(i32 %20)
%22 = tail call i32 @glColor3f(double 5.000000e-01, double 5.000000e-01, double 5.000000e-01)
%23 = tail call i32 (...) @glPushMatrix()
%24 = tail call i32 @glTranslatef(double -3.750000e+00, double 3.000000e+00, double 0.000000e+00)
%25 = load i32, i32* @GL_FRONT
%26 = load i32, i32* @GL_AMBIENT
%27 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%28 = call i32 @glMaterialfv(i32 %25, i32 %26, double* %27)
%29 = load i32, i32* @GL_FRONT
%30 = load i32, i32* @GL_DIFFUSE
%31 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%32 = call i32 @glMaterialfv(i32 %29, i32 %30, double* %31)
%33 = load i32, i32* @GL_FRONT
%34 = load i32, i32* @GL_SPECULAR
%35 = call i32 @glMaterialfv(i32 %33, i32 %34, double* %27)
%36 = load i32, i32* @GL_FRONT
%37 = load i32, i32* @GL_SHININESS
%38 = getelementptr inbounds [1 x double], [1 x double]* %4, i64 0, i64 0
%39 = call i32 @glMaterialfv(i32 %36, i32 %37, double* %38)
%40 = load i32, i32* @GL_FRONT
%41 = load i32, i32* @GL_EMISSION
%42 = call i32 @glMaterialfv(i32 %40, i32 %41, double* %27)
%43 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%44 = call i32 (...) @glPopMatrix()
%45 = call i32 (...) @glPushMatrix()
%46 = call i32 @glTranslatef(double -1.250000e+00, double 3.000000e+00, double 0.000000e+00)
%47 = load i32, i32* @GL_FRONT
%48 = load i32, i32* @GL_AMBIENT
%49 = call i32 @glMaterialfv(i32 %47, i32 %48, double* %27)
%50 = load i32, i32* @GL_FRONT
%51 = load i32, i32* @GL_DIFFUSE
%52 = call i32 @glMaterialfv(i32 %50, i32 %51, double* %31)
%53 = load i32, i32* @GL_FRONT
%54 = load i32, i32* @GL_SPECULAR
%55 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%56 = call i32 @glMaterialfv(i32 %53, i32 %54, double* %55)
%57 = load i32, i32* @GL_FRONT
%58 = load i32, i32* @GL_SHININESS
%59 = getelementptr inbounds [1 x double], [1 x double]* %5, i64 0, i64 0
%60 = call i32 @glMaterialfv(i32 %57, i32 %58, double* %59)
%61 = load i32, i32* @GL_FRONT
%62 = load i32, i32* @GL_EMISSION
%63 = call i32 @glMaterialfv(i32 %61, i32 %62, double* %27)
%64 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%65 = call i32 (...) @glPopMatrix()
%66 = call i32 (...) @glPushMatrix()
%67 = call i32 @glTranslatef(double 1.250000e+00, double 3.000000e+00, double 0.000000e+00)
%68 = load i32, i32* @GL_FRONT
%69 = load i32, i32* @GL_AMBIENT
%70 = call i32 @glMaterialfv(i32 %68, i32 %69, double* %27)
%71 = load i32, i32* @GL_FRONT
%72 = load i32, i32* @GL_DIFFUSE
%73 = call i32 @glMaterialfv(i32 %71, i32 %72, double* %31)
%74 = load i32, i32* @GL_FRONT
%75 = load i32, i32* @GL_SPECULAR
%76 = call i32 @glMaterialfv(i32 %74, i32 %75, double* %55)
%77 = load i32, i32* @GL_FRONT
%78 = load i32, i32* @GL_SHININESS
%79 = getelementptr inbounds [1 x double], [1 x double]* %6, i64 0, i64 0
%80 = call i32 @glMaterialfv(i32 %77, i32 %78, double* %79)
%81 = load i32, i32* @GL_FRONT
%82 = load i32, i32* @GL_EMISSION
%83 = call i32 @glMaterialfv(i32 %81, i32 %82, double* %27)
%84 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%85 = call i32 (...) @glPopMatrix()
%86 = call i32 (...) @glPushMatrix()
%87 = call i32 @glTranslatef(double 3.750000e+00, double 3.000000e+00, double 0.000000e+00)
%88 = load i32, i32* @GL_FRONT
%89 = load i32, i32* @GL_AMBIENT
%90 = call i32 @glMaterialfv(i32 %88, i32 %89, double* %27)
%91 = load i32, i32* @GL_FRONT
%92 = load i32, i32* @GL_DIFFUSE
%93 = call i32 @glMaterialfv(i32 %91, i32 %92, double* %31)
%94 = load i32, i32* @GL_FRONT
%95 = load i32, i32* @GL_SPECULAR
%96 = call i32 @glMaterialfv(i32 %94, i32 %95, double* %27)
%97 = load i32, i32* @GL_FRONT
%98 = load i32, i32* @GL_SHININESS
%99 = call i32 @glMaterialfv(i32 %97, i32 %98, double* %38)
%100 = load i32, i32* @GL_FRONT
%101 = load i32, i32* @GL_EMISSION
%102 = getelementptr inbounds [4 x double], [4 x double]* %7, i64 0, i64 0
%103 = call i32 @glMaterialfv(i32 %100, i32 %101, double* %102)
%104 = call i32 @glutSolidSphere(double 1.000000e+00, i32 16, i32 16)
%105 = call i32 (...) @glPopMatrix()
%106 = call i32 (...) @glFlush()
ret void
}