#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 */
typedef double GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_BLEND;
int /*<<< orphan*/ GL_DONT_CARE;
int /*<<< orphan*/ GL_LINE_SMOOTH;
int /*<<< orphan*/ GL_LINE_SMOOTH_HINT;
int /*<<< orphan*/ GL_LINE_WIDTH_GRANULARITY;
int /*<<< orphan*/ GL_LINE_WIDTH_RANGE;
int /*<<< orphan*/ GL_ONE_MINUS_SRC_ALPHA;
int /*<<< orphan*/ GL_SRC_ALPHA;
int /*<<< orphan*/ glBlendFunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glClearColor(double, double, double, double);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glGetFloatv(int /*<<< orphan*/, double *);
int /*<<< orphan*/ glHint(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glLineWidth(double);
int /*<<< orphan*/ printf(char *, double, ...);
void init(void) {
  GLfloat values[2];
  glGetFloatv(GL_LINE_WIDTH_GRANULARITY, values);
  printf("GL_LINE_WIDTH_GRANULARITY value is %3.1f\n", values[0]);
  glGetFloatv(GL_LINE_WIDTH_RANGE, values);
  printf("GL_LINE_WIDTH_RANGE values are %3.1f %3.1f\n", values[0], values[1]);
  glEnable(GL_LINE_SMOOTH);
  glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
  glLineWidth(1.5);
  glClearColor(0.0, 0.0, 0.0, 0.0);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1090 <glGetFloatv@plt>
movsd  -0x10(%rbp),%xmm0
lea    0xe72(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1090 <glGetFloatv@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
lea    0xe72(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
call   1040 <glBlendFunc@plt>
mov    0x2dcf(%rip),%rax
mov    (%rax),%edi
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
call   1080 <glHint@plt>
movsd  0xde7(%rip),%xmm0
call   1030 <glLineWidth@plt>
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1070 <glClearColor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbx
sub    $0x10,%rsp
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1090 <glGetFloatv@plt>
movsd  (%rsp),%xmm0
lea    0xe73(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1090 <glGetFloatv@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
lea    0xe73(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
mov    0x2dee(%rip),%rax
mov    (%rax),%esi
call   1040 <glBlendFunc@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%edi
mov    0x2de7(%rip),%rax
mov    (%rax),%esi
call   1080 <glHint@plt>
movsd  0xde8(%rip),%xmm0
call   1030 <glLineWidth@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1070 <glClearColor@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@GL_LINE_WIDTH_GRANULARITY = global i32 0
@.str = [42 x i8] c"GL_LINE_WIDTH_GRANULARITY value is %3.1f\0A\00"
@GL_LINE_WIDTH_RANGE = global i32 0
@.str.1 = [44 x i8] c"GL_LINE_WIDTH_RANGE values are %3.1f %3.1f\0A\00"
@GL_LINE_SMOOTH = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_LINE_SMOOTH_HINT = global i32 0
@GL_DONT_CARE = global i32 0
define void @init() {
%1 = alloca [2 x double]
%2 = load i32, i32* @GL_LINE_WIDTH_GRANULARITY
%3 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%4 = call i32 @glGetFloatv(i32 %2, double* %3)
%5 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%6 = load double, double* %5
%7 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), double %6)
%8 = load i32, i32* @GL_LINE_WIDTH_RANGE
%9 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%10 = call i32 @glGetFloatv(i32 %8, double* %9)
%11 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%12 = load double, double* %11
%13 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 1
%14 = load double, double* %13
%15 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %12, double %14)
%16 = load i32, i32* @GL_LINE_SMOOTH
%17 = call i32 @glEnable(i32 %16)
%18 = load i32, i32* @GL_BLEND
%19 = call i32 @glEnable(i32 %18)
%20 = load i32, i32* @GL_SRC_ALPHA
%21 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%22 = call i32 @glBlendFunc(i32 %20, i32 %21)
%23 = load i32, i32* @GL_LINE_SMOOTH_HINT
%24 = load i32, i32* @GL_DONT_CARE
%25 = call i32 @glHint(i32 %23, i32 %24)
%26 = call i32 @glLineWidth(double 1.500000e+00)
%27 = call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
ret void
}

LLVM IR (-O2):
@GL_LINE_WIDTH_GRANULARITY = global i32 0
@.str = [42 x i8] c"GL_LINE_WIDTH_GRANULARITY value is %3.1f\0A\00"
@GL_LINE_WIDTH_RANGE = global i32 0
@.str.1 = [44 x i8] c"GL_LINE_WIDTH_RANGE values are %3.1f %3.1f\0A\00"
@GL_LINE_SMOOTH = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE_MINUS_SRC_ALPHA = global i32 0
@GL_LINE_SMOOTH_HINT = global i32 0
@GL_DONT_CARE = global i32 0
define void @init() {
%1 = alloca [2 x double]
%2 = bitcast [2 x double]* %1 to i8*
%3 = load i32, i32* @GL_LINE_WIDTH_GRANULARITY
%4 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%5 = call i32 @glGetFloatv(i32 %3, double* %4)
%6 = load double, double* %4
%7 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), double %6)
%8 = load i32, i32* @GL_LINE_WIDTH_RANGE
%9 = call i32 @glGetFloatv(i32 %8, double* %4)
%10 = load double, double* %4
%11 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 1
%12 = load double, double* %11
%13 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %10, double %12)
%14 = load i32, i32* @GL_LINE_SMOOTH
%15 = call i32 @glEnable(i32 %14)
%16 = load i32, i32* @GL_BLEND
%17 = call i32 @glEnable(i32 %16)
%18 = load i32, i32* @GL_SRC_ALPHA
%19 = load i32, i32* @GL_ONE_MINUS_SRC_ALPHA
%20 = call i32 @glBlendFunc(i32 %18, i32 %19)
%21 = load i32, i32* @GL_LINE_SMOOTH_HINT
%22 = load i32, i32* @GL_DONT_CARE
%23 = call i32 @glHint(i32 %21, i32 %22)
%24 = call i32 @glLineWidth(double 1.500000e+00)
%25 = call i32 @glClearColor(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
ret void
}