#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 usage(void) {
  printf("Usage: peoplefinder -e|--empid <employee ID> [options]\n");
  printf("Options:\n");
  printf("  -r, --range <range>        Specify the range of employee id to "
         "find\n");
  printf("  -u, --user <your login id> Specify your login id(ex: 00702)\n");
  printf("  -g, --gender <0|1>         Specify gender(0:female, 1:male)\n");
  printf("  -d, --debug                Enable debugging logs\n");
  printf("  -h, --help                 Show hep message and exit\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd8(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd5(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"Usage: peoplefinder -e|--empid <employee ID> [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [71 x i8] c" -r, --range <range> Specify the range of employee id to find\0A\00"
@.str.3 = [63 x i8] c" -u, --user <your login id> Specify your login id(ex: 00702)\0A\00"
@.str.4 = [63 x i8] c" -g, --gender <0|1> Specify gender(0:female, 1:male)\0A\00"
@.str.5 = [52 x i8] c" -d, --debug Enable debugging logs\0A\00"
@.str.6 = [56 x i8] c" -h, --help Show hep message and exit\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [55 x i8] c"Usage: peoplefinder -e|--empid <employee ID> [options]\00"
@str.7 = [9 x i8] c"Options:\00"
@str.8 = [70 x i8] c" -r, --range <range> Specify the range of employee id to find\00"
@str.9 = [62 x i8] c" -u, --user <your login id> Specify your login id(ex: 00702)\00"
@str.10 = [62 x i8] c" -g, --gender <0|1> Specify gender(0:female, 1:male)\00"
@str.11 = [51 x i8] c" -d, --debug Enable debugging logs\00"
@str.12 = [55 x i8] c" -h, --help Show hep message and exit\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.12, i64 0, i64 0))
ret void
}