#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*/ printf(char *);
void usage(void) {
  printf("usage:\n"
         "eapol_test [-nWS] -c<conf> [-a<AS IP>] [-p<AS port>] "
         "[-s<AS secret>] [-r<count>]\n"
         "eapol_test scard\n"
         "eapol_test sim <PIN> <num triplets> [debug]\n"
         "\n");
  printf("options:\n"
         "  -c<conf> = configuration file\n"
         "  -a<AS IP> = IP address of the authentication server, "
         "default 127.0.0.1\n"
         "  -p<AS port> = UDP port of the authentication server, "
         "default 1812\n"
         "  -s<AS secret> = shared secret with the authentication "
         "server, default 'radius'\n"
         "  -r<count> = number of re-authentications\n"
         "  -W = wait for a control interface monitor before starting\n"
         "  -S = save configuration after authentiation\n"
         "  -n = no MPPE keys expected\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [151 x i8] c"usage:\0Aeapol_test [-nWS] -c<conf> [-a<AS IP>] [-p<AS port>] [-s<AS secret>] [-r<count>]\0Aeapol_test scard\0Aeapol_test sim <PIN> <num triplets> [debug]\0A\0A\00"
@.str.1 = [442 x i8] c"options:\0A -c<conf> = configuration file\0A -a<AS IP> = IP address of the authentication server, default 127.0.0.1\0A -p<AS port> = UDP port of the authentication server, default 1812\0A -s<AS secret> = shared secret with the authentication server, default 'radius'\0A -r<count> = number of re-authentications\0A -W = wait for a control interface monitor before starting\0A -S = save configuration after authentiation\0A -n = no MPPE keys expected\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([442 x i8], [442 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [150 x i8] c"usage:\0Aeapol_test [-nWS] -c<conf> [-a<AS IP>] [-p<AS port>] [-s<AS secret>] [-r<count>]\0Aeapol_test scard\0Aeapol_test sim <PIN> <num triplets> [debug]\0A\00"
@str.2 = [441 x i8] c"options:\0A -c<conf> = configuration file\0A -a<AS IP> = IP address of the authentication server, default 127.0.0.1\0A -p<AS port> = UDP port of the authentication server, default 1812\0A -s<AS secret> = shared secret with the authentication server, default 'radius'\0A -r<count> = number of re-authentications\0A -W = wait for a control interface monitor before starting\0A -S = save configuration after authentiation\0A -n = no MPPE keys expected\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([441 x i8], [441 x i8]* @str.2, i64 0, i64 0))
ret void
}