#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_LINES;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glVertex3i(int, int, int);
void drawAxes(void) {
  glColor3f(1.0, 1.0, 1.0);
  glBegin(GL_LINES);
  glVertex3i(-256, 0, 0);
  glVertex3i(256, 0, 0);
  glVertex3i(0, -256, 0);
  glVertex3i(0, 256, 0);
  glVertex3i(0, 0, -128);
  glVertex3i(0, 0, 128);
  glEnd();
}


x86 assembly (clang, -O0):
<drawAxes>:
push   %rbp
mov    %rsp,%rbp
movsd  0xeb4(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
call   1060 <glBegin@plt>
mov    $0xffffff00,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1050 <glVertex3i@plt>
mov    $0x100,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1050 <glVertex3i@plt>
xor    %edx,%edx
mov    $0xffffff00,%esi
mov    %edx,%edi
call   1050 <glVertex3i@plt>
xor    %edx,%edx
mov    $0x100,%esi
mov    %edx,%edi
call   1050 <glVertex3i@plt>
xor    %esi,%esi
mov    $0xffffff80,%edx
mov    %esi,%edi
call   1050 <glVertex3i@plt>
xor    %esi,%esi
mov    $0x80,%edx
mov    %esi,%edi
call   1050 <glVertex3i@plt>
mov    $0x0,%al
call   1030 <glEnd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawAxes>:
push   %rax
movsd  0xeb7(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
call   1060 <glBegin@plt>
mov    $0xffffff00,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <glVertex3i@plt>
mov    $0x100,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <glVertex3i@plt>
xor    %edi,%edi
mov    $0xffffff00,%esi
xor    %edx,%edx
call   1050 <glVertex3i@plt>
xor    %edi,%edi
mov    $0x100,%esi
xor    %edx,%edx
call   1050 <glVertex3i@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xffffff80,%edx
call   1050 <glVertex3i@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <glVertex3i@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <glEnd@plt>

LLVM IR (-O0):
@GL_LINES = global i32 0
define void @drawAxes() {
%1 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%2 = load i32, i32* @GL_LINES
%3 = call i32 @glBegin(i32 %2)
%4 = call i32 @glVertex3i(i32 -256, i32 0, i32 0)
%5 = call i32 @glVertex3i(i32 256, i32 0, i32 0)
%6 = call i32 @glVertex3i(i32 0, i32 -256, i32 0)
%7 = call i32 @glVertex3i(i32 0, i32 256, i32 0)
%8 = call i32 @glVertex3i(i32 0, i32 0, i32 -128)
%9 = call i32 @glVertex3i(i32 0, i32 0, i32 128)
%10 = call i32 (...) @glEnd()
ret void
}

LLVM IR (-O2):
@GL_LINES = global i32 0
define void @drawAxes() {
%1 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%2 = load i32, i32* @GL_LINES
%3 = tail call i32 @glBegin(i32 %2)
%4 = tail call i32 @glVertex3i(i32 -256, i32 0, i32 0)
%5 = tail call i32 @glVertex3i(i32 256, i32 0, i32 0)
%6 = tail call i32 @glVertex3i(i32 0, i32 -256, i32 0)
%7 = tail call i32 @glVertex3i(i32 0, i32 256, i32 0)
%8 = tail call i32 @glVertex3i(i32 0, i32 0, i32 -128)
%9 = tail call i32 @glVertex3i(i32 0, i32 0, i32 128)
%10 = tail call i32 (...) @glEnd()
ret void
}