#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*/ GL_POINTS;
int /*<<< orphan*/ GL_QUADS;
int /*<<< orphan*/ GL_TRIANGLES;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glPointSize(int);
int /*<<< orphan*/ glVertex3f(double, double, double);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(0.0, 0.0, 1.0);
  glPointSize(30);
  glBegin(GL_POINTS);
  glVertex3f(-0.5, 0.088, 0.0);
  glVertex3f(-0.5, -0.088, 0.0);
  glEnd();
  glBegin(GL_QUADS);
  glVertex3f(0.5, -0.177, 0.0);
  glColor3f(1.0, 0.0, 0.0);
  glVertex3f(0.5, 0.177, 0.0);
  glVertex3f(-0.5, 0.177, 0.0);
  glVertex3f(-0.5, -0.177, 0.0);
  glEnd();
  glBegin(GL_TRIANGLES);
  glVertex3f(0.5, -0.2, 0.0);
  glColor3f(0.0, 0.0, 1.0);
  glVertex3f(0.7, 0.0, 0.0);
  glVertex3f(0.5, 0.2, 0.0);
  glVertex3f(0.2, 0.177, 0.0);
  glColor3f(1.1, 1.0, 1.1);
  glVertex3f(0.0, 0.4, 0.0);
  glVertex3f(-0.2, 0.177, 0.0);
  glVertex3f(0.0, 0.4, 0.0);
  glVertex3f(-0.177, 0.177, 0.0);
  glVertex3f(-0.5, 0.4, 0.0);
  glVertex3f(0.2, -0.177, 0.0);
  glVertex3f(0.0, -0.4, 0.0);
  glVertex3f(-0.2, -0.177, 0.0);
  glVertex3f(0.0, -0.4, 0.0);
  glVertex3f(-0.177, -0.177, 0.0);
  glVertex3f(-0.5, -0.4, 0.0);
  glEnd();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm1,%xmm1
