#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*/ printf(char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void mostrarMenu() {
  char msj[1024];
  strcpy(msj, "***MANEJO DE INVENTARIO***\n");
  strcat(msj, "Opciones:\n");
  strcat(msj, "1-Mostrar Productos.-\n");
  strcat(msj, "2-Eliminar Productos.-\n");
  strcat(msj, "3-Salir.-\n");
  strcat(msj, "Elija una opcion:\n");
  printf("%s", msj);
}


x86 assembly (clang, -O0):
<mostrarMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x400,%rsp
lea    -0x400(%rbp),%rdi
lea    0xeb7(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x400(%rbp),%rdi
lea    0xec0(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x400(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x400(%rbp),%rdi
lea    0xebc(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x400(%rbp),%rdi
lea    0xec1(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x400(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x400(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1040 <printf@plt>
add    $0x400,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mostrarMenu>:
push   %rbx
sub    $0x400,%rsp
lea    0xec1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xecb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
lea    0xecf(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
lea    0xed8(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"***MANEJO DE INVENTARIO***\0A\00"
@.str.1 = [11 x i8] c"Opciones:\0A\00"
@.str.2 = [23 x i8] c"1-Mostrar Productos.-\0A\00"
@.str.3 = [24 x i8] c"2-Eliminar Productos.-\0A\00"
@.str.4 = [11 x i8] c"3-Salir.-\0A\00"
@.str.5 = [19 x i8] c"Elija una opcion:\0A\00"
@.str.6 = [3 x i8] c"%s\00"
define void @mostrarMenu() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%5 = call i32 @strcat(i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%7 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%9 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%11 = call i32 @strcat(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%13 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %14)
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"***MANEJO DE INVENTARIO***\0A\00"
@.str.1 = [11 x i8] c"Opciones:\0A\00"
@.str.2 = [23 x i8] c"1-Mostrar Productos.-\0A\00"
@.str.3 = [24 x i8] c"2-Eliminar Productos.-\0A\00"
@.str.4 = [11 x i8] c"3-Salir.-\0A\00"
@.str.5 = [19 x i8] c"Elija una opcion:\0A\00"
@.str.6 = [3 x i8] c"%s\00"
define void @mostrarMenu() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %2)
ret void
}