#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*/ write_string(char *);
void menu() {
  write_string("1. Login\n");
  write_string("2. Change username\n");
  write_string("3. Add todo\n");
  write_string("4. Change todo\n");
  write_string("5. Delete todo\n");
  write_string("6. Check todo done\n");
  write_string("7. Check todo undone\n");
  write_string("8. Add object\n");
  write_string("9. Change object\n");
  write_string("A. Delete object\n");
  write_string("B. Show all todos\n");
  write_string("C. Show todo\n");
  write_string("D. contact to admin\n");
  write_string("E. Quit\n");
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <write_string@plt>
lea    0xee3(%rip),%rdi
call   1030 <write_string@plt>
lea    0xeeb(%rip),%rdi
call   1030 <write_string@plt>
lea    0xeec(%rip),%rdi
call   1030 <write_string@plt>
lea    0xef0(%rip),%rdi
call   1030 <write_string@plt>
lea    0xef4(%rip),%rdi
call   1030 <write_string@plt>
lea    0xefc(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf06(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf09(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf0f(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf15(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf1c(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf1e(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf27(%rip),%rdi
call   1030 <write_string@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <write_string@plt>
lea    0xee6(%rip),%rdi
call   1030 <write_string@plt>
lea    0xeee(%rip),%rdi
call   1030 <write_string@plt>
lea    0xeef(%rip),%rdi
call   1030 <write_string@plt>
lea    0xef3(%rip),%rdi
call   1030 <write_string@plt>
lea    0xef7(%rip),%rdi
call   1030 <write_string@plt>
lea    0xeff(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf09(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf0c(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf12(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf18(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf1f(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf21(%rip),%rdi
call   1030 <write_string@plt>
lea    0xf2a(%rip),%rdi
pop    %rax
jmp    1030 <write_string@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"1. Login\0A\00"
@.str.1 = [20 x i8] c"2. Change username\0A\00"
@.str.2 = [13 x i8] c"3. Add todo\0A\00"
@.str.3 = [16 x i8] c"4. Change todo\0A\00"
@.str.4 = [16 x i8] c"5. Delete todo\0A\00"
@.str.5 = [20 x i8] c"6. Check todo done\0A\00"
@.str.6 = [22 x i8] c"7. Check todo undone\0A\00"
@.str.7 = [15 x i8] c"8. Add object\0A\00"
@.str.8 = [18 x i8] c"9. Change object\0A\00"
@.str.9 = [18 x i8] c"A. Delete object\0A\00"
@.str.10 = [19 x i8] c"B. Show all todos\0A\00"
@.str.11 = [14 x i8] c"C. Show todo\0A\00"
@.str.12 = [21 x i8] c"D. contact to admin\0A\00"
@.str.13 = [9 x i8] c"E. Quit\0A\00"
define void @menu() {
%1 = call i32 @write_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @write_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @write_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @write_string(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @write_string(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @write_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @write_string(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @write_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @write_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @write_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @write_string(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @write_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @write_string(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @write_string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"1. Login\0A\00"
@.str.1 = [20 x i8] c"2. Change username\0A\00"
@.str.2 = [13 x i8] c"3. Add todo\0A\00"
@.str.3 = [16 x i8] c"4. Change todo\0A\00"
@.str.4 = [16 x i8] c"5. Delete todo\0A\00"
@.str.5 = [20 x i8] c"6. Check todo done\0A\00"
@.str.6 = [22 x i8] c"7. Check todo undone\0A\00"
@.str.7 = [15 x i8] c"8. Add object\0A\00"
@.str.8 = [18 x i8] c"9. Change object\0A\00"
@.str.9 = [18 x i8] c"A. Delete object\0A\00"
@.str.10 = [19 x i8] c"B. Show all todos\0A\00"
@.str.11 = [14 x i8] c"C. Show todo\0A\00"
@.str.12 = [21 x i8] c"D. contact to admin\0A\00"
@.str.13 = [9 x i8] c"E. Quit\0A\00"
define void @menu() {
%1 = tail call i32 @write_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @write_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @write_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @write_string(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @write_string(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @write_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @write_string(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @write_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @write_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @write_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @write_string(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @write_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @write_string(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @write_string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
ret void
}