#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 *);
int /*<<< orphan*/ printuse(char *);
int /*<<< orphan*/ printver();
void printhlp(char *pname) {
  printver();
  printuse(pname);
  printf("\nOptions:\n");
  printf("\t-b num, --ball=num\tSpecify the number of the balls\n");
  printf("\t-x num, --box=num\tSpecify the number of boxes\n");
  printf("\t-l, --verbose\tDisplay every possible result to stdout\n");
  printf("\t-h, --help\tDisplay this help\n");
  printf("\t-v, --version\tDisplay version infomation\n");
}


x86 assembly (clang, -O0):
<printhlp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <printver@plt>
mov    -0x8(%rbp),%rdi
call   1040 <printuse@plt>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhlp>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <printver@plt>
mov    %rbx,%rdi
call   1040 <printuse@plt>
lea    0xeb6(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3c(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0AOptions:\0A\00"
@.str.1 = [53 x i8] c"\09-b num, --ball=num\09Specify the number of the balls\0A\00"
@.str.2 = [48 x i8] c"\09-x num, --box=num\09Specify the number of boxes\0A\00"
@.str.3 = [56 x i8] c"\09-l, --verbose\09Display every possible result to stdout\0A\00"
@.str.4 = [31 x i8] c"\09-h, --help\09Display this help\0A\00"
@.str.5 = [43 x i8] c"\09-v, --version\09Display version infomation\0A\00"
define void @printhlp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @printver()
%4 = load i8*, i8** %2
%5 = call i32 @printuse(i8* %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [10 x i8] c"\0AOptions:\00"
@str.6 = [52 x i8] c"\09-b num, --ball=num\09Specify the number of the balls\00"
@str.7 = [47 x i8] c"\09-x num, --box=num\09Specify the number of boxes\00"
@str.8 = [55 x i8] c"\09-l, --verbose\09Display every possible result to stdout\00"
@str.9 = [30 x i8] c"\09-h, --help\09Display this help\00"
@str.10 = [42 x i8] c"\09-v, --version\09Display version infomation\00"
define void @printhlp(i8* %0) {
%2 = tail call i32 (...) @printver()
%3 = tail call i32 @printuse(i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.7, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.8, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.9, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.10, i64 0, i64 0))
ret void
}