#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*/ print_usage(int /*<<< orphan*/, char const *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdout;
void print_help(const char *name) {
  print_usage(stdout, name);
  printf("\n\t-f, --family\t- Set protocol family to use for"
         " communicating with HOST. FAMILY can be set to \"inet\""
         " (IPv4), \"inet6\" (IPv6) or \"unspec\" (automatic).\n");
  printf("\t-4\t\t- Shortcut for --family=inet.\n");
  printf("\t-6\t\t- Shortcut for --family=inet6.\n");
  printf("\t-n, --numeric\t- Avoid name resolution for HOST and PORT.\n");
  printf("\t-H, --host\t- Set hostname, or IP address, to communicate"
         " with. Defaults to \"%s\".\n",
         "localhost");
  printf("\t-p, --port\t- Set remote port to use for communicating"
         " with HOST. Defaults to \"%s\".\n",
         "2001");
  printf("\t-t, --timeout\t- Set inactivity timeout.\n");
  printf("\t-v, --verbose\t- Verbose output.\n");
  printf("\t-V, --version\t- Display version number and exit.\n");
  printf("\t-h, --help\t- Display this help message and exit.\n");
  printf("\n\tCOMMAND is the accel-ppp command line to be executed.\n");
  printf("\tIf no COMMAND is provided, then data read from standard"
         " input is forwarded to accel-ppp.\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1040 <print_usage@plt>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
lea    0xfe9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe5(%rip),%rdi
lea    0x1033(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1046(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
mov    %rdi,%rsi
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1050 <print_usage@plt>
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
call   1030 <puts@plt>
lea    0x100e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1026(%rip),%rdi
call   1030 <puts@plt>
lea    0xe87(%rip),%rdi
lea    0xed3(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
lea    0xf1d(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x102a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1047(%rip),%rdi
call   1030 <puts@plt>
lea    0x105c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d4(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [150 x i8] c"\0A\09-f, --family\09- Set protocol family to use for communicating with HOST. FAMILY can be set to \22inet\22 (IPv4), \22inet6\22 (IPv6) or \22unspec\22 (automatic).\0A\00"
@.str.1 = [36 x i8] c"\09-4\09\09- Shortcut for --family=inet.\0A\00"
@.str.2 = [37 x i8] c"\09-6\09\09- Shortcut for --family=inet6.\0A\00"
@.str.3 = [59 x i8] c"\09-n, --numeric\09- Avoid name resolution for HOST and PORT.\0A\00"
@.str.4 = [83 x i8] c"\09-H, --host\09- Set hostname, or IP address, to communicate with. Defaults to \22%s\22.\0A\00"
@.str.5 = [10 x i8] c"localhost\00"
@.str.6 = [85 x i8] c"\09-p, --port\09- Set remote port to use for communicating with HOST. Defaults to \22%s\22.\0A\00"
@.str.7 = [5 x i8] c"2001\00"
@.str.8 = [42 x i8] c"\09-t, --timeout\09- Set inactivity timeout.\0A\00"
@.str.9 = [34 x i8] c"\09-v, --verbose\09- Verbose output.\0A\00"
@.str.10 = [51 x i8] c"\09-V, --version\09- Display version number and exit.\0A\00"
@.str.11 = [51 x i8] c"\09-h, --help\09- Display this help message and exit.\0A\00"
@.str.12 = [57 x i8] c"\0A\09COMMAND is the accel-ppp command line to be executed.\0A\00"
@.str.13 = [91 x i8] c"\09If no COMMAND is provided, then data read from standard input is forwarded to accel-ppp.\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = load i8*, i8** %2
%5 = call i32 @print_usage(i32 %3, i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str.4 = [83 x i8] c"\09-H, --host\09- Set hostname, or IP address, to communicate with. Defaults to \22%s\22.\0A\00"
@.str.5 = [10 x i8] c"localhost\00"
@.str.6 = [85 x i8] c"\09-p, --port\09- Set remote port to use for communicating with HOST. Defaults to \22%s\22.\0A\00"
@.str.7 = [5 x i8] c"2001\00"
@str = [149 x i8] c"\0A\09-f, --family\09- Set protocol family to use for communicating with HOST. FAMILY can be set to \22inet\22 (IPv4), \22inet6\22 (IPv6) or \22unspec\22 (automatic).\00"
@str.14 = [35 x i8] c"\09-4\09\09- Shortcut for --family=inet.\00"
@str.15 = [36 x i8] c"\09-6\09\09- Shortcut for --family=inet6.\00"
@str.16 = [58 x i8] c"\09-n, --numeric\09- Avoid name resolution for HOST and PORT.\00"
@str.17 = [41 x i8] c"\09-t, --timeout\09- Set inactivity timeout.\00"
@str.18 = [33 x i8] c"\09-v, --verbose\09- Verbose output.\00"
@str.19 = [50 x i8] c"\09-V, --version\09- Display version number and exit.\00"
@str.20 = [50 x i8] c"\09-h, --help\09- Display this help message and exit.\00"
@str.21 = [56 x i8] c"\0A\09COMMAND is the accel-ppp command line to be executed.\00"
@str.22 = [90 x i8] c"\09If no COMMAND is provided, then data read from standard input is forwarded to accel-ppp.\00"
define void @print_help(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @print_usage(i32 %2, i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.18, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.20, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.21, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.22, i64 0, i64 0))
ret void
}