#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 GLUT_DEPTH;
int GLUT_DOUBLE;
int GLUT_RGBA;
int GLUT_STENCIL;
int /*<<< orphan*/ glutCreateWindow(char *);
int /*<<< orphan*/ glutInit(int *, char **);
int /*<<< orphan*/ glutInitDisplayMode(int);
int /*<<< orphan*/ print_opengl_information();
int main(int argc, char **argv) {
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL);
  glutCreateWindow("Test");
  print_opengl_information();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    -0x4(%rbp),%rdi
call   1060 <glutInit@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
mov    0x2e6c(%rip),%rax
or     (%rax),%edi
mov    0x2e73(%rip),%rax
or     (%rax),%edi
mov    0x2e4a(%rip),%rax
or     (%rax),%edi
call   1030 <glutInitDisplayMode@plt>
lea    0xe74(%rip),%rdi
call   1040 <glutCreateWindow@plt>
mov    $0x0,%al
call   1050 <print_opengl_information@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1060 <glutInit@plt>
mov    0x2e7a(%rip),%rax
mov    0x2e7b(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
mov    0x2e80(%rip),%rax
or     (%rax),%edi
mov    0x2e57(%rip),%rax
or     (%rax),%edi
call   1030 <glutInitDisplayMode@plt>
lea    0xe81(%rip),%rdi
call   1040 <glutCreateWindow@plt>
xor    %eax,%eax
call   1050 <print_opengl_information@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@GLUT_DOUBLE = global i32 0
@GLUT_RGBA = global i32 0
@GLUT_DEPTH = global i32 0
@GLUT_STENCIL = global i32 0
@.str = [5 x i8] c"Test\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = call i32 @glutInit(i32* %3, i8** %5)
%7 = load i32, i32* @GLUT_DOUBLE
%8 = load i32, i32* @GLUT_RGBA
%9 = or i32 %7, %8
%10 = load i32, i32* @GLUT_DEPTH
%11 = or i32 %9, %10
%12 = load i32, i32* @GLUT_STENCIL
%13 = or i32 %11, %12
%14 = call i32 @glutInitDisplayMode(i32 %13)
%15 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (...) @print_opengl_information()
ret i32 0
}

LLVM IR (-O2):
@GLUT_DOUBLE = global i32 0
@GLUT_RGBA = global i32 0
@GLUT_DEPTH = global i32 0
@GLUT_STENCIL = global i32 0
@.str = [5 x i8] c"Test\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @glutInit(i32* %3, i8** %1)
%5 = load i32, i32* @GLUT_DOUBLE
%6 = load i32, i32* @GLUT_RGBA
%7 = or i32 %6, %5
%8 = load i32, i32* @GLUT_DEPTH
%9 = or i32 %7, %8
%10 = load i32, i32* @GLUT_STENCIL
%11 = or i32 %9, %10
%12 = call i32 @glutInitDisplayMode(i32 %11)
%13 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (...) @print_opengl_information()
ret i32 0
}