#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 *);
void showMenu() {
  printf("\t\t\tCOMMANDS                                            PURPOSE\n");
  printf("\t\t\t---------------------------------------------------------------"
         "--------------------------------\n");
  printf("\t\t\t HELP                     : View the available list of "
         "commands in OmniPresence Command Central.\n");
  printf("\t\t\t QUIT                     : Exit from OmniPresence Command "
         "Central.\n");
  printf("\t\t\t ABOUT                    : View about OmniPresence Command "
         "Central (O.P.C.C.) and its developers.\n");
  printf("\t\t\t PHASE3                   : Start phase 3 for marking "
         "attendance from scanDump and lastDumpSession.\n");
  printf("\t\t\t CREATE_TABLE             : Create a table for a particular "
         "month.\n");
  printf("\t\t\t MENU                     : View the available list of "
         "commands in omniPresence Command Central.\n");
  printf("\t\t\t EXIT                     : Exit from OmniPresence Command "
         "Central.\n");
  printf("\t\t\t POPULATE                 : Populate & prepare the database "
         "with dummy values (For Presentation).\n");
  printf("\t\t\t PHASE1                   : Start the RFID server to detect "
         "available devices in a Piconet.\n");
  printf("\t\t\t WORKERS                  : Show all the workers working in "
         "this organisation.\n");
  printf("\t\t\t PREPARE                  : Prepare a sheet at the start of "
         "the month (Marks the holidays).\n");
  printf("\t\t\t FEODB                    : Open oobase Front End Window.\n");
  printf(
      "\t\t\t SANCTION_LEAVE           : Sanction leaves for the employees.\n");
  printf("\t\t\t VALIDATE                 : Validates the attendanceSheet and "
         "prepares for sending SMSes.\n");
  printf("\t\t\t SHOW_INFO                : Shows the information of the "
         "employees for an Employee ID.\n");
  printf("\t\t\t SHOW_STATUS              : Opens a query tool for getting "
         "attendance status of an employee.\n");
  printf("\t\t\t USERADD                  : Adds a user in workers Database of "
         "the omniPresence.\n");
  printf("\t\t\t NOTIFY                   : Notifies the employees of their "
         "attendance status using SMS.\n");
  printf("\t\t\t AUTHENTICATE             : Authenticates the user in the "
         "omniPresence. (Opens Login Screen).\n");
  printf("\t\t\t BACKUP                   : Takes perodic backup of the "
         "complete omniPresence Database.\n");
  printf("\t\t\t SHOW_MD                  : Show Month Details for a given "
         "employee.\n");
  printf("\t\t\t---------------------------------------------------------------"
         "--------------------------------\n");
}


