#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 *);
char *ipsec_version_code();
int /*<<< orphan*/ stderr;
void help(void) {
  fprintf(stderr,
          "Usage:\n\n"
          "showpolicy"
          " [--cgi]        lookup the particulars from CGI variables.\n"
          " [--socket]     lookup the particulars from the socket on stdin.\n"
          " [--udp X]      open a UDP socket on port X\n"
          " [--tcp X]      open a TCP socket on port X\n"
          " [--sockpolicy] dump based upon IP_IPSEC_RECVREF.\n"
          " [--textual]    dump output in human friendly form\n"
          " [--plaintext X]    string to dump if no security\n"
          " [--vpntext X]      string to dump if VPN configured tunnel\n"
          " [--privacytext X]  string to dump if just plain DNS OE\n"
          " [--dnssectext X]   string to dump if just DNSSEC OE\n"
          "\n\n"
          "Openswan %s\n",
          ipsec_version_code());
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <ipsec_version_code@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xeb8(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2eb8(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1040 <ipsec_version_code@plt>
lea    0xec8(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [565 x i8] c"Usage:\0A\0Ashowpolicy [--cgi] lookup the particulars from CGI variables.\0A [--socket] lookup the particulars from the socket on stdin.\0A [--udp X] open a UDP socket on port X\0A [--tcp X] open a TCP socket on port X\0A [--sockpolicy] dump based upon IP_IPSEC_RECVREF.\0A [--textual] dump output in human friendly form\0A [--plaintext X] string to dump if no security\0A [--vpntext X] string to dump if VPN configured tunnel\0A [--privacytext X] string to dump if just plain DNS OE\0A [--dnssectext X] string to dump if just DNSSEC OE\0A\0A\0AOpenswan %s\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @ipsec_version_code()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([565 x i8], [565 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [565 x i8] c"Usage:\0A\0Ashowpolicy [--cgi] lookup the particulars from CGI variables.\0A [--socket] lookup the particulars from the socket on stdin.\0A [--udp X] open a UDP socket on port X\0A [--tcp X] open a TCP socket on port X\0A [--sockpolicy] dump based upon IP_IPSEC_RECVREF.\0A [--textual] dump output in human friendly form\0A [--plaintext X] string to dump if no security\0A [--vpntext X] string to dump if VPN configured tunnel\0A [--privacytext X] string to dump if just plain DNS OE\0A [--dnssectext X] string to dump if just DNSSEC OE\0A\0A\0AOpenswan %s\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @ipsec_version_code()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([565 x i8], [565 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}