movsd  0xeb3(%rip),%xmm2
movaps %xmm1,%xmm0
call   1060 <glColor3f@plt>
mov    $0x1e,%edi
call   1080 <glPointSize@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xe4b(%rip),%xmm0
movsd  0xea3(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe33(%rip),%xmm0
movsd  0xe83(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xe4e(%rip),%xmm0
movsd  0xe0e(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe2e(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
movsd  0xe23(%rip),%xmm0
movsd  0xe03(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xdc3(%rip),%xmm0
movsd  0xdeb(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xdab(%rip),%xmm0
movsd  0xdb3(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    0x2d5d(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xdc6(%rip),%xmm0
movsd  0xd8e(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xda3(%rip),%xmm2
movaps %xmm1,%xmm0
call   1060 <glColor3f@plt>
movsd  0xda3(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1040 <glVertex3f@plt>
movsd  0xd88(%rip),%xmm0
movsd  0xd58(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xd48(%rip),%xmm0
movsd  0xd50(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xd48(%rip),%xmm2
movsd  0xd48(%rip),%xmm1
movaps %xmm2,%xmm0
call   1060 <glColor3f@plt>
xorps  %xmm2,%xmm2
movsd  0xd1d(%rip),%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
movsd  0xcfd(%rip),%xmm0
movsd  0xd0d(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xcf2(%rip),%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
movsd  0xcca(%rip),%xmm0
movsd  0xce2(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xca2(%rip),%xmm0
movsd  0xcc2(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xcaa(%rip),%xmm0
movsd  0xc92(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xc77(%rip),%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
movsd  0xc77(%rip),%xmm0
movsd  0xc67(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xc4c(%rip),%xmm1
movaps %xmm2,%xmm0
call   1040 <glVertex3f@plt>
movsd  0xc44(%rip),%xmm1
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm0
call   1040 <glVertex3f@plt>
movsd  0xc21(%rip),%xmm0
movsd  0xc21(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    $0x0,%al
call   1070 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe79(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1060 <glColor3f@plt>
mov    $0x1e,%edi
call   1080 <glPointSize@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xe56(%rip),%xmm0
movsd  0xe56(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xe4e(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xe33(%rip),%xmm0
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xe29(%rip),%xmm0
movsd  0xe29(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xdeb(%rip),%xmm0
call   1060 <glColor3f@plt>
movsd  0xe0e(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xdf3(%rip),%xmm0
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xdcb(%rip),%xmm0
movsd  0xdeb(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xdb3(%rip),%xmm0
movsd  0xdcb(%rip),%xmm1
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
call   1090 <glBegin@plt>
movsd  0xdb9(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xd96(%rip),%xmm0
call   1040 <glVertex3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd63(%rip),%xmm2
call   1060 <glColor3f@plt>
movsd  0xd96(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
movsd  0xd8b(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xd58(%rip),%xmm0
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xd70(%rip),%xmm0
movsd  0xd50(%rip),%xmm1
call   1040 <glVertex3f@plt>
movsd  0xd63(%rip),%xmm0
movsd  0xd0b(%rip),%xmm1
movaps %xmm0,%xmm2
call   1060 <glColor3f@plt>
movsd  0xd53(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xd1d(%rip),%xmm0
movsd  0xd0d(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xd22(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xce2(%rip),%xmm0
movsd  0xce2(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xcaa(%rip),%xmm0
movsd  0xcf2(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xcd2(%rip),%xmm0
movsd  0xcaa(%rip),%xmm1
call   1040 <glVertex3f@plt>
movsd  0xcd5(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xc97(%rip),%xmm0
movsd  0xc7f(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xca4(%rip),%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xc5c(%rip),%xmm0
movaps %xmm0,%xmm1
call   1040 <glVertex3f@plt>
xorps  %xmm2,%xmm2
movsd  0xc29(%rip),%xmm0
movsd  0xc79(%rip),%xmm1
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_POINTS = global i32 0
@GL_QUADS = global i32 0
@GL_TRIANGLES = global i32 0
define void @display() {
%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 1.000000e+00)
%4 = call i32 @glPointSize(i32 30)
%5 = load i32, i32* @GL_POINTS
%6 = call i32 @glBegin(i32 %5)
%7 = call i32 @glVertex3f(double -5.000000e-01, double 0x3FB6872B020C49BA, double 0.000000e+00)
%8 = call i32 @glVertex3f(double -5.000000e-01, double 0xBFB6872B020C49BA, double 0.000000e+00)
%9 = call i32 (...) @glEnd()
%10 = load i32, i32* @GL_QUADS
%11 = call i32 @glBegin(i32 %10)
%12 = call i32 @glVertex3f(double 5.000000e-01, double -1.770000e-01, double 0.000000e+00)
%13 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%14 = call i32 @glVertex3f(double 5.000000e-01, double 1.770000e-01, double 0.000000e+00)
%15 = call i32 @glVertex3f(double -5.000000e-01, double 1.770000e-01, double 0.000000e+00)
%16 = call i32 @glVertex3f(double -5.000000e-01, double -1.770000e-01, double 0.000000e+00)
%17 = call i32 (...) @glEnd()
%18 = load i32, i32* @GL_TRIANGLES
%19 = call i32 @glBegin(i32 %18)
%20 = call i32 @glVertex3f(double 5.000000e-01, double -2.000000e-01, double 0.000000e+00)
%21 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = call i32 @glVertex3f(double 0x3FE6666666666666, double 0.000000e+00, double 0.000000e+00)
%23 = call i32 @glVertex3f(double 5.000000e-01, double 2.000000e-01, double 0.000000e+00)
%24 = call i32 @glVertex3f(double 2.000000e-01, double 1.770000e-01, double 0.000000e+00)
%25 = call i32 @glColor3f(double 1.100000e+00, double 1.000000e+00, double 1.100000e+00)
%26 = call i32 @glVertex3f(double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%27 = call i32 @glVertex3f(double -2.000000e-01, double 1.770000e-01, double 0.000000e+00)
%28 = call i32 @glVertex3f(double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%29 = call i32 @glVertex3f(double -1.770000e-01, double 1.770000e-01, double 0.000000e+00)
%30 = call i32 @glVertex3f(double -5.000000e-01, double 4.000000e-01, double 0.000000e+00)
%31 = call i32 @glVertex3f(double 2.000000e-01, double -1.770000e-01, double 0.000000e+00)
%32 = call i32 @glVertex3f(double 0.000000e+00, double -4.000000e-01, double 0.000000e+00)
%33 = call i32 @glVertex3f(double -2.000000e-01, double -1.770000e-01, double 0.000000e+00)
%34 = call i32 @glVertex3f(double 0.000000e+00, double -4.000000e-01, double 0.000000e+00)
%35 = call i32 @glVertex3f(double -1.770000e-01, double -1.770000e-01, double 0.000000e+00)
%36 = call i32 @glVertex3f(double -5.000000e-01, double -4.000000e-01, double 0.000000e+00)
%37 = call i32 (...) @glEnd()
%38 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_POINTS = global i32 0
@GL_QUADS = global i32 0
@GL_TRIANGLES = 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(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%4 = tail call i32 @glPointSize(i32 30)
%5 = load i32, i32* @GL_POINTS
%6 = tail call i32 @glBegin(i32 %5)
%7 = tail call i32 @glVertex3f(double -5.000000e-01, double 0x3FB6872B020C49BA, double 0.000000e+00)
%8 = tail call i32 @glVertex3f(double -5.000000e-01, double 0xBFB6872B020C49BA, double 0.000000e+00)
%9 = tail call i32 (...) @glEnd()
%10 = load i32, i32* @GL_QUADS
%11 = tail call i32 @glBegin(i32 %10)
%12 = tail call i32 @glVertex3f(double 5.000000e-01, double -1.770000e-01, double 0.000000e+00)
%13 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%14 = tail call i32 @glVertex3f(double 5.000000e-01, double 1.770000e-01, double 0.000000e+00)
%15 = tail call i32 @glVertex3f(double -5.000000e-01, double 1.770000e-01, double 0.000000e+00)
%16 = tail call i32 @glVertex3f(double -5.000000e-01, double -1.770000e-01, double 0.000000e+00)
%17 = tail call i32 (...) @glEnd()
%18 = load i32, i32* @GL_TRIANGLES
%19 = tail call i32 @glBegin(i32 %18)
%20 = tail call i32 @glVertex3f(double 5.000000e-01, double -2.000000e-01, double 0.000000e+00)
%21 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = tail call i32 @glVertex3f(double 0x3FE6666666666666, double 0.000000e+00, double 0.000000e+00)
%23 = tail call i32 @glVertex3f(double 5.000000e-01, double 2.000000e-01, double 0.000000e+00)
%24 = tail call i32 @glVertex3f(double 2.000000e-01, double 1.770000e-01, double 0.000000e+00)
%25 = tail call i32 @glColor3f(double 1.100000e+00, double 1.000000e+00, double 1.100000e+00)
%26 = tail call i32 @glVertex3f(double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%27 = tail call i32 @glVertex3f(double -2.000000e-01, double 1.770000e-01, double 0.000000e+00)
%28 = tail call i32 @glVertex3f(double 0.000000e+00, double 4.000000e-01, double 0.000000e+00)
%29 = tail call i32 @glVertex3f(double -1.770000e-01, double 1.770000e-01, double 0.000000e+00)
%30 = tail call i32 @glVertex3f(double -5.000000e-01, double 4.000000e-01, double 0.000000e+00)
%31 = tail call i32 @glVertex3f(double 2.000000e-01, double -1.770000e-01, double 0.000000e+00)
%32 = tail call i32 @glVertex3f(double 0.000000e+00, double -4.000000e-01, double 0.000000e+00)
%33 = tail call i32 @glVertex3f(double -2.000000e-01, double -1.770000e-01, double 0.000000e+00)
%34 = tail call i32 @glVertex3f(double 0.000000e+00, double -4.000000e-01, double 0.000000e+00)
%35 = tail call i32 @glVertex3f(double -1.770000e-01, double -1.770000e-01, double 0.000000e+00)
%36 = tail call i32 @glVertex3f(double -5.000000e-01, double -4.000000e-01, double 0.000000e+00)
%37 = tail call i32 (...) @glEnd()
%38 = tail call i32 (...) @glFlush()
ret void
}