#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 *);
int menu_help(void) {
  ;
  printf("Commands:\n");
  printf("\t"
         "\033[1m"
         "about"
         "\033[22m"
         "\t"
         "Show the project info"
         "\n");
  printf("\t"
         "\033[1m"
         "add"
         "\033[22m"
         "\t"
         "Add a new address entry"
         "\n");
  printf("\t"
         "\033[1m"
         "clear"
         "\033[22m"
         "\t"
         "Clear the screen"
         "\n");
  printf("\t"
         "\033[1m"
         "delete"
         "\033[22m"
         "\t"
         "Delete all address entries"
         "\n");
  printf("\t"
         "\033[1m"
         "format"
         "\033[22m"
         "\t"
         "Show the address-field formats"
         "\n");
  printf("\t"
         "\033[1m"
         "help"
         "\033[22m"
         "\t"
         "List avialable commands"
         "\n");
  printf("\t"
         "\033[1m"
         "list"
         "\033[22m"
         "\t"
         "List available address entries"
         "\n");
  printf("\t"
         "\033[1m"
         "read"
         "\033[22m"
         "\t"
         "Read address-list from file"
         "\n");
  printf("\t"
         "\033[1m"
         "write"
         "\033[22m"
         "\t"
         "Append current address-list to file"
         "\n");
  printf("\t"
         "\033[1m"
         "quit"
         "\033[22m"
         "\t"
         "Exit the current session"
         "\n");
  return 0;
}


x86 assembly (clang, -O0):
<menu_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf30(%rip),%rdi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Commands:\0A\00"
@.str.1 = [39 x i8] c"\09\1B[1mabout\1B[22m\09Show the project info\0A\00"
@.str.2 = [39 x i8] c"\09\1B[1madd\1B[22m\09Add a new address entry\0A\00"
@.str.3 = [34 x i8] c"\09\1B[1mclear\1B[22m\09Clear the screen\0A\00"
@.str.4 = [45 x i8] c"\09\1B[1mdelete\1B[22m\09Delete all address entries\0A\00"
@.str.5 = [49 x i8] c"\09\1B[1mformat\1B[22m\09Show the address-field formats\0A\00"
@.str.6 = [40 x i8] c"\09\1B[1mhelp\1B[22m\09List avialable commands\0A\00"
@.str.7 = [47 x i8] c"\09\1B[1mlist\1B[22m\09List available address entries\0A\00"
@.str.8 = [44 x i8] c"\09\1B[1mread\1B[22m\09Read address-list from file\0A\00"
@.str.9 = [53 x i8] c"\09\1B[1mwrite\1B[22m\09Append current address-list to file\0A\00"
@.str.10 = [41 x i8] c"\09\1B[1mquit\1B[22m\09Exit the current session\0A\00"
define i32 @menu_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [10 x i8] c"Commands:\00"
@str.11 = [38 x i8] c"\09\1B[1mabout\1B[22m\09Show the project info\00"
@str.12 = [38 x i8] c"\09\1B[1madd\1B[22m\09Add a new address entry\00"
@str.13 = [33 x i8] c"\09\1B[1mclear\1B[22m\09Clear the screen\00"
@str.14 = [44 x i8] c"\09\1B[1mdelete\1B[22m\09Delete all address entries\00"
@str.15 = [48 x i8] c"\09\1B[1mformat\1B[22m\09Show the address-field formats\00"
@str.16 = [39 x i8] c"\09\1B[1mhelp\1B[22m\09List avialable commands\00"
@str.17 = [46 x i8] c"\09\1B[1mlist\1B[22m\09List available address entries\00"
@str.18 = [43 x i8] c"\09\1B[1mread\1B[22m\09Read address-list from file\00"
@str.19 = [52 x i8] c"\09\1B[1mwrite\1B[22m\09Append current address-list to file\00"
@str.20 = [40 x i8] c"\09\1B[1mquit\1B[22m\09Exit the current session\00"
define i32 @menu_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
ret i32 0
}