#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_DEPTH_TEST;
int /*<<< orphan*/ GL_LEQUAL;
int /*<<< orphan*/ GL_MODELVIEW;
int /*<<< orphan*/ GL_PROJECTION;
int /*<<< orphan*/ glDepthFunc(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLineStipple(int, int);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glOrtho(int /*<<< orphan*/, int, int /*<<< orphan*/, int,
                           int, int);
void CurveGLInit(void) {
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(0, 1, 0, 5, 1, -1);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glLineStipple(1, 0x00FF);
  glEnable(GL_DEPTH_TEST);
  glDepthFunc(GL_LEQUAL);
  glFlush();
}


x86 assembly (clang, -O0):
<CurveGLInit>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    $0x0,%al
call   1080 <glLoadIdentity@plt>
xor    %edx,%edx
mov    $0x1,%r8d
mov    $0x5,%ecx
mov    $0xffffffff,%r9d
mov    %edx,%edi
mov    %r8d,%esi
call   1050 <glOrtho@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    $0x0,%al
call   1080 <glLoadIdentity@plt>
mov    $0x1,%edi
mov    $0xff,%esi
call   1060 <glLineStipple@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
call   1070 <glDepthFunc@plt>
mov    $0x0,%al
call   1090 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<CurveGLInit>:
push   %rax
mov    0x2e58(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
xor    %eax,%eax
call   1080 <glLoadIdentity@plt>
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x5,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1050 <glOrtho@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
xor    %eax,%eax
call   1080 <glLoadIdentity@plt>
mov    $0x1,%edi
mov    $0xff,%esi
call   1060 <glLineStipple@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%edi
call   1070 <glDepthFunc@plt>
xor    %eax,%eax
pop    %rcx
jmp    1090 <glFlush@plt>

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
@GL_DEPTH_TEST = global i32 0
@GL_LEQUAL = global i32 0
define void @CurveGLInit() {
%1 = load i32, i32* @GL_PROJECTION
%2 = call i32 @glMatrixMode(i32 %1)
%3 = call i32 (...) @glLoadIdentity()
%4 = call i32 @glOrtho(i32 0, i32 1, i32 0, i32 5, i32 1, i32 -1)
%5 = load i32, i32* @GL_MODELVIEW
%6 = call i32 @glMatrixMode(i32 %5)
%7 = call i32 (...) @glLoadIdentity()
%8 = call i32 @glLineStipple(i32 1, i32 255)
%9 = load i32, i32* @GL_DEPTH_TEST
%10 = call i32 @glEnable(i32 %9)
%11 = load i32, i32* @GL_LEQUAL
%12 = call i32 @glDepthFunc(i32 %11)
%13 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
@GL_DEPTH_TEST = global i32 0
@GL_LEQUAL = global i32 0
define void @CurveGLInit() {
%1 = load i32, i32* @GL_PROJECTION
%2 = tail call i32 @glMatrixMode(i32 %1)
%3 = tail call i32 (...) @glLoadIdentity()
%4 = tail call i32 @glOrtho(i32 0, i32 1, i32 0, i32 5, i32 1, i32 -1)
%5 = load i32, i32* @GL_MODELVIEW
%6 = tail call i32 @glMatrixMode(i32 %5)
%7 = tail call i32 (...) @glLoadIdentity()
%8 = tail call i32 @glLineStipple(i32 1, i32 255)
%9 = load i32, i32* @GL_DEPTH_TEST
%10 = tail call i32 @glEnable(i32 %9)
%11 = load i32, i32* @GL_LEQUAL
%12 = tail call i32 @glDepthFunc(i32 %11)
%13 = tail call i32 (...) @glFlush()
ret void
}