#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*/ cls();
int /*<<< orphan*/ printf(char *);
void menu() {
  cls();
  printf("\n------=== MAIL SERVER ===-------------------");
  printf("\n\t1. Sign In.");
  printf("\n\t2. Sign Up.");
  printf("\n\t3. Forgot password?");
  printf("\n\t4. Settings.");
  printf("\n\t5. Exit.");
  printf("\nSelect: ");
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <cls@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rax
xor    %eax,%eax
call   1040 <cls@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"\0A------=== MAIL SERVER ===-------------------\00"
@.str.1 = [14 x i8] c"\0A\091. Sign In.\00"
@.str.2 = [14 x i8] c"\0A\092. Sign Up.\00"
@.str.3 = [22 x i8] c"\0A\093. Forgot password?\00"
@.str.4 = [15 x i8] c"\0A\094. Settings.\00"
@.str.5 = [11 x i8] c"\0A\095. Exit.\00"
@.str.6 = [10 x i8] c"\0ASelect: \00"
define void @menu() {
%1 = call i32 (...) @cls()
%2 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"\0A------=== MAIL SERVER ===-------------------\00"
@.str.1 = [14 x i8] c"\0A\091. Sign In.\00"
@.str.2 = [14 x i8] c"\0A\092. Sign Up.\00"
@.str.3 = [22 x i8] c"\0A\093. Forgot password?\00"
@.str.4 = [15 x i8] c"\0A\094. Settings.\00"
@.str.5 = [11 x i8] c"\0A\095. Exit.\00"
@.str.6 = [10 x i8] c"\0ASelect: \00"
define void @menu() {
%1 = tail call i32 (...) @cls()
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret void
}