#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*/ printf(char *, char *, char *);
void banner(char *name) {
  printf("Usage: %s [-1pztrsl] <target>\n\n"
         "flags:\n"
         "\t-1\t\t:: send one dgram and exit\n"
         "\t-p <port>\t:: destination port (by default random for each dgram)\n"
         "\t-z <size>\t:: dgram data length (default 10)\n"
         "\t-t <time>\t:: fudp life time (in seconds)\n"
         "\t-i <threads>\t:: amount of threads to be spun up\n\n"
         "only root:\n"
         "\t-r\t\t:: random source IP for each dgram\n"
         "\t-s <source>\t:: set source IP\n"
         "\t-l\t\t:: land attack\n\n"
         "fudp-%s by urug.projects(at)gmail.com\n"
         "Please report bugs on https://sourceforge.net/projects/usoft/\n",
         name, "0.4");
  exit(1);
}


x86 assembly (clang, -O0):
<banner>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
lea    0x109e(%rip),%rdx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<banner>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
lea    0x10aa(%rip),%rdx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [476 x i8] c"Usage: %s [-1pztrsl] <target>\0A\0Aflags:\0A\09-1\09\09:: send one dgram and exit\0A\09-p <port>\09:: destination port (by default random for each dgram)\0A\09-z <size>\09:: dgram data length (default 10)\0A\09-t <time>\09:: fudp life time (in seconds)\0A\09-i <threads>\09:: amount of threads to be spun up\0A\0Aonly root:\0A\09-r\09\09:: random source IP for each dgram\0A\09-s <source>\09:: set source IP\0A\09-l\09\09:: land attack\0A\0Afudp-%s by urug.projects(at)gmail.com\0APlease report bugs on https://sourceforge.net/projects/usoft/\0A\00"
@.str.1 = [4 x i8] c"0.4\00"
define void @banner(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([476 x i8], [476 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [476 x i8] c"Usage: %s [-1pztrsl] <target>\0A\0Aflags:\0A\09-1\09\09:: send one dgram and exit\0A\09-p <port>\09:: destination port (by default random for each dgram)\0A\09-z <size>\09:: dgram data length (default 10)\0A\09-t <time>\09:: fudp life time (in seconds)\0A\09-i <threads>\09:: amount of threads to be spun up\0A\0Aonly root:\0A\09-r\09\09:: random source IP for each dgram\0A\09-s <source>\09:: set source IP\0A\09-l\09\09:: land attack\0A\0Afudp-%s by urug.projects(at)gmail.com\0APlease report bugs on https://sourceforge.net/projects/usoft/\0A\00"
@.str.1 = [4 x i8] c"0.4\00"
define void @banner(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([476 x i8], [476 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}