#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*/ clrscr();
int /*<<< orphan*/ puts(char *);
void listOptions(void) {
  clrscr();
  puts(" ----------------------------------------------- ");
  puts("|List of Options                                |");
  puts("|-----------------------------------------------|");
  puts("|1 --- Current Time and Date                    |");
  puts("|2 --- Electric Bill Calculator                 |");
  puts("|3 --- The Guessing Game                        |");
  puts("|4 --- Calendar Generator                       |");
  puts("|5 --- Workplace Simulator 2015 (in progress)   |");
  puts("|6 --- List of Options                          |");
  puts("|7 --- Add / Delete accounts                    |");
  puts("|8 --- Change your password                     |");
  puts("|9 ---                                          |");
  puts("|0 --- Exit                                     |");
  puts(" -----------------------------------------------");
  puts(" ");
}


x86 assembly (clang, -O0):
<listOptions>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <clrscr@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf40(%rip),%rdi
call   1040 <puts@plt>
lea    0xf66(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1040 <puts@plt>
lea    0xffe(%rip),%rdi
call   1040 <puts@plt>
lea    0x1024(%rip),%rdi
call   1040 <puts@plt>
lea    0x104a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1070(%rip),%rdi
call   1040 <puts@plt>
lea    0x1096(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bc(%rip),%rdi
call   1040 <puts@plt>
lea    0xe56(%rip),%rdi
call   1040 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<listOptions>:
push   %rax
xor    %eax,%eax
call   1030 <clrscr@plt>
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0xef7(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1001(%rip),%rdi
call   1040 <puts@plt>
lea    0x1027(%rip),%rdi
call   1040 <puts@plt>
lea    0x104d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1073(%rip),%rdi
call   1040 <puts@plt>
lea    0x1099(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bf(%rip),%rdi
call   1040 <puts@plt>
lea    0xe59(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [50 x i8] c" ----------------------------------------------- \00"
@.str.1 = [50 x i8] c"|List of Options |\00"
@.str.2 = [50 x i8] c"|-----------------------------------------------|\00"
@.str.3 = [50 x i8] c"|1 --- Current Time and Date |\00"
@.str.4 = [50 x i8] c"|2 --- Electric Bill Calculator |\00"
@.str.5 = [50 x i8] c"|3 --- The Guessing Game |\00"
@.str.6 = [50 x i8] c"|4 --- Calendar Generator |\00"
@.str.7 = [50 x i8] c"|5 --- Workplace Simulator 2015 (in progress) |\00"
@.str.8 = [50 x i8] c"|6 --- List of Options |\00"
@.str.9 = [50 x i8] c"|7 --- Add / Delete accounts |\00"
@.str.10 = [50 x i8] c"|8 --- Change your password |\00"
@.str.11 = [50 x i8] c"|9 --- |\00"
@.str.12 = [50 x i8] c"|0 --- Exit |\00"
@.str.13 = [49 x i8] c" -----------------------------------------------\00"
@.str.14 = [2 x i8] c" \00"
define void @listOptions() {
%1 = call i32 (...) @clrscr()
%2 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c" ----------------------------------------------- \00"
@.str.1 = [50 x i8] c"|List of Options |\00"
@.str.2 = [50 x i8] c"|-----------------------------------------------|\00"
@.str.3 = [50 x i8] c"|1 --- Current Time and Date |\00"
@.str.4 = [50 x i8] c"|2 --- Electric Bill Calculator |\00"
@.str.5 = [50 x i8] c"|3 --- The Guessing Game |\00"
@.str.6 = [50 x i8] c"|4 --- Calendar Generator |\00"
@.str.7 = [50 x i8] c"|5 --- Workplace Simulator 2015 (in progress) |\00"
@.str.8 = [50 x i8] c"|6 --- List of Options |\00"
@.str.9 = [50 x i8] c"|7 --- Add / Delete accounts |\00"
@.str.10 = [50 x i8] c"|8 --- Change your password |\00"
@.str.11 = [50 x i8] c"|9 --- |\00"
@.str.12 = [50 x i8] c"|0 --- Exit |\00"
@.str.13 = [49 x i8] c" -----------------------------------------------\00"
@.str.14 = [2 x i8] c" \00"
define void @listOptions() {
%1 = tail call i32 (...) @clrscr()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
ret void
}