#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_LINES;
int /*<<< orphan*/ GL_LINE_STIPPLE;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLineStipple(int, int);
int /*<<< orphan*/ glLineWidth(float);
int /*<<< orphan*/ glVertex2f(float, float);
void line_display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glEnable(GL_LINE_STIPPLE);
  glLineStipple(2, 0x0f0f);
  glLineWidth(10.0f);
  glBegin(GL_LINES);
  glVertex2f(0.0f, 0.0f);
  glVertex2f(0.5f, 0.5f);
  glEnd();
  glFlush();
}


x86 assembly (clang, -O0):
<line_display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
call   1040 <glClear@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%edi
call   1050 <glEnable@plt>
mov    $0x2,%edi
mov    $0xf0f,%esi
call   1070 <glLineStipple@plt>
movss  0xe4d(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
call   10a0 <glBegin@plt>
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1090 <glVertex2f@plt>
movss  0xe23(%rip),%xmm1
movaps %xmm1,%xmm0
call   1090 <glVertex2f@plt>
mov    $0x0,%al
call   1060 <glEnd@plt>
mov    $0x0,%al
call   1080 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<line_display>:
push   %rax
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
call   1040 <glClear@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
call   1050 <glEnable@plt>
mov    $0x2,%edi
mov    $0xf0f,%esi
call   1070 <glLineStipple@plt>
movss  0xe4c(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
call   10a0 <glBegin@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1090 <glVertex2f@plt>
movss  0xe2a(%rip),%xmm0
movaps %xmm0,%xmm1
call   1090 <glVertex2f@plt>
xor    %eax,%eax
call   1060 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_LINE_STIPPLE = global i32 0
@GL_LINES = global i32 0
define void @line_display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = load i32, i32* @GL_LINE_STIPPLE
%4 = call i32 @glEnable(i32 %3)
%5 = call i32 @glLineStipple(i32 2, i32 3855)
%6 = call i32 @glLineWidth(float 1.000000e+01)
%7 = load i32, i32* @GL_LINES
%8 = call i32 @glBegin(i32 %7)
%9 = call i32 @glVertex2f(float 0.000000e+00, float 0.000000e+00)
%10 = call i32 @glVertex2f(float 5.000000e-01, float 5.000000e-01)
%11 = call i32 (...) @glEnd()
%12 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_LINE_STIPPLE = global i32 0
@GL_LINES = global i32 0
define void @line_display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = load i32, i32* @GL_LINE_STIPPLE
%4 = tail call i32 @glEnable(i32 %3)
%5 = tail call i32 @glLineStipple(i32 2, i32 3855)
%6 = tail call i32 @glLineWidth(float 1.000000e+01)
%7 = load i32, i32* @GL_LINES
%8 = tail call i32 @glBegin(i32 %7)
%9 = tail call i32 @glVertex2f(float 0.000000e+00, float 0.000000e+00)
%10 = tail call i32 @glVertex2f(float 5.000000e-01, float 5.000000e-01)
%11 = tail call i32 (...) @glEnd()
%12 = tail call i32 (...) @glFlush()
ret void
}