#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*/ clr();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int menu() {
  int o;
  clr();
  printf("\n\t==============================\n");
  printf("\tRaid Manager vr. 2.11.34-alpha\n");
  printf("\t==============================\n");
  printf("\t\t2013 (c) Dennis Higueros\n\n");
  printf("\tOPCIONES:\n");
  printf("\t\t0. Salir\n");
  printf("\t\t1. Crear Unidad RAID\n");
  printf("\t\t2. Montar Unidad RAID\n");
  printf("\t\t3. Desmontar Unidad RAID\n");
  printf("\t\t4. Utilizar Unidad RAID\n");
  printf("\t\t5. Mostrar Contenido (CSV)\n\n");
  printf("raid-manager> ");
  scanf("%i", &o);
  return o;
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <clr@plt>
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
call   1040 <printf@plt>
lea    0xf22(%rip),%rdi
call   1040 <printf@plt>
lea    0xf35(%rip),%rdi
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rax
xor    %eax,%eax
call   1030 <clr@plt>
lea    0xec3(%rip),%rdi
call   1040 <puts@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xeac(%rip),%rdi
call   1040 <puts@plt>
lea    0xee0(%rip),%rdi
call   1040 <puts@plt>
lea    0xef0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeef(%rip),%rdi
call   1040 <puts@plt>
lea    0xeee(%rip),%rdi
call   1040 <puts@plt>
lea    0xef9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf14(%rip),%rdi
call   1040 <puts@plt>
lea    0xf22(%rip),%rdi
call   1040 <puts@plt>
lea    0xe2d(%rip),%rdi
call   1050 <printf@plt>
lea    0xe30(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"\0A\09==============================\0A\00"
@.str.1 = [33 x i8] c"\09Raid Manager vr. 2.11.34-alpha\0A\00"
@.str.2 = [33 x i8] c"\09==============================\0A\00"
@.str.3 = [29 x i8] c"\09\092013 (c) Dennis Higueros\0A\0A\00"
@.str.4 = [12 x i8] c"\09OPCIONES:\0A\00"
@.str.5 = [12 x i8] c"\09\090. Salir\0A\00"
@.str.6 = [24 x i8] c"\09\091. Crear Unidad RAID\0A\00"
@.str.7 = [25 x i8] c"\09\092. Montar Unidad RAID\0A\00"
@.str.8 = [28 x i8] c"\09\093. Desmontar Unidad RAID\0A\00"
@.str.9 = [27 x i8] c"\09\094. Utilizar Unidad RAID\0A\00"
@.str.10 = [31 x i8] c"\09\095. Mostrar Contenido (CSV)\0A\0A\00"
@.str.11 = [15 x i8] c"raid-manager> \00"
@.str.12 = [3 x i8] c"%i\00"
define i32 @menu() {
%1 = alloca i32
%2 = call i32 (...) @clr()
%3 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %1)
%16 = load i32, i32* %1
ret i32 %16
}

LLVM IR (-O2):
@.str.11 = [15 x i8] c"raid-manager> \00"
@.str.12 = [3 x i8] c"%i\00"
@str = [33 x i8] c"\0A\09==============================\00"
@str.13 = [32 x i8] c"\09Raid Manager vr. 2.11.34-alpha\00"
@str.14 = [32 x i8] c"\09==============================\00"
@str.15 = [28 x i8] c"\09\092013 (c) Dennis Higueros\0A\00"
@str.16 = [11 x i8] c"\09OPCIONES:\00"
@str.17 = [11 x i8] c"\09\090. Salir\00"
@str.18 = [23 x i8] c"\09\091. Crear Unidad RAID\00"
@str.19 = [24 x i8] c"\09\092. Montar Unidad RAID\00"
@str.20 = [27 x i8] c"\09\093. Desmontar Unidad RAID\00"
@str.21 = [26 x i8] c"\09\094. Utilizar Unidad RAID\00"
@str.22 = [30 x i8] c"\09\095. Mostrar Contenido (CSV)\0A\00"
define i32 @menu() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (...) @clr()
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %1)
%17 = load i32, i32* %1
ret i32 %17
}