#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*/ clearMtrDisplay();
int /*<<< orphan*/ createLine(double, double, double, double, int);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(float, float, float);
int /*<<< orphan*/ glutSwapBuffers();
int /*<<< orphan*/ printMtrDisplay();
int /*<<< orphan*/ proj();
void display() {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(0.0f, 0.0f, 0.0f);
  createLine(300.0, 0.0, 300.0, 600.0, 2);
  createLine(0.0, 300.0, 600.0, 300.0, 2);
  clearMtrDisplay();
  proj();
  printMtrDisplay();
  glutSwapBuffers();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1080 <glColor3f@plt>
movsd  0xe68(%rip),%xmm2
xorps  %xmm1,%xmm1
movsd  0xe65(%rip),%xmm3
mov    $0x2,%edi
movaps %xmm2,%xmm0
call   1040 <createLine@plt>
xorps  %xmm0,%xmm0
movsd  0xe45(%rip),%xmm3
movsd  0xe45(%rip),%xmm2
mov    $0x2,%edi
movaps %xmm3,%xmm1
call   1040 <createLine@plt>
mov    $0x0,%al
call   1050 <clearMtrDisplay@plt>
mov    $0x0,%al
call   1090 <proj@plt>
mov    $0x0,%al
call   1070 <printMtrDisplay@plt>
mov    $0x0,%al
call   1060 <glutSwapBuffers@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1080 <glColor3f@plt>
movsd  0xe6b(%rip),%xmm0
movsd  0xe6b(%rip),%xmm3
xorps  %xmm1,%xmm1
movaps %xmm0,%xmm2
mov    $0x2,%edi
call   1040 <createLine@plt>
xorps  %xmm0,%xmm0
movsd  0xe48(%rip),%xmm1
movsd  0xe48(%rip),%xmm2
movaps %xmm1,%xmm3
mov    $0x2,%edi
call   1040 <createLine@plt>
xor    %eax,%eax
call   1050 <clearMtrDisplay@plt>
xor    %eax,%eax
call   1090 <proj@plt>
xor    %eax,%eax
call   1070 <printMtrDisplay@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glutSwapBuffers@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3f(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%4 = call i32 @createLine(double 3.000000e+02, double 0.000000e+00, double 3.000000e+02, double 6.000000e+02, i32 2)
%5 = call i32 @createLine(double 0.000000e+00, double 3.000000e+02, double 6.000000e+02, double 3.000000e+02, i32 2)
%6 = call i32 (...) @clearMtrDisplay()
%7 = call i32 (...) @proj()
%8 = call i32 (...) @printMtrDisplay()
%9 = call i32 (...) @glutSwapBuffers()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = 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(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%4 = tail call i32 @createLine(double 3.000000e+02, double 0.000000e+00, double 3.000000e+02, double 6.000000e+02, i32 2)
%5 = tail call i32 @createLine(double 0.000000e+00, double 3.000000e+02, double 6.000000e+02, double 3.000000e+02, i32 2)
%6 = tail call i32 (...) @clearMtrDisplay()
%7 = tail call i32 (...) @proj()
%8 = tail call i32 (...) @printMtrDisplay()
%9 = tail call i32 (...) @glutSwapBuffers()
ret void
}