#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("Usage:\n");
  printf("\tarping    <address>/<prefixlen>  ");
  printf(" [ -vqr ]  [-c cycles]  ");
  printf(" [-t interval]  [-i interface]\n");
  printf("\t\t -v\tverbose mode\n");
  printf("\t\t -q quiet mode, all discovered devices will be output at the end "
         "of process\n");
  printf("\t\t -r ramdom delay, add to delay interval the random component [ "
         "delay = interval + rand mod interval ]\n");
  printf("\t\t -t interval, change delay interval during arp requests\n");
  printf("\t\t -c cycles, quantity of cycles by ip adresses on netmask\n");
  printf("\t\t -i interface, network interface");
  printf("\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1010(%rip),%rdi
call   1030 <printf@plt>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xf17(%rip),%rdi
call   1040 <puts@plt>
lea    0xeac(%rip),%rdi
call   1050 <printf@plt>
lea    0xec3(%rip),%rdi
call   1050 <printf@plt>
lea    0xefa(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf14(%rip),%rdi
call   1040 <puts@plt>
lea    0xf56(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe88(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2e16(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [35 x i8] c"\09arping <address>/<prefixlen> \00"
@.str.2 = [25 x i8] c" [ -vqr ] [-c cycles] \00"
@.str.3 = [32 x i8] c" [-t interval] [-i interface]\0A\00"
@.str.4 = [20 x i8] c"\09\09 -v\09verbose mode\0A\00"
@.str.5 = [79 x i8] c"\09\09 -q quiet mode, all discovered devices will be output at the end of process\0A\00"
@.str.6 = [105 x i8] c"\09\09 -r ramdom delay, add to delay interval the random component [ delay = interval + rand mod interval ]\0A\00"
@.str.7 = [59 x i8] c"\09\09 -t interval, change delay interval during arp requests\0A\00"
@.str.8 = [60 x i8] c"\09\09 -c cycles, quantity of cycles by ip adresses on netmask\0A\00"
@.str.9 = [35 x i8] c"\09\09 -i interface, network interface\00"
@.str.10 = [2 x i8] c"\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @exit(i32 %12)
unreachable
}

LLVM IR (-O2):
@.str.1 = [35 x i8] c"\09arping <address>/<prefixlen> \00"
@.str.2 = [25 x i8] c" [ -vqr ] [-c cycles] \00"
@.str.9 = [35 x i8] c"\09\09 -i interface, network interface\00"
@EXIT_FAILURE = global i32 0
@str = [7 x i8] c"Usage:\00"
@str.11 = [31 x i8] c" [-t interval] [-i interface]\00"
@str.12 = [19 x i8] c"\09\09 -v\09verbose mode\00"
@str.13 = [78 x i8] c"\09\09 -q quiet mode, all discovered devices will be output at the end of process\00"
@str.14 = [104 x i8] c"\09\09 -r ramdom delay, add to delay interval the random component [ delay = interval + rand mod interval ]\00"
@str.15 = [58 x i8] c"\09\09 -t interval, change delay interval during arp requests\00"
@str.16 = [59 x i8] c"\09\09 -c cycles, quantity of cycles by ip adresses on netmask\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.14, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.16, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
}