#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 float GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_AMBIENT_AND_DIFFUSE;
int /*<<< orphan*/ GL_FRONT_AND_BACK;
int /*<<< orphan*/ GL_LIGHTING;
int /*<<< orphan*/ GL_POLYGON_STIPPLE;
int /*<<< orphan*/ glDisable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                float const *);
int /*<<< orphan*/ glutSolidSphere(double, int, int);
void DrawObject1(void) {
  static const GLfloat yellow[4] = {1.0F, 1.0F, 0.0F, 1.0F};
  glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, yellow);
  glEnable(GL_POLYGON_STIPPLE);
  glutSolidSphere(0.95, 20, 40);
  glDisable(GL_POLYGON_STIPPLE);
  glDisable(GL_LIGHTING);
}


x86 assembly (clang, -O0):
<DrawObject1>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
mov    0x2e7c(%rip),%rax
mov    (%rax),%esi
lea    0xeb3(%rip),%rdx
call   1060 <glMaterialfv@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
call   1030 <glEnable@plt>
movsd  0xe88(%rip),%xmm0
mov    $0x14,%edi
mov    $0x28,%esi
call   1040 <glutSolidSphere@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
call   1050 <glDisable@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edi
call   1050 <glDisable@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawObject1>:
push   %rbx
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
mov    0x2e7f(%rip),%rax
mov    (%rax),%esi
lea    0xeb6(%rip),%rdx
call   1060 <glMaterialfv@plt>
mov    0x2e92(%rip),%rbx
mov    (%rbx),%edi
call   1030 <glEnable@plt>
movsd  0xe8b(%rip),%xmm0
mov    $0x14,%edi
mov    $0x28,%esi
call   1040 <glutSolidSphere@plt>
mov    (%rbx),%edi
call   1050 <glDisable@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
pop    %rbx
jmp    1050 <glDisable@plt>

LLVM IR (-O0):
@DrawObject1.yellow = internal constant [4 x float] [float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00]
@GL_FRONT_AND_BACK = global i32 0
@GL_AMBIENT_AND_DIFFUSE = global i32 0
@GL_POLYGON_STIPPLE = global i32 0
@GL_LIGHTING = global i32 0
define void @DrawObject1() {
%1 = load i32, i32* @GL_FRONT_AND_BACK
%2 = load i32, i32* @GL_AMBIENT_AND_DIFFUSE
%3 = call i32 @glMaterialfv(i32 %1, i32 %2, float* getelementptr inbounds ([4 x float], [4 x float]* @DrawObject1.yellow, i64 0, i64 0))
%4 = load i32, i32* @GL_POLYGON_STIPPLE
%5 = call i32 @glEnable(i32 %4)
%6 = call i32 @glutSolidSphere(double 0x3FEE666666666666, i32 20, i32 40)
%7 = load i32, i32* @GL_POLYGON_STIPPLE
%8 = call i32 @glDisable(i32 %7)
%9 = load i32, i32* @GL_LIGHTING
%10 = call i32 @glDisable(i32 %9)
ret void
}

LLVM IR (-O2):
@DrawObject1.yellow = internal constant [4 x float] [float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00]
@GL_FRONT_AND_BACK = global i32 0
@GL_AMBIENT_AND_DIFFUSE = global i32 0
@GL_POLYGON_STIPPLE = global i32 0
@GL_LIGHTING = global i32 0
define void @DrawObject1() {
%1 = load i32, i32* @GL_FRONT_AND_BACK
%2 = load i32, i32* @GL_AMBIENT_AND_DIFFUSE
%3 = tail call i32 @glMaterialfv(i32 %1, i32 %2, float* getelementptr inbounds ([4 x float], [4 x float]* @DrawObject1.yellow, i64 0, i64 0))
%4 = load i32, i32* @GL_POLYGON_STIPPLE
%5 = tail call i32 @glEnable(i32 %4)
%6 = tail call i32 @glutSolidSphere(double 0x3FEE666666666666, i32 20, i32 40)
%7 = load i32, i32* @GL_POLYGON_STIPPLE
%8 = tail call i32 @glDisable(i32 %7)
%9 = load i32, i32* @GL_LIGHTING
%10 = tail call i32 @glDisable(i32 %9)
ret void
}