#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*/ printString(char *);
void help() {
  printString("--------------------< shell commands >--------------------\n");
  printString("systime - mostrar la hora y fecha del sistema \n");
  printString("setsystime - modificar la hora y fecha del sistema\n");
  printString("changecolor - cambiar los colores de texto y fondo\n");
  printString("help - mostrar lista de comandos\n");
  printString("clear - borrar el texto de la pantalla\n");
  printString("screensavertimer - setear tiempo de protector de pantallas\n");
  printString("beep - reproduce un sonido durante un tiempo determinado\n");
  printString("music - reproduce una cancion (estrellita)\n");
  printString("philosophers - corre la aplicación de filosofos\n");
  printString("----------------------------------------------------------\n");
  return;
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printString@plt>
lea    0xf15(%rip),%rdi
call   1030 <printString@plt>
lea    0xf39(%rip),%rdi
call   1030 <printString@plt>
lea    0xf61(%rip),%rdi
call   1030 <printString@plt>
lea    0xf89(%rip),%rdi
call   1030 <printString@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printString@plt>
lea    0xfbb(%rip),%rdi
call   1030 <printString@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printString@plt>
lea    0x1019(%rip),%rdi
call   1030 <printString@plt>
lea    0x1039(%rip),%rdi
call   1030 <printString@plt>
lea    0x105f(%rip),%rdi
call   1030 <printString@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printString@plt>
lea    0xf18(%rip),%rdi
call   1030 <printString@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printString@plt>
lea    0xf64(%rip),%rdi
call   1030 <printString@plt>
lea    0xf8c(%rip),%rdi
call   1030 <printString@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printString@plt>
lea    0xfbe(%rip),%rdi
call   1030 <printString@plt>
lea    0xfee(%rip),%rdi
call   1030 <printString@plt>
lea    0x101c(%rip),%rdi
call   1030 <printString@plt>
lea    0x103c(%rip),%rdi
call   1030 <printString@plt>
lea    0x1062(%rip),%rdi
pop    %rax
jmp    1030 <printString@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"--------------------< shell commands >--------------------\0A\00"
@.str.1 = [48 x i8] c"systime - mostrar la hora y fecha del sistema \0A\00"
@.str.2 = [52 x i8] c"setsystime - modificar la hora y fecha del sistema\0A\00"
@.str.3 = [52 x i8] c"changecolor - cambiar los colores de texto y fondo\0A\00"
@.str.4 = [34 x i8] c"help - mostrar lista de comandos\0A\00"
@.str.5 = [40 x i8] c"clear - borrar el texto de la pantalla\0A\00"
@.str.6 = [60 x i8] c"screensavertimer - setear tiempo de protector de pantallas\0A\00"
@.str.7 = [58 x i8] c"beep - reproduce un sonido durante un tiempo determinado\0A\00"
@.str.8 = [44 x i8] c"music - reproduce una cancion (estrellita)\0A\00"
@.str.9 = [50 x i8] c"philosophers - corre la aplicaci\C3\B3n de filosofos\0A\00"
@.str.10 = [60 x i8] c"----------------------------------------------------------\0A\00"
define void @help() {
%1 = call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printString(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printString(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printString(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printString(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printString(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printString(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printString(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printString(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"--------------------< shell commands >--------------------\0A\00"
@.str.1 = [48 x i8] c"systime - mostrar la hora y fecha del sistema \0A\00"
@.str.2 = [52 x i8] c"setsystime - modificar la hora y fecha del sistema\0A\00"
@.str.3 = [52 x i8] c"changecolor - cambiar los colores de texto y fondo\0A\00"
@.str.4 = [34 x i8] c"help - mostrar lista de comandos\0A\00"
@.str.5 = [40 x i8] c"clear - borrar el texto de la pantalla\0A\00"
@.str.6 = [60 x i8] c"screensavertimer - setear tiempo de protector de pantallas\0A\00"
@.str.7 = [58 x i8] c"beep - reproduce un sonido durante un tiempo determinado\0A\00"
@.str.8 = [44 x i8] c"music - reproduce una cancion (estrellita)\0A\00"
@.str.9 = [50 x i8] c"philosophers - corre la aplicaci\C3\B3n de filosofos\0A\00"
@.str.10 = [60 x i8] c"----------------------------------------------------------\0A\00"
define void @help() {
%1 = tail call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printString(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printString(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printString(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printString(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printString(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printString(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printString(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printString(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printString(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
ret void
}