x86 assembly (clang, -O0):
<showMenu>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bd(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1151(%rip),%rdi
call   1030 <printf@plt>
lea    0x118d(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e7(%rip),%rdi
call   1030 <printf@plt>
lea    0x123b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1282(%rip),%rdi
call   1030 <printf@plt>
lea    0x12d6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1308(%rip),%rdi
call   1030 <printf@plt>
lea    0x133f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1391(%rip),%rdi
call   1030 <printf@plt>
lea    0x13e0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1435(%rip),%rdi
call   1030 <printf@plt>
lea    0x147e(%rip),%rdi
call   1030 <printf@plt>
lea    0x14cf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1525(%rip),%rdi
call   1030 <printf@plt>
lea    0x1575(%rip),%rdi
call   1030 <printf@plt>
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showMenu>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1643(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf0c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x108e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1121(%rip),%rdi
call   1030 <puts@plt>
lea    0x117a(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1213(%rip),%rdi
call   1030 <puts@plt>
lea    0x1266(%rip),%rdi
call   1030 <puts@plt>
lea    0x1297(%rip),%rdi
call   1030 <puts@plt>
lea    0x12cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x131e(%rip),%rdi
call   1030 <puts@plt>
lea    0x136c(%rip),%rdi
call   1030 <puts@plt>
lea    0x13c0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1408(%rip),%rdi
call   1030 <puts@plt>
lea    0x1458(%rip),%rdi
call   1030 <puts@plt>
lea    0x14ad(%rip),%rdi
call   1030 <puts@plt>
lea    0x14fc(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"\09\09\09COMMANDS PURPOSE\0A\00"
@.str.1 = [100 x i8] c"\09\09\09-----------------------------------------------------------------------------------------------\0A\00"
@.str.2 = [101 x i8] c"\09\09\09 HELP : View the available list of commands in OmniPresence Command Central.\0A\00"
@.str.3 = [72 x i8] c"\09\09\09 QUIT : Exit from OmniPresence Command Central.\0A\00"
@.str.4 = [103 x i8] c"\09\09\09 ABOUT : View about OmniPresence Command Central (O.P.C.C.) and its developers.\0A\00"
@.str.5 = [104 x i8] c"\09\09\09 PHASE3 : Start phase 3 for marking attendance from scanDump and lastDumpSession.\0A\00"
@.str.6 = [71 x i8] c"\09\09\09 CREATE_TABLE : Create a table for a particular month.\0A\00"
@.str.7 = [101 x i8] c"\09\09\09 MENU : View the available list of commands in omniPresence Command Central.\0A\00"
@.str.8 = [72 x i8] c"\09\09\09 EXIT : Exit from OmniPresence Command Central.\0A\00"
@.str.9 = [102 x i8] c"\09\09\09 POPULATE : Populate & prepare the database with dummy values (For Presentation).\0A\00"
@.str.10 = [96 x i8] c"\09\09\09 PHASE1 : Start the RFID server to detect available devices in a Piconet.\0A\00"
@.str.11 = [83 x i8] c"\09\09\09 WORKERS : Show all the workers working in this organisation.\0A\00"
@.str.12 = [96 x i8] c"\09\09\09 PREPARE : Prepare a sheet at the start of the month (Marks the holidays).\0A\00"
@.str.13 = [62 x i8] c"\09\09\09 FEODB : Open oobase Front End Window.\0A\00"
@.str.14 = [67 x i8] c"\09\09\09 SANCTION_LEAVE : Sanction leaves for the employees.\0A\00"
@.str.15 = [94 x i8] c"\09\09\09 VALIDATE : Validates the attendanceSheet and prepares for sending SMSes.\0A\00"
@.str.16 = [91 x i8] c"\09\09\09 SHOW_INFO : Shows the information of the employees for an Employee ID.\0A\00"
@.str.17 = [97 x i8] c"\09\09\09 SHOW_STATUS : Opens a query tool for getting attendance status of an employee.\0A\00"
@.str.18 = [85 x i8] c"\09\09\09 USERADD : Adds a user in workers Database of the omniPresence.\0A\00"
@.str.19 = [93 x i8] c"\09\09\09 NOTIFY : Notifies the employees of their attendance status using SMS.\0A\00"
@.str.20 = [98 x i8] c"\09\09\09 AUTHENTICATE : Authenticates the user in the omniPresence. (Opens Login Screen).\0A\00"
@.str.21 = [92 x i8] c"\09\09\09 BACKUP : Takes perodic backup of the complete omniPresence Database.\0A\00"
@.str.22 = [73 x i8] c"\09\09\09 SHOW_MD : Show Month Details for a given employee.\0A\00"
define void @showMenu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [63 x i8] c"\09\09\09COMMANDS PURPOSE\00"
@str.24 = [100 x i8] c"\09\09\09 HELP : View the available list of commands in OmniPresence Command Central.\00"
@str.25 = [71 x i8] c"\09\09\09 QUIT : Exit from OmniPresence Command Central.\00"
@str.26 = [102 x i8] c"\09\09\09 ABOUT : View about OmniPresence Command Central (O.P.C.C.) and its developers.\00"
@str.27 = [103 x i8] c"\09\09\09 PHASE3 : Start phase 3 for marking attendance from scanDump and lastDumpSession.\00"
@str.28 = [70 x i8] c"\09\09\09 CREATE_TABLE : Create a table for a particular month.\00"
@str.29 = [100 x i8] c"\09\09\09 MENU : View the available list of commands in omniPresence Command Central.\00"
@str.30 = [71 x i8] c"\09\09\09 EXIT : Exit from OmniPresence Command Central.\00"
@str.31 = [101 x i8] c"\09\09\09 POPULATE : Populate & prepare the database with dummy values (For Presentation).\00"
@str.32 = [95 x i8] c"\09\09\09 PHASE1 : Start the RFID server to detect available devices in a Piconet.\00"
@str.33 = [82 x i8] c"\09\09\09 WORKERS : Show all the workers working in this organisation.\00"
@str.34 = [95 x i8] c"\09\09\09 PREPARE : Prepare a sheet at the start of the month (Marks the holidays).\00"
@str.35 = [61 x i8] c"\09\09\09 FEODB : Open oobase Front End Window.\00"
@str.36 = [66 x i8] c"\09\09\09 SANCTION_LEAVE : Sanction leaves for the employees.\00"
@str.37 = [93 x i8] c"\09\09\09 VALIDATE : Validates the attendanceSheet and prepares for sending SMSes.\00"
@str.38 = [90 x i8] c"\09\09\09 SHOW_INFO : Shows the information of the employees for an Employee ID.\00"
@str.39 = [96 x i8] c"\09\09\09 SHOW_STATUS : Opens a query tool for getting attendance status of an employee.\00"
@str.40 = [84 x i8] c"\09\09\09 USERADD : Adds a user in workers Database of the omniPresence.\00"
@str.41 = [92 x i8] c"\09\09\09 NOTIFY : Notifies the employees of their attendance status using SMS.\00"
@str.42 = [97 x i8] c"\09\09\09 AUTHENTICATE : Authenticates the user in the omniPresence. (Opens Login Screen).\00"
@str.43 = [91 x i8] c"\09\09\09 BACKUP : Takes perodic backup of the complete omniPresence Database.\00"
@str.44 = [72 x i8] c"\09\09\09 SHOW_MD : Show Month Details for a given employee.\00"
@str.45 = [99 x i8] c"\09\09\09-----------------------------------------------------------------------------------------------\00"
define void @showMenu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.45, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str.24, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.25, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.26, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str.27, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.28, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str.29, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.30, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.31, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.32, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.33, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.34, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.35, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.36, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.37, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.38, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @str.39, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.40, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.41, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.42, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.43, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.44, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.45, i64 0, i64 0))
ret void
}