#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*/ print(char *);
void help() {
  print("\ncmd       : Launch a new recursive Shell");
  print("\nclear     : Clears the screen");
  print("\nsum       : Computes the sum of n numbers");
  print("\necho      : Reprint a given text");
  print("\nsort      : Sorts a given n numbers");
  print("\nfibonaci  : Prints the first n numbers of fibonaci");
  print("\ngcd       : Computes the grand common divider of n given numbers");
  print("\nexit      : Quits the current shell");
  print("\ncolor     : Changes the colors of the terminal");
  print("\n\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <print@plt>
lea    0xf03(%rip),%rdi
call   1030 <print@plt>
lea    0xf16(%rip),%rdi
call   1030 <print@plt>
lea    0xf35(%rip),%rdi
call   1030 <print@plt>
lea    0xf4b(%rip),%rdi
call   1030 <print@plt>
lea    0xf64(%rip),%rdi
call   1030 <print@plt>
lea    0xf8c(%rip),%rdi
call   1030 <print@plt>
lea    0xfc2(%rip),%rdi
call   1030 <print@plt>
lea    0xfdb(%rip),%rdi
call   1030 <print@plt>
lea    0xfff(%rip),%rdi
call   1030 <print@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <print@plt>
lea    0xf06(%rip),%rdi
call   1030 <print@plt>
lea    0xf19(%rip),%rdi
call   1030 <print@plt>
lea    0xf38(%rip),%rdi
call   1030 <print@plt>
lea    0xf4e(%rip),%rdi
call   1030 <print@plt>
lea    0xf67(%rip),%rdi
call   1030 <print@plt>
lea    0xf8f(%rip),%rdi
call   1030 <print@plt>
lea    0xfc5(%rip),%rdi
call   1030 <print@plt>
lea    0xfde(%rip),%rdi
call   1030 <print@plt>
lea    0x1002(%rip),%rdi
pop    %rax
jmp    1030 <print@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"\0Acmd : Launch a new recursive Shell\00"
@.str.1 = [31 x i8] c"\0Aclear : Clears the screen\00"
@.str.2 = [43 x i8] c"\0Asum : Computes the sum of n numbers\00"
@.str.3 = [34 x i8] c"\0Aecho : Reprint a given text\00"
@.str.4 = [37 x i8] c"\0Asort : Sorts a given n numbers\00"
@.str.5 = [52 x i8] c"\0Afibonaci : Prints the first n numbers of fibonaci\00"
@.str.6 = [66 x i8] c"\0Agcd : Computes the grand common divider of n given numbers\00"
@.str.7 = [37 x i8] c"\0Aexit : Quits the current shell\00"
@.str.8 = [48 x i8] c"\0Acolor : Changes the colors of the terminal\00"
@.str.9 = [3 x i8] c"\0A\0A\00"
define void @help() {
%1 = call i32 @print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @print(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @print(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @print(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @print(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @print(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"\0Acmd : Launch a new recursive Shell\00"
@.str.1 = [31 x i8] c"\0Aclear : Clears the screen\00"
@.str.2 = [43 x i8] c"\0Asum : Computes the sum of n numbers\00"
@.str.3 = [34 x i8] c"\0Aecho : Reprint a given text\00"
@.str.4 = [37 x i8] c"\0Asort : Sorts a given n numbers\00"
@.str.5 = [52 x i8] c"\0Afibonaci : Prints the first n numbers of fibonaci\00"
@.str.6 = [66 x i8] c"\0Agcd : Computes the grand common divider of n given numbers\00"
@.str.7 = [37 x i8] c"\0Aexit : Quits the current shell\00"
@.str.8 = [48 x i8] c"\0Acolor : Changes the colors of the terminal\00"
@.str.9 = [3 x i8] c"\0A\0A\00"
define void @help() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @print(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @print(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @print(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @print(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @print(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
ret void
}