#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_RGB;
int /*<<< orphan*/ glutCreateWindow(char *);
int /*<<< orphan*/ glutInit(int *, char **);
int /*<<< orphan*/ glutInitDisplayMode(int);
int /*<<< orphan*/ glutInitWindowPosition(int, int);
int /*<<< orphan*/ glutInitWindowSize(int, int);
int /*<<< orphan*/ glutMainLoop();
int main(int argc, char *argv[]) {
  glutInit(&argc, argv);
  glutInitWindowSize(640, 480);
  glutInitWindowPosition(10, 10);
  glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
  glutCreateWindow("FreeGLUT Shapes");
  glutMainLoop();
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    -0x8(%rbp),%rdi
call   1070 <glutInit@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
call   1080 <glutInitWindowSize@plt>
mov    $0xa,%esi
mov    %esi,%edi
call   1060 <glutInitWindowPosition@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
mov    0x2e22(%rip),%rax
or     (%rax),%edi
mov    0x2e29(%rip),%rax
or     (%rax),%edi
call   1030 <glutInitDisplayMode@plt>
lea    0xe3b(%rip),%rdi
call   1050 <glutCreateWindow@plt>
mov    $0x0,%al
call   1040 <glutMainLoop@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   1070 <glutInit@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
call   1080 <glutInitWindowSize@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1060 <glutInitWindowPosition@plt>
mov    0x2e54(%rip),%rax
mov    0x2e35(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
mov    0x2e3a(%rip),%rax
or     (%rax),%edi
call   1030 <glutInitDisplayMode@plt>
lea    0xe4c(%rip),%rdi
call   1050 <glutCreateWindow@plt>
xor    %eax,%eax
call   1040 <glutMainLoop@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@GLUT_RGB = global i32 0
@GLUT_DOUBLE = global i32 0
@GLUT_DEPTH = global i32 0
@.str = [16 x i8] c"FreeGLUT Shapes\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 = call i32 @glutInitWindowSize(i32 640, i32 480)
%6 = call i32 @glutInitWindowPosition(i32 10, i32 10)
%7 = load i32, i32* @GLUT_RGB
%8 = load i32, i32* @GLUT_DOUBLE
%9 = or i32 %8, %7
%10 = load i32, i32* @GLUT_DEPTH
%11 = or i32 %9, %10
%12 = call i32 @glutInitDisplayMode(i32 %11)
%13 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (...) @glutMainLoop()
ret i32 0
}