#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(int);
int /*<<< orphan*/ printf(char *, ...);
void usage() {
  printf("usage: racoon [-BdFv%s] %s[-f (file)] [-l (file)] [-p (port)]\n", "",
         "");
  printf("   -B: install SA to the kernel from the file "
         "specified by the configuration file.\n");
  printf("   -d: debug level, more -d will generate more debug message.\n");
  printf("   -F: run in foreground, do not become daemon.\n");
  printf("   -v: be more verbose\n");
  printf("   -f: pathname for configuration file.\n");
  printf("   -l: pathname for log file.\n");
  printf("   -p: port number for isakmp (default: %d).\n", 500);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0x105e(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
mov    $0x1f4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xf2d(%rip),%rdx
mov    %rdx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1030 <puts@plt>
lea    0xea7(%rip),%rdi
mov    $0x1f4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"usage: racoon [-BdFv%s] %s[-f (file)] [-l (file)] [-p (port)]\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [84 x i8] c" -B: install SA to the kernel from the file specified by the configuration file.\0A\00"
@.str.3 = [63 x i8] c" -d: debug level, more -d will generate more debug message.\0A\00"
@.str.4 = [49 x i8] c" -F: run in foreground, do not become daemon.\0A\00"
@.str.5 = [24 x i8] c" -v: be more verbose\0A\00"
@.str.6 = [41 x i8] c" -f: pathname for configuration file.\0A\00"
@.str.7 = [31 x i8] c" -l: pathname for log file.\0A\00"
@.str.8 = [46 x i8] c" -p: port number for isakmp (default: %d).\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 500)
%9 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [63 x i8] c"usage: racoon [-BdFv%s] %s[-f (file)] [-l (file)] [-p (port)]\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.8 = [46 x i8] c" -p: port number for isakmp (default: %d).\0A\00"
@str = [83 x i8] c" -B: install SA to the kernel from the file specified by the configuration file.\00"
@str.9 = [62 x i8] c" -d: debug level, more -d will generate more debug message.\00"
@str.10 = [48 x i8] c" -F: run in foreground, do not become daemon.\00"
@str.11 = [23 x i8] c" -v: be more verbose\00"
@str.12 = [40 x i8] c" -f: pathname for configuration file.\00"
@str.13 = [30 x i8] c" -l: pathname for log file.\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 500)
%9 = tail call i32 @exit(i32 1)
unreachable
}