#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I "
                  "device] [-s source] destination\n"
                  "  -f : quit on first reply\n"
                  "  -q : be quiet\n"
                  "  -b : keep broadcasting, don't go unicast\n"
                  "  -D : duplicate address detection mode\n"
                  "  -U : Unsolicited ARP mode, update your neighbours\n"
                  "  -A : ARP answer mode, update your neighbours\n"
                  "  -V : print version and exit\n"
                  "  -c count : how many packets to send\n"
                  "  -w timeout : how long to wait for a reply\n"
                  "  -I device : which ethernet device to use (eth0)\n"
                  "  -s source : source ip address\n"
                  "  destination : ask for what ip address\n");
  exit(2);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [545 x i8] c"Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination\0A -f : quit on first reply\0A -q : be quiet\0A -b : keep broadcasting, don't go unicast\0A -D : duplicate address detection mode\0A -U : Unsolicited ARP mode, update your neighbours\0A -A : ARP answer mode, update your neighbours\0A -V : print version and exit\0A -c count : how many packets to send\0A -w timeout : how long to wait for a reply\0A -I device : which ethernet device to use (eth0)\0A -s source : source ip address\0A destination : ask for what ip address\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([545 x i8], [545 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 2)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [545 x i8] c"Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination\0A -f : quit on first reply\0A -q : be quiet\0A -b : keep broadcasting, don't go unicast\0A -D : duplicate address detection mode\0A -U : Unsolicited ARP mode, update your neighbours\0A -A : ARP answer mode, update your neighbours\0A -V : print version and exit\0A -c count : how many packets to send\0A -w timeout : how long to wait for a reply\0A -I device : which ethernet device to use (eth0)\0A -s source : source ip address\0A destination : ask for what ip address\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([545 x i8], [545 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 2)
unreachable
}