#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*/ drawstring(double, double, double, char *);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glutSwapBuffers();
int /*<<< orphan*/ select1();
void myDisplay(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(0.0, 0.0, 0.0);
  glColor3f(0.0, 0.0, 0.0);
  drawstring(3.5, 3.7, 0.0, "Menu");
  glColor3f(0.0, 0.0, 0.0);
  drawstring(3.5, 3.2, 0.0, "Press C for Cube");
  glColor3f(0.0, 0.0, 0.0);
  drawstring(3.5, 3.0, 0.0, "Press D for Dodecahedron");
  glColor3f(0.0, 0.0, 0.0);
  drawstring(3.5, 2.8, 0.0, "Press T for Teapot");
  select1();
  glutSwapBuffers();
}


x86 assembly (clang, -O0):
<myDisplay>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
movsd  0xe7a(%rip),%xmm0
movsd  0xe92(%rip),%xmm1
xorps  %xmm2,%xmm2
lea    0xe90(%rip),%rdi
call   1070 <drawstring@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
movsd  0xe4d(%rip),%xmm0
movsd  0xe5d(%rip),%xmm1
xorps  %xmm2,%xmm2
lea    0xe68(%rip),%rdi
call   1070 <drawstring@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
movsd  0xe20(%rip),%xmm0
movsd  0xe28(%rip),%xmm1
xorps  %xmm2,%xmm2
lea    0xe4c(%rip),%rdi
call   1070 <drawstring@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
movsd  0xdf3(%rip),%xmm0
movsd  0xdf3(%rip),%xmm1
xorps  %xmm2,%xmm2
lea    0xe38(%rip),%rdi
call   1070 <drawstring@plt>
mov    $0x0,%al
call   1040 <select1@plt>
mov    $0x0,%al
call   1050 <glutSwapBuffers@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDisplay>:
push   %rax
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
lea    0xea6(%rip),%rdi
movsd  0xe76(%rip),%xmm0
movsd  0xe76(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1070 <drawstring@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
lea    0xe7e(%rip),%rdi
movsd  0xe59(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xe3e(%rip),%xmm0
call   1070 <drawstring@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
lea    0xe62(%rip),%rdi
movsd  0xe34(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xe11(%rip),%xmm0
call   1070 <drawstring@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glColor3f@plt>
lea    0xe4e(%rip),%rdi
movsd  0xe0f(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xde4(%rip),%xmm0
call   1070 <drawstring@plt>
xor    %eax,%eax
call   1040 <select1@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glutSwapBuffers@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [5 x i8] c"Menu\00"
@.str.1 = [17 x i8] c"Press C for Cube\00"
@.str.2 = [25 x i8] c"Press D for Dodecahedron\00"
@.str.3 = [19 x i8] c"Press T for Teapot\00"
define void @myDisplay() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = call i32 @drawstring(double 3.500000e+00, double 3.700000e+00, double 0.000000e+00, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = call i32 @drawstring(double 3.500000e+00, double 3.200000e+00, double 0.000000e+00, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%9 = call i32 @drawstring(double 3.500000e+00, double 3.000000e+00, double 0.000000e+00, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = call i32 @drawstring(double 3.500000e+00, double 2.800000e+00, double 0.000000e+00, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (...) @select1()
%13 = call i32 (...) @glutSwapBuffers()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [5 x i8] c"Menu\00"
@.str.1 = [17 x i8] c"Press C for Cube\00"
@.str.2 = [25 x i8] c"Press D for Dodecahedron\00"
@.str.3 = [19 x i8] c"Press T for Teapot\00"
define void @myDisplay() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = tail call i32 @drawstring(double 3.500000e+00, double 3.700000e+00, double 0.000000e+00, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = tail call i32 @drawstring(double 3.500000e+00, double 3.200000e+00, double 0.000000e+00, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%9 = tail call i32 @drawstring(double 3.500000e+00, double 3.000000e+00, double 0.000000e+00, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = tail call i32 @drawstring(double 3.500000e+00, double 2.800000e+00, double 0.000000e+00, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 (...) @select1()
%13 = tail call i32 (...) @glutSwapBuffers()
ret void
}