#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_PROJECTION;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glClearColor(int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glColor3d(double, double, int);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glPointSize(double);
int /*<<< orphan*/ gluOrtho2D(int /*<<< orphan*/, int, int /*<<< orphan*/, int);
void init(void) {
  glClearColor(0, 0, 0, 0);
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3d(255.0 / 255, 6.0 / 255, 0 / 255);
  glPointSize(10.0);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluOrtho2D(0, 1100, 0, 700);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1050 <glClearColor@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe71(%rip),%xmm0
movsd  0xe71(%rip),%xmm1
xor    %edi,%edi
call   1070 <glColor3d@plt>
movsd  0xe52(%rip),%xmm0
call   1080 <glPointSize@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
xor    %edx,%edx
mov    $0x44c,%esi
mov    $0x2bc,%ecx
mov    %edx,%edi
call   1090 <gluOrtho2D@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1050 <glClearColor@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xe6c(%rip),%xmm0
movsd  0xe6c(%rip),%xmm1
xor    %edi,%edi
call   1070 <glColor3d@plt>
movsd  0xe65(%rip),%xmm0
call   1080 <glPointSize@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
xor    %edi,%edi
mov    $0x44c,%esi
xor    %edx,%edx
mov    $0x2bc,%ecx
pop    %rax
jmp    1090 <gluOrtho2D@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_PROJECTION = global i32 0
define void @init() {
%1 = call i32 @glClearColor(i32 0, i32 0, i32 0, i32 0)
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = call i32 @glClear(i32 %2)
%4 = call i32 @glColor3d(double 1.000000e+00, double 0x3F98181818181818, i32 0)
%5 = call i32 @glPointSize(double 1.000000e+01)
%6 = load i32, i32* @GL_PROJECTION
%7 = call i32 @glMatrixMode(i32 %6)
%8 = call i32 (...) @glLoadIdentity()
%9 = call i32 @gluOrtho2D(i32 0, i32 1100, i32 0, i32 700)
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_PROJECTION = global i32 0
define void @init() {
%1 = tail call i32 @glClearColor(i32 0, i32 0, i32 0, i32 0)
%2 = load i32, i32* @GL_COLOR_BUFFER_BIT
%3 = tail call i32 @glClear(i32 %2)
%4 = tail call i32 @glColor3d(double 1.000000e+00, double 0x3F98181818181818, i32 0)
%5 = tail call i32 @glPointSize(double 1.000000e+01)
%6 = load i32, i32* @GL_PROJECTION
%7 = tail call i32 @glMatrixMode(i32 %6)
%8 = tail call i32 (...) @glLoadIdentity()
%9 = tail call i32 @gluOrtho2D(i32 0, i32 1100, i32 0, i32 700)
ret void
}