#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 /*<<< orphan*/ showUnreadMessages();
void showOptions() {
  printf("Please select from the following options!\n");
  printf("c - start chat with a user\n");
  printf("n - start chat with a group\n");
  printf("j - join a group\n");
  printf("g - show group memberships\n");
  printf("l - list available users and groups\n");
  printf("q - quit\n\n");
  showUnreadMessages();
}


x86 assembly (clang, -O0):
<showOptions>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf44(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <showUnreadMessages@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showOptions>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xef6(%rip),%rdi
call   1040 <puts@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf15(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf29(%rip),%rdi
call   1040 <puts@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <showUnreadMessages@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Please select from the following options!\0A\00"
@.str.1 = [28 x i8] c"c - start chat with a user\0A\00"
@.str.2 = [29 x i8] c"n - start chat with a group\0A\00"
@.str.3 = [18 x i8] c"j - join a group\0A\00"
@.str.4 = [28 x i8] c"g - show group memberships\0A\00"
@.str.5 = [37 x i8] c"l - list available users and groups\0A\00"
@.str.6 = [11 x i8] c"q - quit\0A\0A\00"
define void @showOptions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (...) @showUnreadMessages()
ret void
}

LLVM IR (-O2):
@str = [42 x i8] c"Please select from the following options!\00"
@str.7 = [27 x i8] c"c - start chat with a user\00"
@str.8 = [28 x i8] c"n - start chat with a group\00"
@str.9 = [17 x i8] c"j - join a group\00"
@str.10 = [27 x i8] c"g - show group memberships\00"
@str.11 = [36 x i8] c"l - list available users and groups\00"
@str.12 = [10 x i8] c"q - quit\0A\00"
define void @showOptions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 (...) @showUnreadMessages()
ret void
}