#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*/ putserr(char *);
void show_help() {
  putserr("usage");
  putserr("  pet [global-options] <command> [command-options] [FILE ...]");
  putserr("");
  putserr("commands");
  putserr("  add             Add an expense");
  putserr("  show            Show expenses");
  putserr("  help            Show this help");
  putserr("  optimize        Optimize expenses file");
  putserr("  version         Show version info");
  putserr("");
  putserr("global options");
  putserr("  --verbose,-v    Be verbose with output");
  putserr("");
  putserr("options for show");
  putserr("  --extended/-e   Print extended dates");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <putserr@plt>
lea    0xedf(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf10(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf05(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf02(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf17(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf2b(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf40(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf5d(%rip),%rdi
call   1030 <putserr@plt>
lea    0xebc(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf69(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf6c(%rip),%rdi
call   1030 <putserr@plt>
lea    0xe98(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf7d(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf82(%rip),%rdi
call   1030 <putserr@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <putserr@plt>
lea    0xee2(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf13(%rip),%rbx
mov    %rbx,%rdi
call   1030 <putserr@plt>
lea    0xf05(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf02(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf17(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf2b(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf40(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf5d(%rip),%rdi
call   1030 <putserr@plt>
mov    %rbx,%rdi
call   1030 <putserr@plt>
lea    0xf6d(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf70(%rip),%rdi
call   1030 <putserr@plt>
mov    %rbx,%rdi
call   1030 <putserr@plt>
lea    0xf85(%rip),%rdi
call   1030 <putserr@plt>
lea    0xf8a(%rip),%rdi
pop    %rbx
jmp    1030 <putserr@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"usage\00"
@.str.1 = [62 x i8] c" pet [global-options] <command> [command-options] [FILE ...]\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"commands\00"
@.str.4 = [33 x i8] c" add Add an expense\00"
@.str.5 = [32 x i8] c" show Show expenses\00"
@.str.6 = [33 x i8] c" help Show this help\00"
@.str.7 = [41 x i8] c" optimize Optimize expenses file\00"
@.str.8 = [36 x i8] c" version Show version info\00"
@.str.9 = [15 x i8] c"global options\00"
@.str.10 = [41 x i8] c" --verbose,-v Be verbose with output\00"
@.str.11 = [17 x i8] c"options for show\00"
@.str.12 = [39 x i8] c" --extended/-e Print extended dates\00"
define void @show_help() {
%1 = call i32 @putserr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @putserr(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @putserr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @putserr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @putserr(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @putserr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @putserr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @putserr(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @putserr(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @putserr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 @putserr(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @putserr(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"usage\00"
@.str.1 = [62 x i8] c" pet [global-options] <command> [command-options] [FILE ...]\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"commands\00"
@.str.4 = [33 x i8] c" add Add an expense\00"
@.str.5 = [32 x i8] c" show Show expenses\00"
@.str.6 = [33 x i8] c" help Show this help\00"
@.str.7 = [41 x i8] c" optimize Optimize expenses file\00"
@.str.8 = [36 x i8] c" version Show version info\00"
@.str.9 = [15 x i8] c"global options\00"
@.str.10 = [41 x i8] c" --verbose,-v Be verbose with output\00"
@.str.11 = [17 x i8] c"options for show\00"
@.str.12 = [39 x i8] c" --extended/-e Print extended dates\00"
define void @show_help() {
%1 = tail call i32 @putserr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @putserr(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @putserr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @putserr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @putserr(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @putserr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @putserr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @putserr(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @putserr(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @putserr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @putserr(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%14 = tail call i32 @putserr(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @putserr(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
ret void
}