#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_RGB;
int GLUT_SINGLE;
int /*<<< orphan*/ glutCreateWindow(char *);
int /*<<< orphan*/ glutInit(int *, char **);
int /*<<< orphan*/ glutInitDisplayMode(int);
int /*<<< orphan*/ glutInitWindoPosition(int, int);
int /*<<< orphan*/ glutInitWindowSize(int, int);
int main(int argc, char **argv) {
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
  glutInitWindowSize(500, 500);
  glutInitWindoPosition(500, 500);
  glutCreateWindow("Cuadrado Multicolor");
  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   1060 <glutInit@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
mov    0x2e65(%rip),%rax
or     (%rax),%edi
call   1030 <glutInitDisplayMode@plt>
mov    $0x1f4,%esi
mov    %esi,%edi
call   1070 <glutInitWindowSize@plt>
mov    $0x1f4,%esi
mov    %esi,%edi
call   1050 <glutInitWindoPosition@plt>
lea    0xe57(%rip),%rdi
call   1040 <glutCreateWindow@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
call   1030 <glutInitDisplayMode@plt>
mov    $0x1f4,%edi
mov    $0x1f4,%esi
call   1070 <glutInitWindowSize@plt>
mov    $0x1f4,%edi
mov    $0x1f4,%esi
call   1050 <glutInitWindoPosition@plt>
lea    0xe65(%rip),%rdi
call   1040 <glutCreateWindow@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@GLUT_SINGLE = global i32 0
@GLUT_RGB = global i32 0
@.str = [20 x i8] c"Cuadrado Multicolor\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 = load i32, i32* @GLUT_SINGLE
%9 = load i32, i32* @GLUT_RGB
%10 = or i32 %8, %9
%11 = call i32 @glutInitDisplayMode(i32 %10)
%12 = call i32 @glutInitWindowSize(i32 500, i32 500)
%13 = call i32 @glutInitWindoPosition(i32 500, i32 500)
%14 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@GLUT_SINGLE = global i32 0
@GLUT_RGB = global i32 0
@.str = [20 x i8] c"Cuadrado Multicolor\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_SINGLE
%6 = load i32, i32* @GLUT_RGB
%7 = or i32 %6, %5
%8 = call i32 @glutInitDisplayMode(i32 %7)
%9 = call i32 @glutInitWindowSize(i32 500, i32 500)
%10 = call i32 @glutInitWindoPosition(i32 500, i32 500)
%11 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret i32 0
}