#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*/ fprintf(int /*<<< orphan*/, char *, char const *, ...);
int /*<<< orphan*/ stderr;
void print_help(const char *progname) {
  (void)fprintf(stderr, "Usage: %s [OPTION]...\n", progname);
  (void)fprintf(stderr, "  -i, --ipaddress        %s%s%s",
                "set ip address or host name (default: ", "127.0.0.1", ")\n");
  (void)fprintf(stderr, "  -p, --port             %s%s%s",
                "set port number or service name (default: ", "12345", ")\n");
  (void)fprintf(stderr, "  -g, --debug            %s",
                "execute for debug mode\n");
  (void)fprintf(stderr, "  -t, --time             %s", "print time\n");
  (void)fprintf(stderr, "  -h, --help             %s",
                "display this help and exit\n");
  (void)fprintf(stderr, "  -V, --version          %s",
                "output version information and exit\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
lea    0xed0(%rip),%rsi
lea    0xee9(%rip),%rdx
lea    0xf09(%rip),%rcx
lea    0xf0c(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xef8(%rip),%rsi
lea    0xf11(%rip),%rdx
lea    0xf35(%rip),%rcx
lea    0xee0(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
lea    0xf1d(%rip),%rsi
lea    0xf32(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edi
lea    0xf33(%rip),%rsi
lea    0xf48(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edi
lea    0xf3d(%rip),%rsi
lea    0xf52(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
lea    0xf57(%rip),%rsi
lea    0xf6c(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rdx
mov    0x2ec2(%rip),%rbx
mov    (%rbx),%edi
lea    0xed9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee0(%rip),%rsi
lea    0xef9(%rip),%rdx
lea    0xf19(%rip),%rcx
lea    0xf1c(%rip),%r14
mov    %r14,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf0c(%rip),%rsi
lea    0xf25(%rip),%rdx
lea    0xf49(%rip),%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf3c(%rip),%rsi
lea    0xf51(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf59(%rip),%rsi
lea    0xf6e(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6a(%rip),%rsi
lea    0xf7f(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8b(%rip),%rsi
lea    0xfa0(%rip),%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [23 x i8] c"Usage: %s [OPTION]...\0A\00"
@.str.1 = [32 x i8] c" -i, --ipaddress %s%s%s\00"
@.str.2 = [39 x i8] c"set ip address or host name (default: \00"
@.str.3 = [10 x i8] c"127.0.0.1\00"
@.str.4 = [3 x i8] c")\0A\00"
@.str.5 = [32 x i8] c" -p, --port %s%s%s\00"
@.str.6 = [43 x i8] c"set port number or service name (default: \00"
@.str.7 = [6 x i8] c"12345\00"
@.str.8 = [28 x i8] c" -g, --debug %s\00"
@.str.9 = [24 x i8] c"execute for debug mode\0A\00"
@.str.10 = [28 x i8] c" -t, --time %s\00"
@.str.11 = [12 x i8] c"print time\0A\00"
@.str.12 = [28 x i8] c" -h, --help %s\00"
@.str.13 = [28 x i8] c"display this help and exit\0A\00"
@.str.14 = [28 x i8] c" -V, --version %s\00"
@.str.15 = [37 x i8] c"output version information and exit\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"Usage: %s [OPTION]...\0A\00"
@.str.1 = [32 x i8] c" -i, --ipaddress %s%s%s\00"
@.str.2 = [39 x i8] c"set ip address or host name (default: \00"
@.str.3 = [10 x i8] c"127.0.0.1\00"
@.str.4 = [3 x i8] c")\0A\00"
@.str.5 = [32 x i8] c" -p, --port %s%s%s\00"
@.str.6 = [43 x i8] c"set port number or service name (default: \00"
@.str.7 = [6 x i8] c"12345\00"
@.str.8 = [28 x i8] c" -g, --debug %s\00"
@.str.9 = [24 x i8] c"execute for debug mode\0A\00"
@.str.10 = [28 x i8] c" -t, --time %s\00"
@.str.11 = [12 x i8] c"print time\0A\00"
@.str.12 = [28 x i8] c" -h, --help %s\00"
@.str.13 = [28 x i8] c"display this help and exit\0A\00"
@.str.14 = [28 x i8] c" -V, --version %s\00"
@.str.15 = [37 x i8] c"output version information and exit\0A\00"
define void @print_help(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
ret void
}