#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
char *gettext(char *);
int /*<<< orphan*/ printf(char *, ...);
void printHelp() {
  printf("%s%s", gettext("Usage: "),
         "\t./lanbeacon [-i VLAN_ID] [-n VLAN_NAME] [-4 IPv4_SUBNETWORK] [-6 "
         "IPv6_SUBNETWORK]"
         "[-e EMAIL_CONTACTPERSON] [-d DHCP_TYPES] [-r ROUTER_INFORMATION] [-c "
         "CUSTOM_STRING]"
         "[-f SENDING_INTERFACE] [-g] -p PRIVATE_KEY_PASSWORD [-s "
         "PATH_TO_PRIVATE_KEY]"
         "[-v PATH_TO_PUBLIC_KEY] [-z SEND_FREQUENCY]");
  printf("\t./lanbeacon -l [-a] [-v PATH_TO_PUBLIC_KEY] [-y SCROLL_SPEED]\n");
  printf("\t./client -h\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xeca(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rsi
lea    0xeb6(%rip),%rdi
lea    0xebc(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xffd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xebd(%rip),%rdi
call   1040 <gettext@plt>
lea    0xeac(%rip),%rdi
lea    0xeb2(%rip),%rdx
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1030 <puts@plt>
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [8 x i8] c"Usage: \00"
@.str.2 = [285 x i8] c"\09./lanbeacon [-i VLAN_ID] [-n VLAN_NAME] [-4 IPv4_SUBNETWORK] [-6 IPv6_SUBNETWORK][-e EMAIL_CONTACTPERSON] [-d DHCP_TYPES] [-r ROUTER_INFORMATION] [-c CUSTOM_STRING][-f SENDING_INTERFACE] [-g] -p PRIVATE_KEY_PASSWORD [-s PATH_TO_PRIVATE_KEY][-v PATH_TO_PUBLIC_KEY] [-z SEND_FREQUENCY]\00"
@.str.3 = [64 x i8] c"\09./lanbeacon -l [-a] [-v PATH_TO_PUBLIC_KEY] [-y SCROLL_SPEED]\0A\00"
@.str.4 = [14 x i8] c"\09./client -h\0A\00"
@EXIT_FAILURE = global i32 0
define void @printHelp() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %1, i8* getelementptr inbounds ([285 x i8], [285 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%5 = load i32, i32* @EXIT_FAILURE
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [8 x i8] c"Usage: \00"
@.str.2 = [285 x i8] c"\09./lanbeacon [-i VLAN_ID] [-n VLAN_NAME] [-4 IPv4_SUBNETWORK] [-6 IPv6_SUBNETWORK][-e EMAIL_CONTACTPERSON] [-d DHCP_TYPES] [-r ROUTER_INFORMATION] [-c CUSTOM_STRING][-f SENDING_INTERFACE] [-g] -p PRIVATE_KEY_PASSWORD [-s PATH_TO_PRIVATE_KEY][-v PATH_TO_PUBLIC_KEY] [-z SEND_FREQUENCY]\00"
@EXIT_FAILURE = global i32 0
@str = [63 x i8] c"\09./lanbeacon -l [-a] [-v PATH_TO_PUBLIC_KEY] [-y SCROLL_SPEED]\00"
@str.5 = [13 x i8] c"\09./client -h\00"
define void @printHelp() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %1, i8* getelementptr inbounds ([285 x i8], [285 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.5, i64 0, i64 0))
%5 = load i32, i32* @EXIT_FAILURE
%6 = tail call i32 @exit(i32 %5)
unreachable
}