#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_raw_ethernet() {
  printf("  Raw Ethernet options :\n");
  printf("  -B, --source_mac ");
  printf(" source MAC address by this format XX:XX:XX:XX:XX:XX (default take "
         "the MAC address form GID)\n");
  printf("  -E, --dest_mac ");
  printf(" destination MAC address by this format XX:XX:XX:XX:XX:XX **MUST** "
         "be entered \n");
  printf("  -J, --server_ip ");
  printf(" server ip address by this format X.X.X.X (using to send packets "
         "with IP header)\n");
  printf("  -j, --client_ip ");
  printf(" client ip address by this format X.X.X.X (using to send packets "
         "with IP header)\n");
  printf("  -K, --server_port ");
  printf(" server port number (using to send packets with UPD header)\n");
  printf("  -k, --client_port ");
  printf(" client port number (using to send packets with UDP header)\n");
  printf("  -Z, --server ");
  printf(" choose server side for the current machine (--server/--client must "
         "be selected )\n");
  printf("  -P, --client ");
  printf(" choose client side for the current machine (--server/--client must "
         "be selected)\n");
}


x86 assembly (clang, -O0):
<usage_raw_ethernet>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1074(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f4(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage_raw_ethernet>:
push   %rax
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
call   1040 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xec2(%rip),%rdi
call   1040 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
lea    0x1024(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb5(%rip),%rdi
call   1040 <printf@plt>
lea    0x1081(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0x10a5(%rip),%rdi
call   1030 <puts@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
lea    0x10df(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c" Raw Ethernet options :\0A\00"
@.str.1 = [20 x i8] c" -B, --source_mac \00"
@.str.2 = [94 x i8] c" source MAC address by this format XX:XX:XX:XX:XX:XX (default take the MAC address form GID)\0A\00"
@.str.3 = [18 x i8] c" -E, --dest_mac \00"
@.str.4 = [80 x i8] c" destination MAC address by this format XX:XX:XX:XX:XX:XX **MUST** be entered \0A\00"
@.str.5 = [19 x i8] c" -J, --server_ip \00"
@.str.6 = [82 x i8] c" server ip address by this format X.X.X.X (using to send packets with IP header)\0A\00"
@.str.7 = [19 x i8] c" -j, --client_ip \00"
@.str.8 = [82 x i8] c" client ip address by this format X.X.X.X (using to send packets with IP header)\0A\00"
@.str.9 = [21 x i8] c" -K, --server_port \00"
@.str.10 = [61 x i8] c" server port number (using to send packets with UPD header)\0A\00"
@.str.11 = [21 x i8] c" -k, --client_port \00"
@.str.12 = [61 x i8] c" client port number (using to send packets with UDP header)\0A\00"
@.str.13 = [16 x i8] c" -Z, --server \00"
@.str.14 = [83 x i8] c" choose server side for the current machine (--server/--client must be selected )\0A\00"
@.str.15 = [16 x i8] c" -P, --client \00"
@.str.16 = [82 x i8] c" choose client side for the current machine (--server/--client must be selected)\0A\00"
define void @usage_raw_ethernet() {
%1 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [20 x i8] c" -B, --source_mac \00"
@.str.3 = [18 x i8] c" -E, --dest_mac \00"
@.str.5 = [19 x i8] c" -J, --server_ip \00"
@.str.7 = [19 x i8] c" -j, --client_ip \00"
@.str.9 = [21 x i8] c" -K, --server_port \00"
@.str.11 = [21 x i8] c" -k, --client_port \00"
@.str.13 = [16 x i8] c" -Z, --server \00"
@.str.15 = [16 x i8] c" -P, --client \00"
@str = [25 x i8] c" Raw Ethernet options :\00"
@str.17 = [93 x i8] c" source MAC address by this format XX:XX:XX:XX:XX:XX (default take the MAC address form GID)\00"
@str.18 = [79 x i8] c" destination MAC address by this format XX:XX:XX:XX:XX:XX **MUST** be entered \00"
@str.19 = [81 x i8] c" server ip address by this format X.X.X.X (using to send packets with IP header)\00"
@str.20 = [81 x i8] c" client ip address by this format X.X.X.X (using to send packets with IP header)\00"
@str.21 = [60 x i8] c" server port number (using to send packets with UPD header)\00"
@str.22 = [60 x i8] c" client port number (using to send packets with UDP header)\00"
@str.23 = [82 x i8] c" choose server side for the current machine (--server/--client must be selected )\00"
@str.24 = [81 x i8] c" choose client side for the current machine (--server/--client must be selected)\00"
define void @usage_raw_ethernet() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.24, i64 0, i64 0))
ret void
}