#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void showusage(char *binname) {
  printf("%s %s\n", "currtime", "0.2.5");
  printf("Copyright %s %s <%s>\n", "2016", "Neel Chauhan", "neel@neelc.org");
  printf("Usage: %s [-tnh] [-T TICKS] [-e EXECNAME]\n", binname);
  printf("Options include:\n");
  printf("  -n\t\tDisplay the time on a new line for every tick (second)\n");
  printf("  -t\t\tPrint tick number \n");
  printf("  -T TICKS\tRun for 'TICKS' number of ticks, or for 'TICKS'\n");
  printf("\t\tnumber of minutes, hours, or days with a suffix of M, H, or D\n");
  printf("\t\trespectively (suffixes are not case sensitive, but only one \n");
  printf("\t\tsuffix can be used at runtime)\n");
  printf("  -e\t\tExecute 'EXECNAME' after 'TICKS' number of ticks (requires "
         "-T\n");
  printf("\t\tto be set)\n");
  printf("  -h\t\tDisplay this help\n");
  exit(0);
}


x86 assembly (clang, -O0):
<showusage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
lea    0xecd(%rip),%rsi
lea    0xecf(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    0xed6(%rip),%rsi
lea    0xed4(%rip),%rdx
lea    0xeda(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfdb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<showusage>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
lea    0xec5(%rip),%rsi
lea    0xec7(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
lea    0xece(%rip),%rsi
lea    0xecc(%rip),%rdx
lea    0xed2(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed3(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1013(%rip),%rdi
call   1030 <puts@plt>
lea    0x1014(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [9 x i8] c"currtime\00"
@.str.2 = [6 x i8] c"0.2.5\00"
@.str.3 = [22 x i8] c"Copyright %s %s <%s>\0A\00"
@.str.4 = [5 x i8] c"2016\00"
@.str.5 = [13 x i8] c"Neel Chauhan\00"
@.str.6 = [15 x i8] c"neel@neelc.org\00"
@.str.7 = [43 x i8] c"Usage: %s [-tnh] [-T TICKS] [-e EXECNAME]\0A\00"
@.str.8 = [18 x i8] c"Options include:\0A\00"
@.str.9 = [62 x i8] c" -n\09\09Display the time on a new line for every tick (second)\0A\00"
@.str.10 = [26 x i8] c" -t\09\09Print tick number \0A\00"
@.str.11 = [60 x i8] c" -T TICKS\09Run for 'TICKS' number of ticks, or for 'TICKS'\0A\00"
@.str.12 = [65 x i8] c"\09\09number of minutes, hours, or days with a suffix of M, H, or D\0A\00"
@.str.13 = [64 x i8] c"\09\09respectively (suffixes are not case sensitive, but only one \0A\00"
@.str.14 = [34 x i8] c"\09\09suffix can be used at runtime)\0A\00"
@.str.15 = [69 x i8] c" -e\09\09Execute 'EXECNAME' after 'TICKS' number of ticks (requires -T\0A\00"
@.str.16 = [14 x i8] c"\09\09to be set)\0A\00"
@.str.17 = [25 x i8] c" -h\09\09Display this help\0A\00"
define void @showusage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.11, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.13, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0))
%17 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [9 x i8] c"currtime\00"
@.str.2 = [6 x i8] c"0.2.5\00"
@.str.3 = [22 x i8] c"Copyright %s %s <%s>\0A\00"
@.str.4 = [5 x i8] c"2016\00"
@.str.5 = [13 x i8] c"Neel Chauhan\00"
@.str.6 = [15 x i8] c"neel@neelc.org\00"
@.str.7 = [43 x i8] c"Usage: %s [-tnh] [-T TICKS] [-e EXECNAME]\0A\00"
@str = [17 x i8] c"Options include:\00"
@str.18 = [61 x i8] c" -n\09\09Display the time on a new line for every tick (second)\00"
@str.19 = [25 x i8] c" -t\09\09Print tick number \00"
@str.20 = [59 x i8] c" -T TICKS\09Run for 'TICKS' number of ticks, or for 'TICKS'\00"
@str.21 = [64 x i8] c"\09\09number of minutes, hours, or days with a suffix of M, H, or D\00"
@str.22 = [63 x i8] c"\09\09respectively (suffixes are not case sensitive, but only one \00"
@str.23 = [33 x i8] c"\09\09suffix can be used at runtime)\00"
@str.24 = [68 x i8] c" -e\09\09Execute 'EXECNAME' after 'TICKS' number of ticks (requires -T\00"
@str.25 = [13 x i8] c"\09\09to be set)\00"
@str.26 = [24 x i8] c" -h\09\09Display this help\00"
define void @showusage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @exit(i32 0)
unreachable
}