#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("Ethernet tunneling - version %s\n", "0.7");
  printf(" --hdevname <iface name>\tSets the host's interface name\n");
  printf("                        \tDefault: host0\n");
  printf(" --hdevmac <macaddr>\t\tSets the host's interface MAC ADDR\n");
  printf("                    \t\tDefault: FE:21:12:74:F3:88\n");
  printf(" --tdevname <iface name>\tSets the tunnel's interface name\n");
  printf("                        \tDefault: btun0\n");
  printf(" --tdevmac <macaddr>\t\tSets the tunnel's interface MAC ADDR\n");
  printf("                    \t\tDefault: FE:21:11:33:6D:05\n");
  printf(" --sysrw\t\t\tUse read/write syscalls\n");
  printf("                      \t\tDefault: sysrw\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeff(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1001(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xee2(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf04(%rip),%rdi
call   1040 <puts@plt>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf72(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbc(%rip),%rdi
call   1040 <puts@plt>
lea    0xfeb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1010(%rip),%rdi
call   1040 <puts@plt>
lea    0x1027(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"Ethernet tunneling - version %s\0A\00"
@.str.1 = [4 x i8] c"0.7\00"
@.str.2 = [57 x i8] c" --hdevname <iface name>\09Sets the host's interface name\0A\00"
@.str.3 = [41 x i8] c" \09Default: host0\0A\00"
@.str.4 = [58 x i8] c" --hdevmac <macaddr>\09\09Sets the host's interface MAC ADDR\0A\00"
@.str.5 = [50 x i8] c" \09\09Default: FE:21:12:74:F3:88\0A\00"
@.str.6 = [59 x i8] c" --tdevname <iface name>\09Sets the tunnel's interface name\0A\00"
@.str.7 = [41 x i8] c" \09Default: btun0\0A\00"
@.str.8 = [60 x i8] c" --tdevmac <macaddr>\09\09Sets the tunnel's interface MAC ADDR\0A\00"
@.str.9 = [50 x i8] c" \09\09Default: FE:21:11:33:6D:05\0A\00"
@.str.10 = [36 x i8] c" --sysrw\09\09\09Use read/write syscalls\0A\00"
@.str.11 = [40 x i8] c" \09\09Default: sysrw\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"Ethernet tunneling - version %s\0A\00"
@.str.1 = [4 x i8] c"0.7\00"
@str = [56 x i8] c" --hdevname <iface name>\09Sets the host's interface name\00"
@str.13 = [40 x i8] c" \09Default: host0\00"
@str.14 = [57 x i8] c" --hdevmac <macaddr>\09\09Sets the host's interface MAC ADDR\00"
@str.15 = [49 x i8] c" \09\09Default: FE:21:12:74:F3:88\00"
@str.16 = [58 x i8] c" --tdevname <iface name>\09Sets the tunnel's interface name\00"
@str.17 = [40 x i8] c" \09Default: btun0\00"
@str.18 = [59 x i8] c" --tdevmac <macaddr>\09\09Sets the tunnel's interface MAC ADDR\00"
@str.19 = [49 x i8] c" \09\09Default: FE:21:11:33:6D:05\00"
@str.20 = [35 x i8] c" --sysrw\09\09\09Use read/write syscalls\00"
@str.21 = [39 x i8] c" \09\09Default: sysrw\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
ret void
}