#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_BLEND;
int /*<<< orphan*/ GL_MODELVIEW;
int /*<<< orphan*/ GL_ONE_MINUS_SRC_ALPHA;
int /*<<< orphan*/ GL_PROJECTION;
int /*<<< orphan*/ GL_SRC_ALPHA;
int /*<<< orphan*/ glBlendFunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLineWidth(double);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ gluOrtho2D(double, double, double, double);
void myglInit(void) {
  glLineWidth(10.0);
  glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluOrtho2D(-0.5, 0.5, -0.5, 0.5);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glFlush();
}


x86 assembly (clang, -O0):
<myglInit>:
push   %rbp
mov    %rsp,%rbp
movsd  0xe94(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
mov    0x2e49(%rip),%rax
mov    (%rax),%esi
call   1040 <glBlendFunc@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
mov    $0x0,%al
call   1070 <glLoadIdentity@plt>
movsd  0xe3d(%rip),%xmm2
movsd  0xe3d(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1090 <gluOrtho2D@plt>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
mov    $0x0,%al
call   1070 <glLoadIdentity@plt>
mov    $0x0,%al
call   1080 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<myglInit>:
push   %rax
movsd  0xe87(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
call   1040 <glBlendFunc@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
xor    %eax,%eax
call   1070 <glLoadIdentity@plt>
movsd  0xe48(%rip),%xmm0
movsd  0xe48(%rip),%xmm1
movaps %xmm0,%xmm2
movaps %xmm1,%xmm3
call   1090 <gluOrtho2D@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
xor    %eax,%eax
call   1070 <glLoadIdentity@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <glFlush@plt>

LLVM IR (-O0):
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @myglInit() {
%1 = call i32 @glLineWidth(double 1.000000e+01)
%2 = load i32, i32* @GL_BLEND
%3 = call i32 @glEnable(i32 %2)
%4 = load i32, i32* @GL_SRC_ALPHA
%5 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%6 = call i32 @glBlendFunc(i32 %4, i32 %5)
%7 = load i32, i32* @GL_PROJECTION
%8 = call i32 @glMatrixMode(i32 %7)
%9 = call i32 (...) @glLoadIdentity()
%10 = call i32 @gluOrtho2D(double -5.000000e-01, double 5.000000e-01, double -5.000000e-01, double 5.000000e-01)
%11 = load i32, i32* @GL_MODELVIEW
%12 = call i32 @glMatrixMode(i32 %11)
%13 = call i32 (...) @glLoadIdentity()
%14 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_PROJECTION = global i32 0
@GL_MODELVIEW = global i32 0
define void @myglInit() {
%1 = tail call i32 @glLineWidth(double 1.000000e+01)
%2 = load i32, i32* @GL_BLEND
%3 = tail call i32 @glEnable(i32 %2)
%4 = load i32, i32* @GL_SRC_ALPHA
%5 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%6 = tail call i32 @glBlendFunc(i32 %4, i32 %5)
%7 = load i32, i32* @GL_PROJECTION
%8 = tail call i32 @glMatrixMode(i32 %7)
%9 = tail call i32 (...) @glLoadIdentity()
%10 = tail call i32 @gluOrtho2D(double -5.000000e-01, double 5.000000e-01, double -5.000000e-01, double 5.000000e-01)
%11 = load i32, i32* @GL_MODELVIEW
%12 = tail call i32 @glMatrixMode(i32 %11)
%13 = tail call i32 (...) @glLoadIdentity()
%14 = tail call i32 (...) @glFlush()
ret void
}