#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_eol();
int /*<<< orphan*/ puts(char *);
void ui_print_help_menu() {
  puts("Help menu");
  puts("\t 1. Add holiday offer");
  puts("\t 2. Update holiday offer");
  puts("\t 3. Delete offer");
  puts("\t 4. List all offers");
  print_eol();
  puts("\t 5. Filter by type");
  puts("\t 6. Filter by price");
  puts("\t 7. Undo the last operation");
  print_eol();
  puts("\t 0. Quit");
}


x86 assembly (clang, -O0):
<ui_print_help_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <print_eol@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf05(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <print_eol@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ui_print_help_menu>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeef(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <print_eol@plt>
lea    0xef7(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <print_eol@plt>
lea    0xf12(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Help menu\00"
@.str.1 = [23 x i8] c"\09 1. Add holiday offer\00"
@.str.2 = [26 x i8] c"\09 2. Update holiday offer\00"
@.str.3 = [18 x i8] c"\09 3. Delete offer\00"
@.str.4 = [21 x i8] c"\09 4. List all offers\00"
@.str.5 = [20 x i8] c"\09 5. Filter by type\00"
@.str.6 = [21 x i8] c"\09 6. Filter by price\00"
@.str.7 = [29 x i8] c"\09 7. Undo the last operation\00"
@.str.8 = [10 x i8] c"\09 0. Quit\00"
define void @ui_print_help_menu() {
%1 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (...) @print_eol()
%7 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 (...) @print_eol()
%11 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"Help menu\00"
@.str.1 = [23 x i8] c"\09 1. Add holiday offer\00"
@.str.2 = [26 x i8] c"\09 2. Update holiday offer\00"
@.str.3 = [18 x i8] c"\09 3. Delete offer\00"
@.str.4 = [21 x i8] c"\09 4. List all offers\00"
@.str.5 = [20 x i8] c"\09 5. Filter by type\00"
@.str.6 = [21 x i8] c"\09 6. Filter by price\00"
@.str.7 = [29 x i8] c"\09 7. Undo the last operation\00"
@.str.8 = [10 x i8] c"\09 0. Quit\00"
define void @ui_print_help_menu() {
%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 ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 (...) @print_eol()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 (...) @print_eol()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
ret void
}