#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_PROJECTION;
int /*<<< orphan*/ glClearColor(double, double, double, double);
int /*<<< orphan*/ glColor3f(float, float, float);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glPointSize(double);
int /*<<< orphan*/ gluOrtho2D(double, double, double, double);
void myInit(void) {
  glClearColor(1.0, 1.0, 1.0, 0.0);
  glColor3f(1.0f, 0.4f, 0.7f);
  glPointSize(4.0);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluOrtho2D(0.0, 20.0, 0.0, 20.0);
}


x86 assembly (clang, -O0):
<myInit>:
push   %rbp
mov    %rsp,%rbp
movsd  0xea4(%rip),%xmm2
xorps  %xmm3,%xmm3
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glClearColor@plt>
movss  0xe96(%rip),%xmm0
movss  0xe92(%rip),%xmm1
movss  0xe8e(%rip),%xmm2
call   1060 <glColor3f@plt>
movsd  0xe69(%rip),%xmm0
call   1070 <glPointSize@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
xorps  %xmm2,%xmm2
movsd  0xe3c(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1080 <gluOrtho2D@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<myInit>:
push   %rax
movsd  0xe97(%rip),%xmm0
xorps  %xmm3,%xmm3
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glClearColor@plt>
movss  0xe99(%rip),%xmm0
movss  0xe95(%rip),%xmm1
movss  0xe91(%rip),%xmm2
call   1060 <glColor3f@plt>
movsd  0xe6c(%rip),%xmm0
call   1070 <glPointSize@plt>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movsd  0xe52(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm3
pop    %rax
jmp    1080 <gluOrtho2D@plt>

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
define void @myInit() {
%1 = call i32 @glClearColor(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%2 = call i32 @glColor3f(float 1.000000e+00, float 0x3FD99999A0000000, float 0x3FE6666660000000)
%3 = call i32 @glPointSize(double 4.000000e+00)
%4 = load i32, i32* @GL_PROJECTION
%5 = call i32 @glMatrixMode(i32 %4)
%6 = call i32 (...) @glLoadIdentity()
%7 = call i32 @gluOrtho2D(double 0.000000e+00, double 2.000000e+01, double 0.000000e+00, double 2.000000e+01)
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
define void @myInit() {
%1 = tail call i32 @glClearColor(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%2 = tail call i32 @glColor3f(float 1.000000e+00, float 0x3FD99999A0000000, float 0x3FE6666660000000)
%3 = tail call i32 @glPointSize(double 4.000000e+00)
%4 = load i32, i32* @GL_PROJECTION
%5 = tail call i32 @glMatrixMode(i32 %4)
%6 = tail call i32 (...) @glLoadIdentity()
%7 = tail call i32 @gluOrtho2D(double 0.000000e+00, double 2.000000e+01, double 0.000000e+00, double 2.000000e+01)
ret void
}