#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 menuSignedIn() {
  cls();
  printf("\n------=== HELLO USER ===-------------------");
  printf("\n\t1. Compose a new email.");
  printf("\n\t2. Read email.");
  printf("\n\t3. Delete email.");
  printf("\n\t4. Exit.");
  printf("\nSelect: ");
}


x86 assembly (clang, -O0):
<menuSignedIn>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <cls@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<menuSignedIn>:
push   %rax
xor    %eax,%eax
call   1040 <cls@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"\0A------=== HELLO USER ===-------------------\00"
@.str.1 = [26 x i8] c"\0A\091. Compose a new email.\00"
@.str.2 = [17 x i8] c"\0A\092. Read email.\00"
@.str.3 = [19 x i8] c"\0A\093. Delete email.\00"
@.str.4 = [11 x i8] c"\0A\094. Exit.\00"
@.str.5 = [10 x i8] c"\0ASelect: \00"
define void @menuSignedIn() {
%1 = call i32 (...) @cls()
%2 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [45 x i8] c"\0A------=== HELLO USER ===-------------------\00"
@.str.1 = [26 x i8] c"\0A\091. Compose a new email.\00"
@.str.2 = [17 x i8] c"\0A\092. Read email.\00"
@.str.3 = [19 x i8] c"\0A\093. Delete email.\00"
@.str.4 = [11 x i8] c"\0A\094. Exit.\00"
@.str.5 = [10 x i8] c"\0ASelect: \00"
define void @menuSignedIn() {
%1 = tail call i32 (...) @cls()
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
ret void
}